1
0
mirror of https://github.com/samba-team/samba.git synced 2025-05-28 21:05:48 +03:00

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
This commit is contained in:
Kamen Mazdrashki 2010-01-07 04:01:14 +02:00 committed by Andrew Tridgell
parent 73838b353a
commit 6247a135c6

View File

@ -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)