Better error message in LDAP connection capability test

This commit is contained in:
Thomas Gelf 2014-01-22 12:30:02 +00:00
parent 14ff354a76
commit 2288751aaf
1 changed files with 3 additions and 1 deletions

View File

@ -410,7 +410,9 @@ class Connection
if (! $result) { if (! $result) {
throw new Exception( throw new Exception(
sprintf( sprintf(
'Capability query failed: %s', 'Capability query failed (%s:%d): %s',
$this->hostname,
$this->port,
ldap_error($ds) ldap_error($ds)
) )
); );