From: David Mulder Date: Wed, 26 Aug 2020 14:15:07 +0000 (-0600) Subject: samdb: Create computer in wellknown user container X-Git-Tag: tevent-0.11.0~245 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=fee11c35586adfa7e3ce79f03798732ffb870829;p=thirdparty%2Fsamba.git samdb: Create computer in wellknown user container BUG: https://bugzilla.samba.org/show_bug.cgi?id=9143 Signed-off-by: David Mulder Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/samdb.py b/python/samba/samdb.py index 979cf6d3592..5e4f07bb679 100644 --- a/python/samba/samdb.py +++ b/python/samba/samdb.py @@ -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)