Wrong email domain

The server is set up to with this domain nt.mydomain.com.

Email accounts are setup as testuser@nt.mydomain.com instead of testuser@mydomain.com. This is an issue because I can’t edit the from email address when using ActiveSync.

Did I make a mistake somewhere?

config show DomainName

DomainName=nt.mydomain.com

config show sssd

sssd=service
AdDns=172.16.0.4
BindDN=ldapservice@NT.mydomain.COM
BindPassword=C1sQ8HfDFqdlp1j_
DiscoverDcType=ldapuri
LdapURI=ldaps://nsdc-adserver.nt.mydomain.com
Provider=ad
Realm=NT.MYDOMAIN.COM
ShellOverrideStatus=enabled
Workgroup=NTMDD
status=enabled

account-provider-test dump

{
“BindDN” : “ldapservice@NT.MYDOMAIN.COM”,
“LdapURI” : “ldaps://nsdc-adserver.nt.mydomain.com”,
“DiscoverDcType” : “ldapuri”,
“StartTls” : “”,
“port” : 636,
“host” : “nsdc-adserver.nt.mydomain.com”,
“isAD” : “1”,
“isLdap” : “”,
“UserDN” : “dc=nt,dc=mydomain,dc=com”,
“GroupDN” : “dc=nt,dc=mydomain,dc=com”,
“BindPassword” : “C1sP8HfVXqdlp1j_”,
“BaseDN” : “dc=nt,dc=mydomain,dc=com”,
“LdapUriDn” : “ldap:///dc%3Dnt%2Cdc%3Dmydomain%2Cdc%3Dcom”
}

net ads search -P cn=testuser | grep userPrincipalName

userPrincipalName: testuser@nt.mydomain.com

Hi Peter

A typo? Diid you mean testuser@mydomain.com and testuser@nt.mydomain.com?

My 2 cents
Andy

This should be the public domain name like mydomain.com, see also Users and groups — NethServer 7 Final

Yes, Andy, the domain should be mydomain.com. I updated the post.

How can I change this without reinstalling?

Hi Peter

You CAN change this, but you need to “redo” anything with AD.
If you remove the AD Account Provider, you can change the hostname (FQDN) and IP.
Then reinstall AD.

→ I generally use ad.domainname.com for AD, for NethServer I use something like XYZ-Nethserver.domain.com

You will need to re-add all users and groups…

Changing the hostname / domain is not supported when AD is active, unfortunately…

My 2 cents
Andy

1 Like