How to join Active Directory domain if Linux hostname is more than 15 characters.
Issue
- Not able to join Active directory domain if hostname is more than 15 characters.
- User is not able to login after joining the AD domain if the hostname is more than 15 characters.
-
realm -v joinfails with error:! Couldn't lookup computer account: TEST-HOSTNAME-01$: Size limit exceeded adcli: joining domain example.com failed: Couldn't lookup computer account: TEST-HOSTNAME-01$: Size limit exceeded
Environment
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat Enterprise Linux 10
- sssd
- realmd
- adcli
- net/samba
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.