Note that this will not prevent the idmap script from writing its
mappings to the database, but no new unix ids will be allocated via
the allocator and hence no new mappings will be autogenerated.
ret = idmap_tdb2_sids_to_unixids_action(idmap_tdb2, &state);
- if (NT_STATUS_EQUAL(ret, STATUS_SOME_UNMAPPED)) {
+ if (NT_STATUS_EQUAL(ret, STATUS_SOME_UNMAPPED) && !dom->read_only) {
state.allocate_unmapped = true;
ret = dbwrap_trans_do(idmap_tdb2,
idmap_tdb2_sids_to_unixids_action,