Re: LDAP and SSL with Auth
| From: | Adam Ashley | Date: | Thu, 07 Dec 2006 23:33:45 +0000 |
| Subject: | Re: LDAP and SSL with Auth | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-26017@lists.php.net to get a copy of this message | ||
On Thu, 7 Dec 2006 08:27:40 +0000 (GMT), "a_fehr@bluewin.ch" <a_fehr@bluewin.ch> wrote:
Does anybody know if Auth can connect to an LDAP server over SSL? If yes, how do I tell Auth to use SSL? Regards, AlanRead the examples in the class documentation in Auth/Container/LDAP.php. It's also available in the auto generated documentation available from the Auth package home page. But short version for SSL access use: $options = array( 'url' => 'ldaps://ldap.mydomain.com/', ); For TLS use: $options = array( 'host' => 'ldap.mydomain.com', 'start_tls' => true, ); Adam Ashley