From 312eab8ab89d7aaddd01099f6fc6c55b9e96f34e Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Tue, 14 Sep 2010 23:06:38 +0200 Subject: [PATCH] Pass error number. --- framework/Ldap/lib/Horde/Ldap.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/framework/Ldap/lib/Horde/Ldap.php b/framework/Ldap/lib/Horde/Ldap.php index 0830681f5..939fa4e34 100644 --- a/framework/Ldap/lib/Horde/Ldap.php +++ b/framework/Ldap/lib/Horde/Ldap.php @@ -235,8 +235,7 @@ class Horde_Ldap $msg = @ldap_bind($this->_link, $dn, $password); } if (!$msg) { - throw new Horde_Ldap_Exception('Bind failed: ' . - @ldap_error($this->_link), + throw new Horde_Ldap_Exception('Bind failed: ' . @ldap_error($this->_link), @ldap_errno($this->_link)); } } @@ -505,7 +504,8 @@ class Horde_Ldap } if (!@ldap_start_tls($this->_link)) { - throw new Horde_Ldap_Exception('TLS not started: ' . @ldap_error($this->_link)); + throw new Horde_Ldap_Exception('TLS not started: ' . @ldap_error($this->_link), + @ldap_errno($this->_link)); } } -- 2.11.0