diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-09-05 22:38:15 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-09-07 08:44:35 +1000 |
commit | 02da47d75c4cbf977ad70d75f20e4d6100907cdc (patch) | |
tree | 574088d086607494fbc358695d944f35b7ed1f83 /source4/scripting | |
parent | fd65e5eb8cdd38917a574734c9079cd75e4e1be0 (diff) | |
download | samba-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.py | 4 |
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) |