fixed filter

This commit is contained in:
William Mantly 2020-07-23 16:38:54 -04:00
parent c9a745abca
commit 823fc2e2b3

View File

@ -94,7 +94,7 @@ PAM_LDAP_filter="pam_filter &(|(memberof=cn=host_access,ou=groups,dc=theta42,dc=
if grep -qiE "^NAME=\"debian" /etc/os-release; then if grep -qiE "^NAME=\"debian" /etc/os-release; then
echo "$PAM_LDAP_filter" >> /etc/pam_ldap.conf echo "$PAM_LDAP_filter" >> /etc/pam_ldap.conf
else fi
echo "$PAM_LDAP_filter" >> /etc/ldap/ldap.conf echo "$PAM_LDAP_filter" >> /etc/ldap/ldap.conf
echo "$PAM_LDAP_filter" >> /etc/ldap.conf echo "$PAM_LDAP_filter" >> /etc/ldap.conf
@ -114,5 +114,3 @@ echo "AuthorizedKeysCommand /usr/local/bin/ldap-ssh-key" >> /etc/ssh/sshd_config
echo "AuthorizedKeysCommandUser nobody" >> /etc/ssh/sshd_config echo "AuthorizedKeysCommandUser nobody" >> /etc/ssh/sshd_config
service ssh restart service ssh restart
exit 0