From 823fc2e2b3c8eb740e8a2898acba7f5b61a09842 Mon Sep 17 00:00:00 2001 From: William Mantly Date: Thu, 23 Jul 2020 16:38:54 -0400 Subject: [PATCH] fixed filter --- index.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/index.sh b/index.sh index 694f965..b3af3c1 100755 --- a/index.sh +++ b/index.sh @@ -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 echo "$PAM_LDAP_filter" >> /etc/pam_ldap.conf -else +fi echo "$PAM_LDAP_filter" >> /etc/ldap/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 service ssh restart - -exit 0