summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/tests/python
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-12-29 11:41:19 +1100
committerAndrew Tridgell <tridge@samba.org>2010-01-02 08:16:55 +1100
commit98d94cca6fdf0f9fbe045fdb213f642244ddc41f (patch)
treee257aeff64df64c67ce189a328c30792fdd99b46 /source4/lib/ldb/tests/python
parent81e8a18181d3f24ac837ae0295fc2fca927a7ddf (diff)
downloadsamba-98d94cca6fdf0f9fbe045fdb213f642244ddc41f.tar.gz
samba-98d94cca6fdf0f9fbe045fdb213f642244ddc41f.tar.bz2
samba-98d94cca6fdf0f9fbe045fdb213f642244ddc41f.zip
s4-ldbtest: fixed message element in modify
a flags value of zero is not valid
Diffstat (limited to 'source4/lib/ldb/tests/python')
-rwxr-xr-xsource4/lib/ldb/tests/python/ldap.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/lib/ldb/tests/python/ldap.py b/source4/lib/ldb/tests/python/ldap.py
index c2920c009e..36514f1262 100755
--- a/source4/lib/ldb/tests/python/ldap.py
+++ b/source4/lib/ldb/tests/python/ldap.py
@@ -704,7 +704,8 @@ objectClass: container
# Make group 1 secondary
m = Message()
m.dn = Dn(ldb, "cn=ldaptestgroup,cn=users," + self.base_dn)
- m["member"] = "cn=ldaptestuser,cn=users," + self.base_dn
+ m["member"] = MessageElement("cn=ldaptestuser,cn=users," + self.base_dn,
+ FLAG_MOD_REPLACE, "member")
ldb.modify(m)
# Make group 1 primary