Confirmed the problem on eoan: # sudo realm join -v --computer-ou="OU=linux-computers,OU=client computers,OU=all computers,DC=ad1,DC=example,DC=com" --os-name=ubuntu --os-version=20.10 --client-software=sssd --automatic-id-mapping=no --membership-software=samba --computer-name=EOAN ! Couldn't get default domain from DHCP: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.NetworkManager was not provided by any .service files * No default domain received via DHCP realm: No such realm found root@eoan:~# sudo realm join -v --computer-ou="OU=linux-computers,OU=client computers,OU=all computers,DC=ad1,DC=example,DC=com" --os-name=ubuntu --os-version=20.10 --client-software=sssd --automatic-id-mapping=no --membership-software=samba --computer-name=EOAN ad1.example.com * Resolving: _ldap._tcp.ad1.example.com * Performing LDAP DSE lookup on: 10.51.0.5 * Successfully discovered: ad1.example.com Password for Administrator: * Unconditionally checking packages * Resolving required packages * Installing necessary packages: sssd-tools samba-common-bin sssd libnss-sss libpam-sss * Joining using a manual netbios name: EOAN * LANG=C LOGNAME=root /usr/bin/net -s /var/cache/realmd/realmd-smb-conf.C0GJQ0 -U Administrator ads join ad1.example.com createcomputer=all computers/client computers/linux-computers osName=ubuntu osVer=20.10 Enter Administrator's password: Failed to join domain: failed to precreate account in ou ou=linux-computers,ou=client computers,ou=all computers,dc=AD1,dc=EXAMPLE,dc=COM: No such object ! Joining the domain ad1.example.com failed realm: Couldn't join realm: Joining the domain ad1.example.com failed
Since realmd is the same, it's samba that had the bug and it was fixed in later releases, so from focal onwards the problem is not present. It looks like it was https://bugzilla.samba.org/show_bug.cgi?id=14007, fixed in 4.10.9. Since Ubuntu 19.10 Eoan is EOL, and 20.04 has 4.11.6 and I just confirmed it works there. I'll mark this bug as fix released then. ** Bug watch added: Samba Bugzilla #14007 https://bugzilla.samba.org/show_bug.cgi?id=14007 ** Changed in: realmd (Ubuntu) Status: New => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1853572 Title: realm fails with option --computer-ou To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/realmd/+bug/1853572/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
