]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
samdb: Create computer in wellknown user container
authorDavid Mulder <dmulder@suse.com>
Wed, 26 Aug 2020 14:15:07 +0000 (08:15 -0600)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 22 Jun 2021 01:14:37 +0000 (01:14 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=9143
Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/samdb.py

index 979cf6d3592300a18ef0ee1c55de035e0092e6ac..5e4f07bb6797a1f52ad286e6c1305c98c7f0f150 100644 (file)
@@ -773,7 +773,8 @@ member: %s
             raise Exception('Illegal computername "%s"' % computername)
         samaccountname = "%s$" % cn
 
-        computercontainer_dn = "CN=Computers,%s" % self.domain_dn()
+        computercontainer_dn = self.get_wellknown_dn(self.get_default_basedn(),
+                                              dsdb.DS_GUID_COMPUTERS_CONTAINER)
         if computerou:
             computercontainer_dn = self.normalize_dn_in_domain(computerou)