summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2012-05-08 12:04:52 +0200
committerArthur Schiwon <blizzz@owncloud.com>2012-05-08 12:04:52 +0200
commit251a6d1a9fdde2d65005c3a778d30e7acdf50b67 (patch)
tree28d52704e057e25e43d5b33d51e99885e576b2ac /apps/user_ldap
parentcdf5d4e2313266f980c0f2d80b47b28886fba3cf (diff)
downloadnextcloud-server-251a6d1a9fdde2d65005c3a778d30e7acdf50b67.tar.gz
nextcloud-server-251a6d1a9fdde2d65005c3a778d30e7acdf50b67.zip
LDAP: write to log in case bind fails.
Diffstat (limited to 'apps/user_ldap')
-rwxr-xr-xapps/user_ldap/lib_ldap.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/user_ldap/lib_ldap.php b/apps/user_ldap/lib_ldap.php
index 4c2c22cbbee..31a39327ddf 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;
}
}