[Pkg-owncloud-commits] [owncloud] 49/86: passing an empty base in this diagnosis call will not result in LDAP errors
David Prévot
taffit at moszumanska.debian.org
Tue Dec 22 16:51:59 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v8.1.5
in repository owncloud.
commit d6a7b607ce6be9af75d40f577761911d119e820f
Author: Arthur Schiwon <blizzz at owncloud.com>
Date: Tue Dec 8 12:31:58 2015 +0100
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(-)
diff --git a/apps/user_ldap/ajax/testConfiguration.php b/apps/user_ldap/ajax/testConfiguration.php
index f5fd5f2..47fc776 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.')));
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list