summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2015-12-08 12:31:58 +0100
committerArthur Schiwon <blizzz@owncloud.com>2015-12-08 15:03:26 +0100
commitc1b2d2549c20cb3611fd1792e23d6f8f9f986446 (patch)
tree6646c01d7c90fb130891e2eba11dee803601df20 /apps/user_ldap
parentff638bd331e8bf8053f94d074cc0da3866fa415a (diff)
downloadnextcloud-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.php2
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.')));