Currently schema info's revision field isn't incremented if relax
control is present. This is so that no increment is done during
provision, but we need the relax control in other situations where
the increment is desired, so we should use the provision control instead
to disable schema info update.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13799
Signed-off-by: Aaron Haslett <aaronhaslett@catalyst.net.nz>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
(cherry picked from commit
b7c1752754da1e8a83a53670cf4a410ec6e9d7b7)
}
/* do not update schemaInfo during provisioning */
- if (ldb_request_get_control(ac->req, LDB_CONTROL_RELAX_OID)) {
+ if (ldb_request_get_control(ac->req, LDB_CONTROL_PROVISION_OID)) {
return LDB_SUCCESS;
}