diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2015-12-08 12:31:58 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2015-12-08 15:03:26 +0100 |
commit | c1b2d2549c20cb3611fd1792e23d6f8f9f986446 (patch) | |
tree | 6646c01d7c90fb130891e2eba11dee803601df20 /apps/user_ldap | |
parent | ff638bd331e8bf8053f94d074cc0da3866fa415a (diff) | |
download | nextcloud-server-c1b2d2549c20cb3611fd1792e23d6f8f9f986446.tar.gz nextcloud-server-c1b2d2549c20cb3611fd1792e23d6f8f9f986446.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')
-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.'))); |