Join in Active Directory Domain2018/05/08 |
Join in Windows Active Directory Domain with Realmd.
This tutorial needs Windows Active Directory Domain Service in your LAN.
This example shows to configure on the environment below.
|
|||||||||||
[1] | Install some required packages. |
root@dlp:~# apt -y install realmd sssd sssd-tools libnss-sss libpam-sss adcli samba-common-bin oddjob oddjob-mkhomedir packagekit
|
[2] | Join in Windows Active Directory Domain. |
nameservers:
addresses: [10.0.0.100]
root@dlp:~#
netplan apply
# discover Active Directory domain root@dlp:~# realm discover SRV.WORLD srv.world type: kerberos realm-name: SRV.WORLD domain-name: srv.world configured: no server-software: active-directory client-software: sssd required-package: sssd-tools required-package: sssd required-package: libnss-sss required-package: libpam-sss required-package: adcli required-package: samba-common-bin # join in Active Directory domain root@dlp:~# realm join SRV.WORLD Password for Administrator: # AD Administrator password
# verify it's possible to get an AD user info or not root@dlp:~# id FD3S01\\Serverworld uid=409601000(serverworld@srv.world) gid=409600513(domain users@srv.world) groups=409600513(domain users@srv.world) # verify it's possible to switch to an AD user or not root@dlp:~# su - FD3S01\\Serverworld No directory, logging in with HOME=/ serverworld@srv.world@dlp:/$ # just switched
|
[3] | If you'd like to omit domain name for AD user, configure like follows. |
root@dlp:~#
vi /etc/sssd/sssd.conf # line 16: change use_fully_qualified_names = False
root@dlp:~#
root@dlp:~# systemctl restart sssd id Administrator uid=409600500(administrator) gid=409600513(domain users) groups=409600513(domain users), 409600518(schema admins),409600572(denied rodc password replication group), 409600519(enterprise admins),409600512(domain admins),409600520(group policy creator owners) |
Sponsored Link |