POSTIN
/bin/sh
/sbin/ldconfig
# Fix a logic mismatch between what the version of authconfig in RHL 7.2 would
# generate and this version of pam_ldap.
if grep -q '^account required /lib/security/pam_ldap.so$' /etc/pam.d/system-auth ; then
newfile=`mktemp /etc/pam.d/system-auth-XXXXXX`
if [ ! -z "$newfile" ] ; then
cat /etc/pam.d/system-auth > $newfile
sed 's,account required /lib/security/pam_ldap.so,account [default=bad success=ok user_unknown=ignore service_err=ignore system_err=ignore] /lib/security/pam_ldap.so,g' $newfile > /etc/pam.d/system-auth
rm -f $newfile
fi
fi