[Pkg-owncloud-commits] [owncloud] 44/107: passing an empty base in this diagnosis call will not result in LDAP errors

David Prévot taffit at moszumanska.debian.org
Thu Dec 17 19:40:35 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch stable8
in repository owncloud.

commit c1b2d2549c20cb3611fd1792e23d6f8f9f986446
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