
March 11th, 2004, 03:39 AM
|
|
Registered User
|
|
Join Date: Mar 2004
Posts: 2
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Connection to SunONE Directory Server 5.2 through LDAP in C# code
Hi,
I am trying to connect to SunOne Directory Server 5.2 through LDAP in C# code. SunONE server is installed in the Win2000 Server m/c.
I am using the following connection string:
string adPath = "LDAP://IP Address of the Sun server";
LdapAuthentication adAuth = new LdapAuthentication(adPath);
string domainAndUsername = domain + "\\" + username;
DirectoryEntry entry = new DirectoryEntry( _path, domainAndUsername, pwd);
// Bind to the native AdsObject to force authentication.
Object obj = entry.NativeObject;
After this line this code throws error "The server is not operational"
Can somebody help me in resolving this problem
|