summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-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;
}