From 6247a135c68b592d99a8c1594aebe5ca7e716d7c Mon Sep 17 00:00:00 2001 From: Kamen Mazdrashki Date: Thu, 7 Jan 2010 04:01:14 +0200 Subject: s4/schema: Do not assign msDS-IntId value if LDB_CONTROL_RELAX_OID is passed This way msDS-IntId should not be assigned during provisioning, which is how Windows works --- source4/dsdb/samdb/ldb_modules/schema_data.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source4/dsdb/samdb/ldb_modules/schema_data.c b/source4/dsdb/samdb/ldb_modules/schema_data.c index 2e99113953..8125a46cbb 100644 --- a/source4/dsdb/samdb/ldb_modules/schema_data.c +++ b/source4/dsdb/samdb/ldb_modules/schema_data.c @@ -290,6 +290,11 @@ static int schema_data_add(struct ldb_module *module, struct ldb_request *req) } } + /* bypass further processing if CONTROL_RELAX is set */ + if (ldb_request_get_control(req, LDB_CONTROL_RELAX_OID)) { + return ldb_next_request(module, req); + } + /* generate and add msDS-IntId attr value */ if (attributeID && (dsdb_functional_level(ldb) >= DS_DOMAIN_FUNCTION_2003) -- cgit