Realm join command is failing with "Couldn't join realm: The computer-ou argument must be a valid LDAP DN and contain only OU=xxx RDN values."

Solution Verified - Updated -

Issue

  • Realm join command is failing with Couldn't join realm: The computer-ou argument must be a valid LDAP DN and contain only OU=xxx RDN values. i.e:
# realm join example.com -U djoiner -v
 * Resolving: _ldap._tcp.example.com
 * Performing LDAP DSE lookup on: 192.168.1.1
 * Performing LDAP DSE lookup on: 192.168.1.2
 * Successfully discovered: Example.com
Password for djoiner:
 * Required files: /usr/sbin/oddjobd, /usr/libexec/oddjob/mkhomedir, /usr/sbin/sssd, /usr/bin/net
 ! The computer-ou argument must be a valid LDAP DN and contain only OU=xxx RDN values.
realm: Couldn't join realm: The computer-ou argument must be a valid LDAP DN and contain only OU=xxx RDN values.

Environment

  • Red Hat Enterprise Linux 7.x
  • Red Hat Enterprise Linux 8.x

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