note 127352 added to function.ldap-set-option
| From: | php at richardneill dot org | Date: | Wed, 27 Jul 2022 17:41:01 +0000 |
| Subject: | note 127352 added to function.ldap-set-option | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-219069@lists.php.net to get a copy of this message | ||
If you want to disable the TLS cert check (e.g. because you are doing an SSH port-forward, and ldaps
is pointing to localhost), then you must invoke:
ldap_set_option(NULL, LDAP_OPT_X_TLS_REQUIRE_CERT,0)
*before* calling ldap_connect()
If you try:
$ds = ldap_connect(...)
ldap_set_option($ds, LDAP_OPT_X_TLS_REQUIRE_CERT,0)
then the option won't actually take effect, and the certificate will be checked anyway, and a
TLS failure will happen..
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.135 (proxied: 82.8.243.31)
----
Manual Page -- https://php.net/manual/en/function.ldap-set-option.php
Edit -- https://main.php.net/note/edit/127352
Del: integrated -- https://main.php.net/note/delete/127352/integrated
Del: useless -- https://main.php.net/note/delete/127352/useless
Del: bad code -- https://main.php.net/note/delete/127352/bad+code
Del: spam -- https://main.php.net/note/delete/127352/spam
Del: non-english -- https://main.php.net/note/delete/127352/non-english
Del: in docs -- https://main.php.net/note/delete/127352/in+docs
Del: other reasons-- https://main.php.net/note/delete/127352
Reject -- https://main.php.net/note/reject/127352
Search -- https://main.php.net/manage/user-notes.php