summaryrefslogtreecommitdiff
path: root/source3/utils/testparm.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-11-05 07:20:27 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-11-05 07:20:27 +0000
commitb81b71a8d121fdf937dc32aa007a5ce01676c54c (patch)
treeb4e0ca7e3188823d8942f47bcecf0db18e940004 /source3/utils/testparm.c
parentea6d5bc48bd14f8eaca665576d7094cce53be81a (diff)
downloadsamba-b81b71a8d121fdf937dc32aa007a5ce01676c54c.tar.gz
samba-b81b71a8d121fdf937dc32aa007a5ce01676c54c.tar.bz2
samba-b81b71a8d121fdf937dc32aa007a5ce01676c54c.zip
Merge vl's 'algorithmic rid base' patch, and my changes to pdb_smbpasswd's NUA
support from HEAD -> 3.0 Andrew Bartlett (This used to be commit 89d8ebd520e2a441e6d5b6b8adb6c483b0131adc)
Diffstat (limited to 'source3/utils/testparm.c')
-rw-r--r--source3/utils/testparm.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/utils/testparm.c b/source3/utils/testparm.c
index c81d6e72e4..c92692fda2 100644
--- a/source3/utils/testparm.c
+++ b/source3/utils/testparm.c
@@ -168,6 +168,16 @@ 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() < 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) {
+ printf("'algorithmic rid base' must be even.\n");
+ }
+
return ret;
}