1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

idmap_autorid: Only look at the tdc cache when allocating ranges

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Volker Lendecke 2016-12-02 12:18:06 +00:00
parent 4cfd824fd3
commit 9fe42eb58e

View File

@ -585,6 +585,13 @@ static NTSTATUS idmap_autorid_sid_to_id(struct idmap_tdb_common_context *common,
global->rangesize, range.low_id, map); global->rangesize, range.low_id, map);
} }
if (dom->read_only) {
DBG_DEBUG("read-only is enabled, did not allocate "
"new range for domain %s\n", range.domsid);
map->status = ID_UNMAPPED;
return NT_STATUS_NONE_MAPPED;
}
/* /*
* Check if the domain is around * Check if the domain is around
*/ */