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:
parent
4cfd824fd3
commit
9fe42eb58e
@ -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
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user