fixed stupid shit

This commit is contained in:
i am da real crt yes 2022-09-05 14:38:07 +02:00
parent 8f6ca0064d
commit c59ed46e7b
1 changed files with 3 additions and 1 deletions

View File

@ -116,6 +116,8 @@ class plugin_ldap {
//build user group insert array //build user group insert array
$array['user_groups'][0]['user_group_uuid'] = uuid(); $array['user_groups'][0]['user_group_uuid'] = uuid();
$array['user_groups'][0]['group_uuid'] = (!is_null($_SESSION["ldap"]["assign_group_uuid"]) && strlen($_SESSION["ldap"]["assign_group_uuid"]) > 0) ? $_SESSION["ldap"]["assign_group_uuid"] : uuid();
//To set default group add default setting : Categ ldap Subcateg: assign_group_uuid Type: uuid Value : group UUID
$array['user_groups'][0]['domain_uuid'] = $this->domain_uuid; $array['user_groups'][0]['domain_uuid'] = $this->domain_uuid;
$array['user_groups'][0]['group_name'] = 'user'; $array['user_groups'][0]['group_name'] = 'user';
$array['user_groups'][0]['user_uuid'] = $this->user_uuid; $array['user_groups'][0]['user_uuid'] = $this->user_uuid;