After upgrading to samba-4.10.4, 'realm join' and 'net ads join' command fails to join AD domain with options '--computer-ou' and 'createcomputer' respectively

Solution Verified - Updated -

Issue

  • After upgrading to samba-4.10.4, 'realm join' & 'net ads join' command fails to join AD domain with option '--computer-ou' & 'createcomputer=' respectively.

  • realm command fails to join AD domain using options --computer-ou and --membership-software=samba after upgrade to samba-4.10.4

# realm join example.com -U Administrator --computer-ou='OU=Linux,dc=example,dc=com' -v --verbose --membership-software=samba

Failed to join domain: failed to precreate account in ou ou=Linux,dc=Example,dc=Com: No such object
 ! Joining the domain example.com failed
realm: Couldn't join realm: Joining the domain example.com failed
  • net ads join command fails to join AD domain with option 'createcomputer=':
# net ads join example.com -U Administrator createcomputer="Linux"

Failed to join domain: failed to precreate account in ou ou=Linux,dc=EXAMPLE,dc=COM: No such object

Environment

  • Red Hat Enterprise Linux 8
  • Active Directory
  • samba-4.10.4-x (samba-4.10.4-1.el8.x86_64 & samba-4.10.4-101.el8_1.x86_64)

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