How to join Active Directory domain if Linux hostname is more than 15 characters.

Solution Verified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content