Sophie

Sophie

distrib > CentOS > 5 > x86_64 > by-pkgid > 283af44ef16a5f1d710cf90bb48ad233 > scriptlet

nss_ldap-253-51.el5_9.1.x86_64.rpm

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