A
A Lake
I'm trying to get user details using ASP under IIS (Win2000) with the
following code:
Set User = GetObject("WinNT://domainname/" & mid(strNTUser,8) & ",user")
strNTUserFullName= User.Fullname
The website this is running under uses Windows Authentication only (no
anonymous logins) and this presumably is why I get the error 'General access
denied error' from AD as the logged in user's credentials are not passed to
the AD domain controller that is being queried for the users details.
My question is, how to I get this to work whilst keeping Windows
Authentication? I only need the most basic details about the user so writing
LDAP queries and creating recordsets etc seems like overkill and presumably
the same problem will occur?
following code:
Set User = GetObject("WinNT://domainname/" & mid(strNTUser,8) & ",user")
strNTUserFullName= User.Fullname
The website this is running under uses Windows Authentication only (no
anonymous logins) and this presumably is why I get the error 'General access
denied error' from AD as the logged in user's credentials are not passed to
the AD domain controller that is being queried for the users details.
My question is, how to I get this to work whilst keeping Windows
Authentication? I only need the most basic details about the user so writing
LDAP queries and creating recordsets etc seems like overkill and presumably
the same problem will occur?