From b91c9851a3b9e85b025f25212d97e4d47936ff2f Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Tue, 8 Dec 2015 12:31:58 +0100 Subject: passing an empty base in this diagnosis call will not result in LDAP errors Neither in "Invalid DN syntax" nor in "Object not found" --- apps/user_ldap/ajax/testConfiguration.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/user_ldap/ajax') 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.'))); -- cgit v1.2.3