Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2012-05-08 14:04:52 +0400
committerArthur Schiwon <blizzz@owncloud.com>2012-05-08 14:04:52 +0400
commit251a6d1a9fdde2d65005c3a778d30e7acdf50b67 (patch)
tree28d52704e057e25e43d5b33d51e99885e576b2ac /apps
parentcdf5d4e2313266f980c0f2d80b47b28886fba3cf (diff)
LDAP: write to log in case bind fails.
Diffstat (limited to 'apps')
-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;
}
}