I just migrate to Nethserver 7 as Active Directory Domain
I just notice on create new group, it will be no email alias for the group. Need to create manually for mail alias and member of mail alias.
Below is messages log:
Jul 11 00:53:21 service esmith::event[144305]: Event: group-create qwerty user1
Jul 11 00:53:21 service esmith::event[144305]: Added group qwerty
Jul 11 00:53:22 service esmith::event[144305]: Added members to group qwerty
Jul 11 00:53:22 service esmith::event[144305]: Action: /etc/e-smith/events/group-create/S40nethserver-dc-group-create SUCCESS [1.133855]
Jul 11 00:53:22 service esmith::event[144305]: [NOTICE] clearing sssd cache for group qwerty@my.domain
Jul 11 00:53:22 service esmith::event[144305]: Action: /etc/e-smith/events/group-create/S90nethserver-sssd-clear-cache SUCCESS [0.273908]
Jul 11 00:53:22 service esmith::event[144305]: Event: group-create SUCCESS
On user deletion also have issue:
On mail alias, the user still member of the mail alias.
Email folder deleted but other folder of user still remain in:
/var/lib/nethserver/home/
/var/lib/nethserver/profile/
/var/lib/nethserver/nextcloud/
I already tried on clean installation using virtual box and update the Nethserver.
Also have the same issue.
From Management Users and Groups > Groups, create new groups.
On Management Email Addresses > Mail Aliases, i cannot found the new group that just created.
Then add manually for Mail Aliases of the group.
From Management Users and Groups > Users, create new user and directly add to existing groups that already have Mail Aliases.
On Management Email Addresses > Mail Aliases, the new user is not yet part of group’s Mail aliases.
Then add manually for the new user to be part of group’s Mail aliases.
Delete the user from Management Users and Groups > Users, double check in group’s Mail aliases (previously add manually user to be part of group’s Mail aliases); the user email address still member of the group.
I never found this issue before on NethServer 6. Any advise really appreciated.
Well, we can see some inconsistencies among the packages listed above.
Surely, ns7 has a new concept/use case that ns6 does not have: the remote account provider. In this case the user-deleted and group-deleted events can’t be catched.
After some months of real world experience, I’d prefer ns7 behaves exactly like ns6 on the local account provider scenario. Thus when a user/group is deleted, also local data dirs are removed.
But on remote scenario nothing can be done.
Confirmed. Mail aliases must be created manually. For local accounts provider on a mail server, an UI enhancement during user/group creation could be adding a checkbox that enables mail alias and shared mailbox creation.
Got it workable, do you want it only on group creation,…no update on group-modify, we could make a check box and update the group alias on event group-modify too
sharedmailbox-create will warn that the mailbox exists
IMHO, two ways
grep and test if the shared mail box exist before to trigger the event
implement a group-modify and a group-delete to expand more users as alias of a group and/or delete the shared mailbox and the users no more longer of that group.
As alternative approach, you could also query mysql
[root@here ~]# echo "select directory_uuid from oc_ldap_user_mapping where ldap_dn like 'cn=davidep,%';" | mysql nextcloud
directory_uuid
67C77753-DFC4-4A1C-80F5-9DA9BF54674B
the query depends on the accounts provider but can be generalized as
[root@here ~]# echo "select directory_uuid from oc_ldap_user_mapping where ldap_dn like 'cn=davidep,%' or ldap_dn like 'uid=davidep,%' ;" | mysql nextcloud
directory_uuid
67C77753-DFC4-4A1C-80F5-9DA9BF54674B
Both solutions are hacks: if the table schema or the command output change we have a problem…