By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,077 Members | 1,790 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,077 IT Pros & Developers. It's quick & easy.

Connect to Openldap server over SSL

P: n/a
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
Jul 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
>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
Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.