Update index.sh

This commit is contained in:
William Mantly 2025-03-03 15:54:50 +00:00
parent 59153cc0d3
commit 00014e2ebd

View File

@ -98,12 +98,15 @@ pam_filter &(|(memberof=cn=host_access,ou=Groups,$ldap_base_dn)(memberof=cn=host
"
if grep -qiE "^NAME=\"debian" /etc/os-release; then
touch /etc/pam_ldap.conf
echo "$PAM_LDAP_filter" >> /etc/pam_ldap.conf
fi
echo "$PAM_LDAP_filter" >> /etc/ldap/ldap.conf
echo "$PAM_LDAP_filter" >> /etc/ldap.conf
if [ -d /etc/ldap/ ]; then
echo "$PAM_LDAP_filter" >> /etc/ldap/ldap.conf
fi
echo "$PAM_LDAP_filter" >> /etc/ldap.conf
## Set up sudo-ldap
export SUDO_FORCE_REMOVE=yes