mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
samdb: Create group 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>
This commit is contained in:
parent
43ab8a4a1b
commit
4602f4fc1b
@ -228,7 +228,12 @@ lockoutTime: 0
|
||||
:param sd: security descriptor of the object
|
||||
"""
|
||||
|
||||
group_dn = "CN=%s,%s,%s" % (groupname, (groupou or "CN=Users"), self.domain_dn())
|
||||
if groupou:
|
||||
group_dn = "CN=%s,%s,%s" % (groupname, groupou, self.domain_dn())
|
||||
else:
|
||||
group_dn = "CN=%s,%s" % (groupname, self.get_wellknown_dn(
|
||||
self.get_default_basedn(),
|
||||
dsdb.DS_GUID_USERS_CONTAINER))
|
||||
|
||||
# The new user record. Note the reliance on the SAMLDB module which
|
||||
# fills in the default information
|
||||
|
Loading…
Reference in New Issue
Block a user