note 94556 added to function.ldap-bind
| From: | ben_at_onshop_co_uk at osu1 dot php dot net | Date: | Wed, 11 Nov 2009 19:16:34 +0000 |
| Subject: | note 94556 added to function.ldap-bind | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-162779@lists.php.net to get a copy of this message | ||
I tried using putenv() to point LDAP to the certificate path etc.
putenv("TLS_CACERT=/path/to/certificate");
putenv("TLS_REQCERT=never");
This did not work for me. It has to be in the Apache configuration or LDAP configuration:
LDAP CONFIGURATION
Put these values in ldap.conf:
TLS_CACERT /path/to/certificate
TLS_REQCERT never
The path varies on UNIX systems.
On Windows it is C:\openldap\sysconf\ldap.conf
APACHE CONFIGURATION
Add these values to httpd.conf:
LDAPTrustedGlobalCert <encryption method> /path/to/certificate
LDAPVerifyServerCert Off
The encryption method I was using was 'CA_BASE64'. Check the encryption method with your
LDAP/AD sysadmin.
----
Server IP: 87.124.86.45
Probable Submitter: 137.73.37.15 (proxied: 137.73.37.15)
----
Manual Page -- http://www.php.net/manual/en/function.ldap-bind.php
Edit -- https://master.php.net/note/edit/94556
Del: integrated -- https://master.php.net/note/delete/94556/integrated
Del: useless -- https://master.php.net/note/delete/94556/useless
Del: bad code -- https://master.php.net/note/delete/94556/bad+code
Del: spam -- https://master.php.net/note/delete/94556/spam
Del: non-english -- https://master.php.net/note/delete/94556/non-english
Del: in docs -- https://master.php.net/note/delete/94556/in+docs
Del: other reasons-- https://master.php.net/note/delete/94556
Reject -- https://master.php.net/note/reject/94556
Search -- https://master.php.net/manage/user-notes.php