1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

s4-provision: allow provision modifies to add records

we need to recognise a changetype of 'add'
This commit is contained in:
Andrew Tridgell 2010-01-06 09:15:35 +11:00
parent 226460d543
commit fcfb5d7b63

View File

@ -255,7 +255,10 @@ class Ldb(ldb.Ldb):
:param ldif: LDIF text. :param ldif: LDIF text.
""" """
for changetype, msg in self.parse_ldif(ldif): 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): def set_domain_sid(self, sid):
"""Change the domain SID used by this LDB. """Change the domain SID used by this LDB.