Fixed ldap adv. perms continues apliying when autocreate remote is unselected by cheking it on user login
Former-commit-id: ca6a8a1217ec41d7edadf971e935d506ad9e0cff
This commit is contained in:
parent
65b89f6688
commit
f6b6073a16
|
@ -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…
Reference in New Issue