LDAPLib hotfix: in case that is not possible to connect to an LDAP

server it is not possible to display a valid error message
This commit is contained in:
Paolo
2021-06-07 10:36:50 +02:00
parent c1ff4c2d53
commit e056dcd3c2
+3 -1
View File
@@ -220,7 +220,9 @@ class LDAPLib
}
else // Connection error
{
return error(ldap_error($ldapConnection));
return error(
'An error occurred while connecting to the LDAP server: '.$ldapConfigs[self::SERVER].':'.$ldapConfigs[self::PORT]
);
}
}
}