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:07:40 +0100
commitd6a7b607ce6be9af75d40f577761911d119e820f (patch)
tree4ea5e8bebd298e6e33f9338bc872c3f2ebcb47c6 /apps/user_ldap
parent2a86de9b3411094d3d2a57af0038b950c245f3cf (diff)
downloadnextcloud-server-d6a7b607ce6be9af75d40f577761911d119e820f.tar.gz
nextcloud-server-d6a7b607ce6be9af75d40f577761911d119e820f.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.')));