From f8b3306913429715768087009f77990b1e008f1c Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 4 Jul 2003 14:03:29 +0000 Subject: Don't allow RIDs (in our domain) below 1000 (or algorithmic rid base) to be mapped with the rid algorithm. Instead, a uid/gid from the UID/GID range will be allocated for this RID. Andrew Bartlett (This used to be commit 68245e9cfae9a8cb663503301c21498dd9a3a560) --- source3/sam/idmap_util.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3/sam/idmap_util.c') diff --git a/source3/sam/idmap_util.c b/source3/sam/idmap_util.c index ffc3db2a0a..3125c647d6 100644 --- a/source3/sam/idmap_util.c +++ b/source3/sam/idmap_util.c @@ -56,9 +56,14 @@ BOOL idmap_check_rid_is_in_free_range(uint32 rid) if (!idmap_get_free_rid_range(&low, &high)) { return False; } + if (rid < algorithmic_rid_base()) { + return True; + } + if (rid < low || rid > high) { return False; } + return True; } -- cgit