Merge pull request #21037 from owncloud/fix-irritating-ldap-log-entry

passing an empty base in this diagnosis call will not result  in LDAP…
This commit is contained in:
Thomas Müller 2015-12-08 16:24:50 +01:00
commit 13993c4a6d
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ try {
* pass (like e.g. expected syntax error).
*/
try {
$ldapWrapper->read($connection->getConnectionResource(), 'neverwhere', 'objectClass=*', array('dn'));
$ldapWrapper->read($connection->getConnectionResource(), '', 'objectClass=*', array('dn'));
} catch (\Exception $e) {
if($e->getCode() === 1) {
OCP\JSON::error(array('message' => $l->t('The configuration is invalid: anonymous bind is not allowed.')));