AD Domain Join

Joinin Linux to an AD Domain.

using realm

Auf neueren Linuxvarianten geht der Domain Join ganz einfach über das realm toolset.

# realm join --automatic-id-mapping=no


Mimimalistic conf, but users without domainpart i.e. username instead of username@domain and with UID/GID from Active Directory Property.

domains =
config_file_version = 2
services = nss, pam
default_shell = /bin/bash
krb5_store_password_if_offline = True
cache_credentials = True
krb5_realm = AENDY.CH
realmd_tags = manages-system joined-with-adcli
id_provider = ad
fallback_homedir = /home/%u
ad_domain =
use_fully_qualified_names = false
ldap_id_mapping = False
access_provider = ad

Änderungen anwenden, wenn z.B. use_fully_qualified_names oder änhnliches geändert hat. Der Cache muss dann geleert werden.

systemctl stop sssd
rm -f /var/lib/sss/db/*
systemctl start sssd

…to be continued

lx/ad-domain.txt · Zuletzt geändert: 07.11.2022 15:40 von Andy Haubenschmid