summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2001-09-20 07:27:55 +0000
committerAndrew Bartlett <abartlet@samba.org>2001-09-20 07:27:55 +0000
commita88ed5d1be987af6fe1353a18298d206fbfca4e0 (patch)
tree4b2ce84994219a83600009ca9cfbae2bc7539781 /source3
parent8bb1479500d4c6085ef94e8ae032e1728def065f (diff)
downloadsamba-a88ed5d1be987af6fe1353a18298d206fbfca4e0.tar.gz
samba-a88ed5d1be987af6fe1353a18298d206fbfca4e0.tar.bz2
samba-a88ed5d1be987af6fe1353a18298d206fbfca4e0.zip
Check 'hosts equiv' and 'use rhosts' compatability with 'hostname
lookup' value. (This used to be commit 5f5b4b48ca78b3981001965058a2b4e796ba815c)
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/testparm.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/source3/utils/testparm.c b/source3/utils/testparm.c
index 1caf792543..f4d072ed77 100644
--- a/source3/utils/testparm.c
+++ b/source3/utils/testparm.c
@@ -85,6 +85,22 @@ to a valid password server.\n", sec_setting );
ret = 1;
}
+
+ /*
+ * Check 'hosts equiv' and 'use rhosts' compatability with 'hostname lookup' value.
+ */
+
+ if(*lp_hosts_equiv() && !lp_hostname_lookups()) {
+ printf("ERROR: The setting 'hosts equiv = %s' requires that 'hostname lookups = yes'.\n", lp_hosts_equiv());
+ ret = 1;
+ }
+
+ if(lp_use_rhosts() && !lp_hostname_lookups()) {
+ printf("ERROR: The setting 'use rhosts = yes' requires the 'hostname lookups = yes'.\n");
+ ret = 1;
+ }
+
+
/*
* Password chat sanity checks.
*/