RSS feed

pam_authz_search parameters

[Date Prev][Date Next] [Thread Prev][Thread Next]

pam_authz_search parameters



I have SSHD is running in virtual box centos 7.  We are using $rhost parameter in pam_authz_search, to get the ipaddress of the remote host. When I am connected to LAN in my desk I get the ipaddress (ip= But when connecting my laptop at different location and I get hostname in $rhost( because of which I am not able to do IP validation. Could provide your inputs suggestions or directions to resolve this issue.


Following is the configuration in nslcd.conf


uri  ldap://


filter passwd (uid=*)


pam_authz_search (&(uid=$username)(ip=$rhost)(tty=$tty))




---------------------------------------- The information contained in this e-mail message is intended only for the personal and confidential use of the recipient(s) named above. This message may be an attorney-client communication and/or work product and as such is privileged and confidential. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message.

To unsubscribe send an email to or see