Domain admins removed

I removed domain admin !!!
How can I recreate it?

What is your accounts provider? AD or LDAP? Local or remote?

My accounts provider is LDAP local

1 Like

The libuser library set a constraint on the group name: spaces are not allowed.

To keep the “domain admins” naming consistent with the AD accounts provider a workaround is applied during the inital LDAP tree provisioning (action /etc/e-smith/events/actions/nethserver-directory-createadmins).

To recreate “domain admins”, create a group as “domadmins” (no spaces!), then rename it:

    ldapmodrdn -Y EXTERNAL 'cn=domadmins,ou=Groups,dc=directory,dc=nh' "cn=domain admins"
    ldapmodify -Y EXTERNAL <<EOF
dn: cn=domain admins,ou=Groups,dc=directory,dc=nh
changetype: modify
replace: cn
cn: domain admins
EOF

ok perfect, resolved,
The problem remains in the dashboard that indicates two groups even if I see one only.
thank you