Added token save profile user

Former-commit-id: 442a51cfbe7ac9730e9fd9c2c1ee16b6609e5f6a
This commit is contained in:
manuel 2019-04-08 11:55:58 +02:00
parent 9fd5d3bf5a
commit db13ecbb39
2 changed files with 5 additions and 2 deletions

View File

@ -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'];

View File

@ -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');
}