Skip to content
Snippets Groups Projects
Commit f040ce04 authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

consider changed/new setting variables for user_ldap

parent 3c72a7c9
No related branches found
No related tags found
No related merge requests found
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
* License along with this library. If not, see <http://www.gnu.org/licenses/>. * License along with this library. If not, see <http://www.gnu.org/licenses/>.
* *
*/ */
$params = array('ldap_host', 'ldap_port', 'ldap_dn', 'ldap_password', 'ldap_base', 'ldap_filter', 'ldap_display_name', 'ldap_tls', 'ldap_nocase'); $params = array('ldap_host', 'ldap_port', 'ldap_dn', 'ldap_password', 'ldap_base', 'ldap_userlist_filter', 'ldap_login_filter', 'ldap_display_name', 'ldap_tls', 'ldap_nocase');
if ($_POST) { if ($_POST) {
foreach($params as $param){ foreach($params as $param){
...@@ -29,12 +29,12 @@ if ($_POST) { ...@@ -29,12 +29,12 @@ if ($_POST) {
} }
elseif('ldap_tls' == $param) { elseif('ldap_tls' == $param) {
// unchecked checkboxes are not included in the post paramters // unchecked checkboxes are not included in the post paramters
OC_Appconfig::setValue('user_ldap', $param, 0); OC_Appconfig::setValue('user_ldap', $param, 0);
} }
elseif('ldap_nocase' == $param) { elseif('ldap_nocase' == $param) {
OC_Appconfig::setValue('user_ldap', $param, 0); OC_Appconfig::setValue('user_ldap', $param, 0);
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment