mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +02:00
Merge branch 'ent-3576-ldap-advanced-remote-user-unchecked' into 'develop'
Fixed ldap adv. perms continues apliying when autocreate remote is unselected See merge request artica/pandorafms!2221
This commit is contained in:
commit
d0e99e1018
@ -282,6 +282,8 @@ function process_user_login_remote($login, $pass, $api=false)
|
||||
}
|
||||
}
|
||||
} else if ($config['auth'] === 'ldap') {
|
||||
// Check if autocreate remote users is active.
|
||||
if ($config['autocreate_remote_users'] == 1) {
|
||||
if ($config['ldap_save_password']) {
|
||||
$update_credentials = change_local_user_pass_ldap($login, $pass);
|
||||
|
||||
@ -318,6 +320,7 @@ function process_user_login_remote($login, $pass, $api=false)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $login;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user