I`ve got an issue with Nextcloud user email address imported from Samba AD.
When I create AD in NS8 I follow the Active Directory Naming FAQ:
- my external domain (website) is
example.com - so i choose
ad.example.comorcorp.example.comas Samba AD domain name (realm name, root DN, etc.)
My users must have an email user@example.com. They must be able to login with it to all apps (or use shorter login user).
When I create users, they have a user@ad.example.com or user@corp.example.com UPN’s by default. Also I fill their mail field with user@example.com (in LAM application).
Also there is an issue with Nextcloud:
- I can login as
useranduser@ad.example.com - I can’t login as
user@example.com(the email address) - the email address in the User Contacts is wrong -
user@ad.example.com
This happens because Nextcloud fires imageroot/bin/setup-ldap every time on boot, so set_ldap("ldapEmailAttribute", "userPrincipalname") row overwrites my changes made in Nextcloud UI (I want to switch the ldapEmailAttribute from userPrincipalname to mail).
I use latest NS8.
My options:
- change domain name to
example.com(and have DNS issues, right?) - create an additional UPN suffix
example.comwith RSAT (and remember to change the userPrincipalname on every new user creation, right?) - run after every boot
runagent -m nextcloud1 occ ldap:set-config s01 ldapEmailAttribute "mail"to override settings (how? Is there any hooks?) - ask your help and advice
Thank you! Sorry for my clumsy English!