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:
commit
13993c4a6d
|
@ -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.')));
|
||||
|
|
Loading…
Reference in New Issue