>gianni <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>Hy to All,
>I'm using your Perldap module for a big project on an
>ldap server over an SSL connection.
>
>My question is:
>On first time, I call the ldap server with ssl certificate; if I use the
simpleAuth()
>method to rebind with (dn,pwd) properties only,
>is still an SSL connection estabilished?????
>Waiting on response,
>Thanks in advance,

Gianni - From my testing it does. However, it you are making an anonymous
bind using the method given in the documentation, an SSL connection will not
work. At least, I couldn't get it going. Here is a snippet that is suggested
in the
docs for an anonymous bind.

$conn = new Mozilla::LDAP::Conn($ldapServer, $ldapPort);

However, in my case, if I changed the port to 636 the anonymous bind never
succeeded. So, I made an explicit anonymous bind with the following to get
it working:

$conn = new Mozilla::LDAP::Conn($ldapServer, $ldapSSLPort, $anonBind,
$anonPass, $ldapS
SLCert);

With this, the subsequent simpleAuth() was done via SSL. If I'm doing it
wrong I'd love to hear about it. Anyway, I hope that helps!



Reply via email to