-
Notifications
You must be signed in to change notification settings - Fork 8
Domain join
Wiki Pusher edited this page Sep 5, 2022
·
1 revision
The domain join works like this:
- 1 The SSSD user cache is cleared using
sssctl cache-remove --stop --start --override - 2 Existing domain joins are removed / left using
realm leave. They are queried usingrealm list - 3 Available domains are discovered using
realm discover- If a domain was specified using the
--domainparameter, and this domain is found, it will be joined - If no domain was specified, the first discovered domain will be joined
- If no domain was found or the specified domain was not found, the setup will exit with an error
- If a domain was specified using the
- 4 The
/etc/linuxmuster-linuxclient7/network.conffile is written- The necessary details are queried using
adcli info $DOMAINwhere$DOMAINis the domain which is going to be joined
- The necessary details are queried using
- 5 All templates in
/usr/share/linuxmuster-linuxclient7/templatesare applied - 6 Services are restarted
- 7 The Domain is joined
- 7.1 A Kerberos ticket for global-admin (or the user specified by
--user) is pulled. (this is where the password prompt comes from) - 7.2 The domain is joined using
realm join -v $DOMAIN --no-password(this is using the Kerberos ticket from 7.1)
- 7.1 A Kerberos ticket for global-admin (or the user specified by
- 8 The Server CA certificate is installed on the client
- 8.1 The sysvol is mounted using the Kerberos ticket from 7.1
- 8.2 The CA Certificate is copied from
\\sysvol\$DOMAIN\tls\cacert.pemto/var/lib/samba/private/tls/$DOMAIN.pem
- 9 The SSSD configuration in
/etc/sssd/sssd.confis adjusted:-
use_fully_qualified_namesis set toFalseto allow user to login using$USERNAMEinstead of$USERNAME@$DOMAIN -
override_homediris set to/home/%u -
krb5_validateis set toFalse. This is necessary because the KVNO in/etc/krb5.keytabmight not match themsDS-KeyVersionNumberin the AD which will lead to SSSD errors whenkrb5_validateis set toTrue
-
- 10 A final test is run to make sure the domain join worked by testing if the group
domain usersexists usinggetent group "domain users".