diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2015-12-08 12:31:58 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2015-12-08 12:32:02 +0100 |
commit | b91c9851a3b9e85b025f25212d97e4d47936ff2f (patch) | |
tree | 81c807a651a01d9d1d243668c83879992a992274 /apps/user_ldap/ajax | |
parent | fe8dc0bd5e867831a70251fb8604e1a397f2901b (diff) | |
download | nextcloud-server-b91c9851a3b9e85b025f25212d97e4d47936ff2f.tar.gz nextcloud-server-b91c9851a3b9e85b025f25212d97e4d47936ff2f.zip |
passing an empty base in this diagnosis call will not result in LDAP errors
Neither in "Invalid DN syntax" nor in "Object not found"
Diffstat (limited to 'apps/user_ldap/ajax')
-rw-r--r-- | apps/user_ldap/ajax/testConfiguration.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/ajax/testConfiguration.php b/apps/user_ldap/ajax/testConfiguration.php index f5fd5f23b87..47fc776983a 100644 --- a/apps/user_ldap/ajax/testConfiguration.php +++ b/apps/user_ldap/ajax/testConfiguration.php @@ -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.'))); |