From 251a6d1a9fdde2d65005c3a778d30e7acdf50b67 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Tue, 8 May 2012 12:04:52 +0200 Subject: [PATCH] LDAP: write to log in case bind fails. --- apps/user_ldap/lib_ldap.php | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/user_ldap/lib_ldap.php b/apps/user_ldap/lib_ldap.php index 4c2c22cbbe..31a39327dd 100755 --- a/apps/user_ldap/lib_ldap.php +++ b/apps/user_ldap/lib_ldap.php @@ -613,6 +613,7 @@ class OC_LDAP { $ldapLogin = @ldap_bind(self::$ldapConnectionRes, self::$ldapAgentName, self::$ldapAgentPassword ); if(!$ldapLogin) { + OCP\Util::writeLog('ldap', 'Bind failed: ' . ldap_errno(self::$ldapConnectionRes) . ': ' . ldap_error(self::$ldapConnectionRes), OCP\Util::ERROR); return false; } }