Fedora 29
Sponsored Link

Join in Active Directory Domain2018/11/02

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.
Domain Server : Windows Server 2016
NetBIOS Name : FD3S01
Domain Name : srv.world
Hostname : fd3s.srv.world
[1] Install some required packages.
[root@dlp ~]#
dnf -y install realmd sssd oddjob oddjob-mkhomedir adcli samba-common-tools
[2] Join in Windows Active Directory Domain.
# change DNS settings to refer to AD

[root@dlp ~]#
nmcli connection modify ens3 ipv4.dns

[root@dlp ~]#
nmcli connection down ens3; nmcli connection up ens3
# discover Active Directory domain

[root@dlp ~]#
realm discover SRV.WORLD

  type: kerberos
  realm-name: SRV.WORLD
  domain-name: srv.world
  configured: no
  server-software: active-directory
  client-software: sssd
  required-package: oddjob
  required-package: oddjob-mkhomedir
  required-package: sssd
  required-package: adcli
  required-package: samba-common-tools

# 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=668201000(serverworld@srv.world) gid=668200513(domain users@srv.world) groups=668200513(domain users@srv.world)
# verify it's possible to switch to an AD user or not

[root@dlp ~]#
su - FD3S01\\Serverworld

Creating home directory for serverworld@srv.world.
[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 =
[root@dlp ~]#
systemctl restart sssd

[root@dlp ~]#
id Administrator

uid=668200500(administrator) gid=668200513(domain users) groups=668200513(domain users),668200518(schema admins),668200512(domain admins),668200519(enterprise admins),668200520(group policy creator owners),668200572(denied rodc password replication group)
Matched Content