note 92182 added to function.ldap-start-tls
| From: | ebouliane at gmail dot com | Date: | Mon, 13 Jul 2009 14:25:49 +0000 |
| Subject: | note 92182 added to function.ldap-start-tls | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-158226@lists.php.net to get a copy of this message | ||
I've got a server that demands TLS encryption and each time I try to connect to either with
LDAPS or LDAP/with TLS I get
TLS trace: SSL3 alert write:fatal:handshake failure
TLS trace: SSL_accept:error in SSLv3 read client certificate B
TLS: can't accept.
TLS: error:140890C7:SSL routines:SSL3_GET_CLIENT_CERTIFICATE:peer did not return a certificate
s3_srvr.c:2474
How do I go about including a certificate in my ldap call? I can properly run ldapsearch from the
CLI and also here is my ldap.conf
TLS_CACERT /etc/openldap/certs/cacert.pem
TLS_CERT /etc/openldap/certs/servercert.pem
TLS_KEY /etc/openldap/certs/serverkey.pem
TLS_REQCERT demand
URI ldap://node0.ldap ldaps://node0.ldap
#host node0.ldap
#port 636
base dc=my,dc=company
----
Server IP: 69.147.83.197
Probable Submitter: 207.164.182.8
----
Manual Page -- http://www.php.net/manual/en/function.ldap-start-tls.php
Edit -- https://master.php.net/note/edit/92182
Del: integrated -- https://master.php.net/note/delete/92182/integrated
Del: useless -- https://master.php.net/note/delete/92182/useless
Del: bad code -- https://master.php.net/note/delete/92182/bad+code
Del: spam -- https://master.php.net/note/delete/92182/spam
Del: non-english -- https://master.php.net/note/delete/92182/non-english
Del: in docs -- https://master.php.net/note/delete/92182/in+docs
Del: other reasons-- https://master.php.net/note/delete/92182
Reject -- https://master.php.net/note/reject/92182
Search -- https://master.php.net/manage/user-notes.php