|
it
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Query LDAP with ASPI'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? Hi,
As far as I have worked with LDAP stuff, it requires the username and password to be passed to successfully connect to the server where your AD is. This username and password should be the authetication details of a user who has all rights to manipulate or access / query the AD, mostly an administrator group level user. So I think you need to supply the authentication details to work on LDAP. Ganesh Show quoteHide quote "A Lake" wrote: > 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? >
IIS6 & ASP: accessing network files with FSO fails
Call php/mysql database from ASP Can a web user can be logged on as an account other than IUSR_? 500 errors!! Please help - trying to return XML from a recordset Trapping odbc error when exec'ing INSERT command Checking for duplication in an array or delimited string sql problem with sub queries SSL/Response Object/data to client Sending Mail Using ASP/VBScript to Exchange Mail Box |
|||||||||||||||||||||||