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 join
fails 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
- sssd
- /bin/net
- /sbin/realm
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.