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:
parent
226460d543
commit
fcfb5d7b63
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user