From 2288751aafb1dc17b40d5e3d4c3fc1823062aa4b Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Wed, 22 Jan 2014 12:30:02 +0000 Subject: [PATCH] Better error message in LDAP connection capability test --- library/Icinga/Protocol/Ldap/Connection.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/Icinga/Protocol/Ldap/Connection.php b/library/Icinga/Protocol/Ldap/Connection.php index 9f3581e23..aca8d42aa 100644 --- a/library/Icinga/Protocol/Ldap/Connection.php +++ b/library/Icinga/Protocol/Ldap/Connection.php @@ -410,7 +410,9 @@ class Connection if (! $result) { throw new Exception( sprintf( - 'Capability query failed: %s', + 'Capability query failed (%s:%d): %s', + $this->hostname, + $this->port, ldap_error($ds) ) );