LDAP Connection through C# code behind code
807573Mar 11 2004 — edited Apr 16 2004Hi,
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?
It's urgent.
Regds,
Neo