Upgrading from Centos6 where we were using ldap.conf
entry "pam_check_host_attr=yes
" previously, with wildcard host
attribute in ldap where the host attribute looked like host=*.group.company.com
providing access to all servers with the domain name group.company.com
regardless of hostname.
Trying to replicate this feature in nss-pam-ldap
in centos7, and after several permutations of the below still not working (based on http://arthurdejong.org/nss-pam-ldapd/nslcd.conf.5 and looking at the code where $domain
is not a valid variable, but $dn
might be):
pam_authz_search (&(objectClass=posixAccount)(uid=$username)(host=\\*.$dn))
Any debug tips or examples if someone has figured this out?
Error during login: LDAP authorisation check failed