summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-07-04 14:03:29 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-07-04 14:03:29 +0000
commitf8b3306913429715768087009f77990b1e008f1c (patch)
tree29da34b83b6e5c490f5e2029da2dbbb58c92f1a1
parent9cc52051e1a671317feb7bcfa12961378958409e (diff)
downloadsamba-f8b3306913429715768087009f77990b1e008f1c.tar.gz
samba-f8b3306913429715768087009f77990b1e008f1c.tar.bz2
samba-f8b3306913429715768087009f77990b1e008f1c.zip
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)
-rw-r--r--source3/sam/idmap_util.c5
1 files changed, 5 insertions, 0 deletions
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;
}