diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-11-03 14:13:43 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-11-03 14:13:43 +0000 |
commit | a7f2feae31ec5d377b55cc11e655ca8c39ac7679 (patch) | |
tree | 0998ca3f6f8899e32c7e985ba3d383fbc6abfce1 /source3/utils/testparm.c | |
parent | 281284c819d0452c5d5db530ecdbd1267cd4e22c (diff) | |
download | samba-a7f2feae31ec5d377b55cc11e655ca8c39ac7679.tar.gz samba-a7f2feae31ec5d377b55cc11e655ca8c39ac7679.tar.bz2 samba-a7f2feae31ec5d377b55cc11e655ca8c39ac7679.zip |
Extra little fix to vl's patch. Make sure the passdb and testparm messages
say exactly the same thing - in particular that we can algorithmic rid base ==
1000, and use the BASE_RID macro to avoid the use of magic numbers.
Andrew Bartlett
(This used to be commit b70f2a8047ac549841bc103932b38951e9814186)
Diffstat (limited to 'source3/utils/testparm.c')
-rw-r--r-- | source3/utils/testparm.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/utils/testparm.c b/source3/utils/testparm.c index f2636fdafb..c92692fda2 100644 --- a/source3/utils/testparm.c +++ b/source3/utils/testparm.c @@ -168,8 +168,10 @@ via the %%o substitution. With encrypted passwords this is not possible.\n", lp_ printf("'winbind separator = +' might cause problems with group membership.\n"); } - if (lp_algorithmic_rid_base() < 1000) { - printf("'algorithmic rid base' must be equal or above 1000.\n"); + if (lp_algorithmic_rid_base() < BASE_RID) { + /* Try to prevent admin foot-shooting, we can't put algorithmic + rids below 1000, that's the 'well known RIDs' on NT */ + printf("'algorithmic rid base' must be equal to or above %lu\n", BASE_RID); } if (lp_algorithmic_rid_base() & 1) { |