From 02da47d75c4cbf977ad70d75f20e4d6100907cdc Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 5 Sep 2011 22:38:15 +1000 Subject: s4-s3-upgrade Fix group member addition --- source4/scripting/python/samba/upgrade.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/scripting') 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, "" % str(member_sid), ldb.FLAG_MOD_REPLACE, 'member') + m.dn = ldb.Dn(samdb, "" % str(group.sid)) + m['a01'] = ldb.MessageElement("" % str(member_sid), ldb.FLAG_MOD_ADD, 'member') try: samdb.modify(m) -- cgit