Added token save profile user
Former-commit-id: 442a51cfbe7ac9730e9fd9c2c1ee16b6609e5f6a
This commit is contained in:
parent
9fd5d3bf5a
commit
db13ecbb39
|
@ -1252,9 +1252,8 @@ function check_permission_ldap(
|
|||
function fill_permissions_ldap($sr)
|
||||
{
|
||||
global $config;
|
||||
|
||||
$permissions = [];
|
||||
if (!$config['ldap_advanced_config']) {
|
||||
if ($config['autocreate_remote_users'] && $config['ldap_save_profile']) {
|
||||
$permissions[0]['profile'] = $config['default_remote_profile'];
|
||||
$permissions[0]['groups'][] = $config['default_remote_group'];
|
||||
$permissions[0]['tags'] = $config['default_assign_tags'];
|
||||
|
|
|
@ -604,6 +604,10 @@ function config_update_config()
|
|||
config_update_value('ldap_save_password', 1);
|
||||
}
|
||||
|
||||
if (!config_update_value('ldap_save_profile', get_parameter('ldap_save_profile'))) {
|
||||
$error_update[] = __('Save profile');
|
||||
}
|
||||
|
||||
if (!config_update_value('rpandora_server', get_parameter('rpandora_server'))) {
|
||||
$error_update[] = __('MySQL host');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue