[Pkg-owncloud-commits] [owncloud] 30/145: throw an info message, when base dn test failed
David Prévot
taffit at moszumanska.debian.org
Wed Feb 26 16:27:40 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 60b75b25f83fecceb72c5d28e3c05dac5d074457
Author: Arthur Schiwon <blizzz at owncloud.com>
Date: Tue Feb 4 19:37:40 2014 +0100
throw an info message, when base dn test failed
---
apps/user_ldap/lib/wizard.php | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/apps/user_ldap/lib/wizard.php b/apps/user_ldap/lib/wizard.php
index b70ede8..30ce455 100644
--- a/apps/user_ldap/lib/wizard.php
+++ b/apps/user_ldap/lib/wizard.php
@@ -567,6 +567,10 @@ class Wizard extends LDAPUtility {
//get a result set > 0 on a proper base
$rr = $this->ldap->search($cr, $base, 'objectClass=*', array('dn'), 0, 1);
if(!$this->ldap->isResource($rr)) {
+ $errorNo = $this->ldap->errno($cr);
+ $errorMsg = $this->ldap->error($cr);
+ \OCP\Util::writeLog('user_ldap', 'Wiz: Could not search base '.$base.
+ ' Error '.$errorNo.': '.$errorMsg, \OCP\Util::INFO);
return false;
}
$entries = $this->ldap->countEntries($cr, $rr);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list