473,399 Members | 2,478 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,399 software developers and data experts.

LDAP authentication fails with the final release version of ASP.Ne

LDAP authentication fails with the final release version of ASP.Net 2.0 (and
Beta 2 also).
I suspect it's a legit bug. Any ideas how to report it??

The following code works fine with Framework 1.1 yet fails with 2.0:

string strPath = "LDAP://ldap-3.directory.enterprise.mydomain.gov/";
string strDir = "ou=People,ou=My Agency,ou=My Department,o=U.S.
Government,c=US";
DirectoryEntry mySearchRoot = new DirectoryEntry(strPath + strDir);
mySearchRoot.Username = "cn=ES Tracker,ou=Consumers,ou=Services,ou=My
Agency,ou=My Department,o=U.S. Government,c=US";
mySearchRoot.Password = "xxxx";
DirectorySearcher myDirectorySearcher = new DirectorySearcher(mySearchRoot);
myDirectorySearcher.PropertiesToLoad.Add("givenNam e");
myDirectorySearcher.PropertiesToLoad.Add("mail");
myDirectorySearcher.Filter = "(uniqueIdentifier=" + sSEID + ")";
try
{
SearchResult result = myDirectorySearcher.FindOne();
Nov 19 '05 #1
1 1326
Post your question to the security GROUP.
Cya there.
Patrick

"rajens00" <ra******@discussions.microsoft.com> wrote in message
news:C2**********************************@microsof t.com...
LDAP authentication fails with the final release version of ASP.Net 2.0 (and Beta 2 also).
I suspect it's a legit bug. Any ideas how to report it??

The following code works fine with Framework 1.1 yet fails with 2.0:

string strPath = "LDAP://ldap-3.directory.enterprise.mydomain.gov/";
string strDir = "ou=People,ou=My Agency,ou=My Department,o=U.S.
Government,c=US";
DirectoryEntry mySearchRoot = new DirectoryEntry(strPath + strDir);
mySearchRoot.Username = "cn=ES Tracker,ou=Consumers,ou=Services,ou=My
Agency,ou=My Department,o=U.S. Government,c=US";
mySearchRoot.Password = "xxxx";
DirectorySearcher myDirectorySearcher = new DirectorySearcher(mySearchRoot); myDirectorySearcher.PropertiesToLoad.Add("givenNam e");
myDirectorySearcher.PropertiesToLoad.Add("mail");
myDirectorySearcher.Filter = "(uniqueIdentifier=" + sSEID + ")";
try
{
SearchResult result = myDirectorySearcher.FindOne();

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: dmcconkey | last post by:
Hi folks, I've been searching for a while and haven't found my specific question anywhere else. If this has already been asked, please accept my appologies and point me to the appropriate...
0
by: Durairaj Avasi | last post by:
Here is my prg:::: use Net::LDAP qw(LDAP_SUCCESS LDAP_PROTOCOL_ERROR); use Authen::SASL; use Net::LDAP::Util qw(ldap_error_name ldap_error_text); sub lConnect { my $server = shift; print "...
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...
3
by: maria.s | last post by:
Hi, I've got a problem with an LDAP query submitted from my ASP.NET application. Configuration: Windows 2003 Server Standard Ed., the application uses Windows Integrated Authentication and is...
4
by: Terry Miller | last post by:
I have DB2 V8.2 loaded on a Redhat Enterprise Linux version 3 (RHEL 3) box. RHEL is configured to talk to LDAP for authenticaton besides the local passwd file. I can verify this by executing an su...
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...
2
by: duncan beaumont | last post by:
Hi, - SQLserver 2000 - Yellowfin 2.4 - Windows 2003 server I have been asked to investigate seting up LDAP authentication to access our Yellowfin reporting.
2
by: Anbu | last post by:
Sorry for cross posting the query. But I need a resolution as early as possible. I have developed an application to authenticate the user based on LDAP Search and authentication. The Windows...
0
by: rbukkara | last post by:
Hi, I have got the following error while trying to add a user in the LDAP Directory. javax.naming.NameNotFoundException: ; remaining name 'uid=vassila,ou=People,dc=cs,dc=uno,dc=edu' I have...
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
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.