LDAPS Port
-
Your help text under the Directory Servers input states that LDAPS will ignore the port but that is untrue. Your code strips off the port which causes our LDAP searches to fail and no one can log in if we use LDAPS. But if your code is modified starting at line 366 of wpDirAuth.php from this:
if (strstr($dc, ':')) list($dc, $port) = explode(':', $dc); switch($enableSsl){ case 1: $connection = ldap_connect($protocol.$dc); break; case 2: case 0: default: if(isset($port)){ $connection = ldap_connect($dc,$port); } else { $connection = ldap_connect($dc); } break; }To this:
if (strstr($dc, ':')) list($tlsDC, $port) = explode(':', $dc); switch($enableSsl){ case 1: $connection = ldap_connect($protocol.$dc); break; case 2: case 0: default: if(isset($port)){ $connection = ldap_connect($tlsDC,$port); } else { $connection = ldap_connect($dc); } break; }Then everything works fine for us. We use a non standard port. After the modification the port is included when connecting and everything works fine.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘LDAPS Port’ is closed to new replies.