consider changed/new setting variables for user_ldap
This commit is contained in:
parent
3c72a7c934
commit
f040ce044c
1 changed files with 3 additions and 3 deletions
|
@ -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) {
|
||||||
}
|
}
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue