If the DnsAdmins group is moved from the Users container samba_upgradedns fails with: Traceback (most recent call last): File "/usr/sbin/samba_upgradedns", line 262, in <module> paths, lp.configfile, lp) File "/usr/lib64/python2.7/site-packages/samba/provision/__init__.py", line 330, in find_provision_key_parameters dns_admins_sid = get_dnsadmins_sid(samdb, names.domaindn) File "/usr/lib64/python2.7/site-packages/samba/provision/sambadns.py", line 68, in get_dnsadmins_sid attrs=["objectSid"]) _ldb.LdbError: (32, 'No such Base DN: CN=DnsAdmins,CN=Users,DC=dom,DC=creof,DC=com') Method get_dnsadmins_sid() of sambadns.py has the Users container hardcoded in the search: def get_dnsadmins_sid(samdb, domaindn): res = samdb.search(base="CN=DnsAdmins,CN=Users,%s" % domaindn, scope=ldb.SCOPE_BASE, attrs=["objectSid"])
Was this fixed with 0db57db80a59e2ecfb1c626f66a72987d9fedcef ?