473,378 Members | 1,462 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

LDAP anonymous lookup - no username password

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
1 2457
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Amar | last post by:
I am trying to connect to my college LDAP directory using ASP.NET. This LDap does not have security as it returns only user demographic information. i do not need to bind with a username or...
1
by: Big E | last post by:
I'm using ASP.net, LDAP, and SQL Server. We are using forms security for most of the ASP.Net internet site. So it uses the generic ASPuser account but then uses forms security to check SQL Server...
1
by: Andrew | last post by:
Hey all, Working on revamping our Intranet here and making use of the LDPA, Active Directory, Directory Services, etc. that .Net provides. I am still fairly new on this subject, so the problem...
3
by: Dennis Dobslaf | last post by:
I try to do some authentication with LDAP. But it's a bit different to the sample in msdn. I wrote a class LdapAuthentication with a method public bool IsAuthenticated(String domain, String...
2
by: P Webster | last post by:
We recently moved a web site that validated user credentials in Active Directory from IIS 5.1 to IIS 6, and the validation code no longer works. The web.config file is set to Windows authentication...
5
by: Jed Parsons | last post by:
Hi, authenticates a user against our ldap server.: User types in name and password, and module sees if name and password check out right with the ldap server. I see that it's pretty...
3
by: mbasil77 | last post by:
I'm trying to port a piece of Java LDAP conneciton code to DOTNET. I've done LDAP in DOTNET before, but I keep getting a very strange message. The Java code looks like: public static boolean...
5
by: wak0 | last post by:
Hi, I hope you guys can help me. I need to build a form that request username and password on ASP not ASP.net (sorry to clarify but i got some responses in other forums in .net) This form will...
3
by: Genius79 | last post by:
Hi I'm trying to do an ASP authentication using Ldap and would like to have the users directed to pages based on the Organizational Unit. My ASP knowledge is pretty basic but would really like to get...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.