PHP and LDAP over SSL

From: Date: Fri, 23 Aug 2002 16:52:11 +0000
Subject: PHP and LDAP over SSL
Groups: php.general 
Request: Send a blank email to php-general+get-113797@lists.php.net to get a copy of this message
I am trying to get LDAP over SSL (ldaps). I have a custom certificate authority (CA). I can connect to ldap server with LDAPS and LDAP over TLS on the commandline. Here is the php code: $rs = ldap_connect("ldaps://ldapserver/"); if (!ldap_set_option($rs, LDAP_OPT_PROTOCOL_VERSION, 3)) echo "Couldnt set the ldap v3"; $r = ldap_bind($rs); echo "Bind Result is ".ldap_error($rs)."<br>"; ldap_unbind($rs); :END CODE I setup an openssl test server with the certificate of the ldap server to debug the php ldap code: openssl s_server -cert cert.cer -key key.pem It reports this: 30051:error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca:s3_pkt.c:1031:SSL alert number 48 So, I see that php does not have the CA. But, I have no clue as to where to define the location of the CA in the php configuration. So, does anyone know how I can configure this option? -- Curtis Robinson crobinso@fit.edu

« previous php.general (#113797) next »