passing an empty base in this diagnosis call will not result in LDAP errors

Neither in "Invalid DN syntax" nor in "Object not found"
This commit is contained in:
Arthur Schiwon 2015-12-08 12:31:58 +01:00
parent fe8dc0bd5e
commit b91c9851a3
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.')));