summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorDavid Mulder <dmulder@suse.com>2020-08-26 08:15:07 -0600
committerAndrew Bartlett <abartlet@samba.org>2021-06-22 01:14:37 +0000
commitfee11c35586adfa7e3ce79f03798732ffb870829 (patch)
treed0b8b4929b4db518a5219f2c5499e3c8ffa11498 /python
parent4602f4fc1b537e74fdee8d9f1a390a4ea1ba18d5 (diff)
downloadsamba-fee11c35586adfa7e3ce79f03798732ffb870829.tar.gz
samba-fee11c35586adfa7e3ce79f03798732ffb870829.tar.bz2
samba-fee11c35586adfa7e3ce79f03798732ffb870829.zip
samdb: Create computer in wellknown user container
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>
Diffstat (limited to 'python')
-rw-r--r--python/samba/samdb.py3
1 files changed, 2 insertions, 1 deletions
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)