Skip to content

Commit

Permalink
provision: make clear that the tmp ldb is running in @IDXGUID mode
Browse files Browse the repository at this point in the history
This happended when the schema was set on the DB, forcing the full set of Samba behaviours

Signed-off-by: Andrew Bartlett <[email protected]>
Reviewed-by: Garming Sam <[email protected]>
  • Loading branch information
abartlet committed Sep 23, 2017
1 parent 5f2576a commit eabc344
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/samba/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,15 @@ def write_to_tmp_ldb(self, schemadb_path):
self.ldb.connect(url=schemadb_path)
self.ldb.transaction_start()
try:
# These are actually ignored, as the schema has been forced
# when the ldb object was created, and that overrides this
self.ldb.add_ldif("""dn: @ATTRIBUTES
linkID: INTEGER
dn: @INDEXLIST
@IDXATTR: linkID
@IDXATTR: attributeSyntax
@IDXGUID: objectGUID
""")
# These bits of LDIF are supplied when the Schema object is created
self.ldb.add_ldif(self.schema_dn_add)
Expand Down

0 comments on commit eabc344

Please sign in to comment.