s4/dsdb: Set schemaInfo attribute value during provisioning
[kamenim/samba.git] / source4 / scripting / python / samba / provision.py
index abbcf5221055b8da7c1203ade0de669ce818d03a..2e4aa34a8ce90826e2969e46c9c8c91cf40c4ce6 100644 (file)
@@ -945,6 +945,8 @@ def setup_samdb(path, setup_path, session_info, provision_backend, lp,
         message("Setting up sam.ldb schema")
         samdb.add_ldif(schema.schema_dn_add, controls=["relax:0"])
         samdb.modify_ldif(schema.schema_dn_modify)
+        # set schemaInfo to defalt value for a new Forest
+        samdb.set_schema_info()
         samdb.write_prefixes_from_schema()
         samdb.add_ldif(schema.schema_data, controls=["relax:0"])
         setup_add_ldif(samdb, setup_path("aggregate_schema.ldif"),