changetype: modify
replace: dsServiceName
dsServiceName: CN=NTDS Settings,%s
--
""" % forced_local_dsa)
+ tmpdb.add_ldif("""dn: @MODULES
+@LIST: rootdse,extended_dn_in,extended_dn_out_ldb
+-
+""")
+
except Exception, estr:
tmpdb.transaction_cancel()
raise LdifError("Failed to import %s: %s" % (ldif_file, estr))
# We have an abbreviated list of options here because we have built
# an abbreviated database. We use the rootdse and extended-dn
# modules only during this re-open
- samdb = SamDB(url=dburl, session_info=system_session(), lp=lp,
- options=["modules:rootdse,extended_dn_in,"
- "extended_dn_out_ldb"])
+ samdb = SamDB(url=dburl, session_info=system_session(), lp=lp)
return samdb