diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-01-06 09:15:35 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-01-08 13:02:59 +1100 |
commit | fcfb5d7b63293a13fa4984c0a4502a682a5a02a9 (patch) | |
tree | 3bd8e46f00293fcd4be272a43e04d6e1c646616a /source4/scripting | |
parent | 226460d543892fcfcb569297bc450648f4fc4f0f (diff) | |
download | samba-fcfb5d7b63293a13fa4984c0a4502a682a5a02a9.tar.gz samba-fcfb5d7b63293a13fa4984c0a4502a682a5a02a9.tar.bz2 samba-fcfb5d7b63293a13fa4984c0a4502a682a5a02a9.zip |
s4-provision: allow provision modifies to add records
we need to recognise a changetype of 'add'
Diffstat (limited to 'source4/scripting')
-rw-r--r-- | source4/scripting/python/samba/__init__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/__init__.py b/source4/scripting/python/samba/__init__.py index 5d61c1bd8c..d7df6b979b 100644 --- a/source4/scripting/python/samba/__init__.py +++ b/source4/scripting/python/samba/__init__.py @@ -255,7 +255,10 @@ class Ldb(ldb.Ldb): :param ldif: LDIF text. """ for changetype, msg in self.parse_ldif(ldif): - self.modify(msg, controls) + if (changetype == ldb.CHANGETYPE_ADD): + self.add(msg, controls) + else: + self.modify(msg, controls) def set_domain_sid(self, sid): """Change the domain SID used by this LDB. |