Hi,
We need to be able to give our intranet users ability
to query the AD through the web browsers.
Unfortunately we cannot make the Integrated/Basic
authentication to work for all users, so we need to be
able to query the AD with anonymous authentication.
What are the ways I can do that?
Here is a code snippet:
*Code snippet*
Set objRootDSE = GetObject("LDAP://RootDSE")
strADsPath = "LDAP://" +
objRootDSE.Get("defaultNamingContext")
Set objRootDSE = Nothing
Set adoAuthConnection = Server.CreateObject
("ADODB.Connection")
adoAuthConnection.Provider = "ADsDSOObject"
adoAuthConnection.Open "Active Directory Provider"
Set adoAuthCommand = Server.CreateObject
("ADODB.Command")
adoAuthCommand.ActiveConnection = adoAuthConnection
adoAuthCommand.CommandText = ' whatever Query we want
to issue to AD
adoAuthRecordSet = adoAuthCommand.Execute
*END Code snippet*
Ideas?
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
List info : http://www.activedir.org/mail_list.htm
List FAQ : http://www.activedir.org/list_faq.htm
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/