summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-09-05 22:38:15 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-09-07 08:44:35 +1000
commit02da47d75c4cbf977ad70d75f20e4d6100907cdc (patch)
tree574088d086607494fbc358695d944f35b7ed1f83 /source4/scripting
parentfd65e5eb8cdd38917a574734c9079cd75e4e1be0 (diff)
downloadsamba-02da47d75c4cbf977ad70d75f20e4d6100907cdc.tar.gz
samba-02da47d75c4cbf977ad70d75f20e4d6100907cdc.tar.bz2
samba-02da47d75c4cbf977ad70d75f20e4d6100907cdc.zip
s4-s3-upgrade Fix group member addition
Diffstat (limited to 'source4/scripting')
-rw-r--r--source4/scripting/python/samba/upgrade.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/scripting/python/samba/upgrade.py b/source4/scripting/python/samba/upgrade.py
index 7b0c062ce1..7e16eeee2c 100644
--- a/source4/scripting/python/samba/upgrade.py
+++ b/source4/scripting/python/samba/upgrade.py
@@ -202,8 +202,8 @@ def add_users_to_group(samdb, group, members, logger):
"""
for member_sid in members:
m = ldb.Message()
- m.dn = ldb.Dn(samdb, "<SID=%s" % str(group.sid))
- m['a01'] = ldb.MessageElement("<SID=%s>" % str(member_sid), ldb.FLAG_MOD_REPLACE, 'member')
+ m.dn = ldb.Dn(samdb, "<SID=%s>" % str(group.sid))
+ m['a01'] = ldb.MessageElement("<SID=%s>" % str(member_sid), ldb.FLAG_MOD_ADD, 'member')
try:
samdb.modify(m)