mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
Group creation: Add msSFU30Name only when --nis-domain was given
This fixes a bug, that all new created groups automatically get an msSFU30Name attribute added. This should only be the case, when we also have a nis-domain (samba-tool --nis-domain=...). Bugreport: https://bugzilla.samba.org/show_bug.cgi?id=11315 Signed-off-by: Marc Muehlfeld <mmuehlfeld@samba.org> Reviewed-by: Christian Ambach <ambi@samba.org> Autobuild-User(master): Christian Ambach <ambi@samba.org> Autobuild-Date(master): Tue Jun 16 11:58:02 CEST 2015 on sn-devel-104
This commit is contained in:
parent
95fc7fbe82
commit
9df07e6f1b
@ -191,8 +191,6 @@ pwdLastSet: 0
|
||||
"sAMAccountName": groupname,
|
||||
"objectClass": "group"}
|
||||
|
||||
ldbmessage["msSFU30Name"] = groupname
|
||||
|
||||
if grouptype is not None:
|
||||
ldbmessage["groupType"] = normalise_int32(grouptype)
|
||||
|
||||
@ -209,6 +207,7 @@ pwdLastSet: 0
|
||||
ldbmessage["gidNumber"] = normalise_int32(gidnumber)
|
||||
|
||||
if nisdomain is not None:
|
||||
ldbmessage["msSFU30Name"] = groupname
|
||||
ldbmessage["msSFU30NisDomain"] = nisdomain
|
||||
|
||||
if sd is not None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user