mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 09:38:23 +01:00
Update ldap.class.php
This commit is contained in:
committed by
GitHub
parent
890d0b6685
commit
eb7886ecff
@@ -739,8 +739,7 @@ class Ldap
|
||||
function serverPing($host, $port=389, $timeout=1)
|
||||
{
|
||||
// Replace ldaps:// by ssl://
|
||||
if (preg_match('/^ldaps/',$host)) {
|
||||
preg_match('/^ldaps:\/\/([^\/]+)\/?$/', $host, $regs);
|
||||
if (preg_match('/^ldaps:\/\/([^\/]+)\/?$/',$host, $regs)) {
|
||||
$host = 'ssl://'.$regs[1];
|
||||
}
|
||||
$op = @fsockopen($host, $port, $errno, $errstr, $timeout);
|
||||
|
||||
Reference in New Issue
Block a user