By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,571 Members | 994 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,571 IT Pros & Developers. It's quick & easy.

LDAP anonymous lookup - no username password

P: n/a
Is it possible to do an anonymous lookup in active directory through a web
page?

I am running a site with Domain Authentication activated.
I am looking up a users email address in Active Directory.
This is how i'm accessing AD
new DirectoryEntry(LDAP://DomainController, Domain\Username, password)

Now for this method I am specifying a Domain\Username and password,
there is an overload that only requires a path, but this returns the error:
An operations error occurred
And if i try use an existing Domain\Username with a blank password i get:
Logon failure: unknown user name or bad password

Googling and searching MSDN i found out you can set Identity impersonate to
true.
Will this effect any of the window authentication i'm currently using?
Is this the only solution? and will i just specifying the path then work?
May 22 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
See:- http://blogs.msdn.com/dc995/articles/568597.aspx
or
http://msdn.microsoft.com/library/de...asp?frame=true
Hope that helps
Patrick

"Grant Merwitz" <gr***@workshare.com> wrote in message
news:OE**************@TK2MSFTNGP05.phx.gbl...
Is it possible to do an anonymous lookup in active directory through a web
page?

I am running a site with Domain Authentication activated.
I am looking up a users email address in Active Directory.
This is how i'm accessing AD
new DirectoryEntry(LDAP://DomainController, Domain\Username, password)

Now for this method I am specifying a Domain\Username and password,
there is an overload that only requires a path, but this returns the
error:
An operations error occurred
And if i try use an existing Domain\Username with a blank password i get:
Logon failure: unknown user name or bad password

Googling and searching MSDN i found out you can set Identity impersonate
to true.
Will this effect any of the window authentication i'm currently using?
Is this the only solution? and will i just specifying the path then work?

May 22 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.