|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
You may need to specify the port ... also - as in my post on the other site - I am not sure you can use the concept of AD domain and username to bind - as SunONE doesn't really utilize this for binds ...
|
|
#3
|
||||
|
||||
|
Not to be a pain but it says in the error "The server is not operational" so you may want to make sure the server is accessable by that computer.
__________________
Miscellaneous Software Viper_SB Developershed E-Support Anyone else play chess? Challenge me |
|
#4
|
|||
|
|||
|
Quote:
Hi, I think that the server is not able to bind with the SunONE server as it is not able to create the Object. Object obj = entry.NativeObject; I have done further R&D and come to know that this method is only for ADSI(Microsoft). I don't know how to do it for Sun Server. Can u please help me in knowing how to connect to SunServer through LDAP in C# or JAVA. Waitinfg for ur reply. Regds, Sachinp |
|
#5
|
|||
|
|||
|
try this link
|
![]() |
| Viewing: Dev Shed Forums > Databases > LDAP Programming > Connection to SunONE Directory Server 5.2 through LDAP in C# code |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|