Skip to content

Nextcloud: ldapEmailAttribute and Samba userPrincipalname #7299

@antonwantstosleep

Description

@antonwantstosleep

I`ve got an issue with Nextcloud user email address imported from Samba AD.

When I create domain in NS8 I follow the Active Directory Naming FAQ:

  • my external domain (website) is example.com
  • so i choose ad.example.com or corp.example.com as Samba AD domain name (realm name, root DN, etc.)

Then I create users, and 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).

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.com with RSAT (and remember to change it on every new user creation, right?)
  • ask your help and advice

Thank you! Sorry for my clumsy English!

Metadata

Metadata

Assignees

Labels

verifiedAll test cases were verified successfully

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions