Connect to Openldap server over SSL

G

Guest

Hello

I use the following code to connect to an openldap server
This works just fine

_deRoot = new DirectoryEntry
"LDAP://ws244501.test.com/ou=People,dc=test,dc=comâ€
â€cn=admin,ou=People,dc=test,dc=com"
"secretje"
AuthenticationTypes.ServerBin
)

object ob = _deRoot.NativeObject

Now I want to be able to connect to it over SSL to make updates secure
Using the following code does not succeed (server not operational
I did import the root certificate
I have tried with different Authentication flags but no result
I also tried LDAP://ws244501.test.com:636/... but this had also no result

_deRoot = new DirectoryEntry
"LDAP://ws244501.test.com/ou=People,dc=test,dc=comâ€
â€cn=admin,ou=People,dc=test,dc=com"
"secretje"
AuthenticationTypes.ServerBind |AuthenticationTypes.SecureSocketsLaye
)

object ob = _deRoot.NativeObject

Does anybody know how to sucessfully connect to an LDAP server over SSL
What authentication flags do I use, what LDAP path do I use

Thanks
Johan
 
M

Marc Scheuner [MVP ADSI]

I have tried with different Authentication flags but no result.
I also tried LDAP://ws244501.test.com:636/... but this had also no result.
Does anybody know how to sucessfully connect to an LDAP server over SSL?
What authentication flags do I use, what LDAP path do I use?

You might want to post your question in a more focussed newsgroup,
such as:

* microsoft.public.adsi.general
* microsoft.public.active.directory.interfaces

or check out the Yahoo! group on the topic,
http://groups.yahoo.com/group/ADSIANDDirectoryServices

which has a lot of folks who know all about how to bind in a secure
environment.

From what I know (very limited), you will definitely need to specify
port 636 (or whatever port you use for SSL LDAP) in your bind string,
and include at least the AuthenticationTypes.SecureSocketsLayer flag -
that should do. (but as I said - I'm not a big expert in SSL
connectoins, especially not to OpenLDAP).

Marc
================================================================
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top