[Pkg-owncloud-commits] [owncloud] 10/49: LDAP: on testing configuration, set active property to true, otherwise inactive connections cannot be tested properly

David Prévot taffit at moszumanska.debian.org
Thu Dec 5 16:02:52 UTC 2013


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

taffit pushed a commit to branch master
in repository owncloud.

commit b8390f15d4859d3ac8617dbe9e702d55107dd724
Author: Arthur Schiwon <blizzz at owncloud.com>
Date:   Tue Dec 3 13:21:55 2013 +0100

    LDAP: on testing configuration, set active property to true, otherwise inactive connections cannot be tested properly
---
 apps/user_ldap/ajax/testConfiguration.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/apps/user_ldap/ajax/testConfiguration.php b/apps/user_ldap/ajax/testConfiguration.php
index b31fd98..a637520 100644
--- a/apps/user_ldap/ajax/testConfiguration.php
+++ b/apps/user_ldap/ajax/testConfiguration.php
@@ -30,6 +30,8 @@ $l=OC_L10N::get('user_ldap');
 
 $ldapWrapper = new OCA\user_ldap\lib\LDAP();
 $connection = new \OCA\user_ldap\lib\Connection($ldapWrapper, '', null);
+//needs to be true, otherwise it will also fail with an irritating message
+$_POST['ldap_configuration_active'] = 1;
 if($connection->setConfiguration($_POST)) {
 	//Configuration is okay
 	if($connection->bind()) {

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