1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-10 13:57:47 +03:00

Check 'hosts equiv' and 'use rhosts' compatability with 'hostname

lookup' value.
This commit is contained in:
Andrew Bartlett -
parent 99e8a263ad
commit 5f5b4b48ca

View File

@ -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.
*/