I'm trying to limit access to a Samba share to hosts on the .example.com domain. But when I try to connect from a host on that domain I get denied.
[share1] ... valid users = ralph hosts allow = .example.com
check_ntlm_password: authentication for user [ralph] -> [ralph] -> [ralph] succeeded Denied connection from 10.234.56.1 (10.234.56.1)
There is a reverse DNS record in place for that IP address. That leaves me wondering if the Samba server is actually checking the reverse record to see if the host is on that domain.
If I remove the hosts allow statement the share works as expected. I have restarted the nmb service every time I restarted the smb service.
Which component is responsible for performing the PTR record lookup?