Skip to Main Content

Security Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

LDAP Connection through C# code behind code

807573Mar 11 2004 — edited Apr 16 2004
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?
It's urgent.


Regds,
Neo
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 14 2004
Added on Mar 11 2004
6 comments
1,269 views