PREIN
/bin/sh
# If we didn't already have a config file for this package, but we did have one
# for the old nss_ldap package, copy the configuration to a temporary location.
if ! test -s /etc/pam_ldap.conf ; then
if test -s /etc/ldap.conf ; then
cp -p /etc/ldap.conf /etc/pam_ldap.conf.a134356b-d496-4171-a831-2bba8e89c85d
fi
fi
if ! test -s /etc/pam_ldap.secret ; then
if test -s /etc/ldap.secret ; then
cp -p /etc/ldap.secret /etc/pam_ldap.secret.a134356b-d496-4171-a831-2bba8e89c85d
fi
fi
POSTIN
/bin/sh
# If we created a temporary configuration in %pre, replace the one our package
# put down with the old one.
if test -s /etc/pam_ldap.conf.a134356b-d496-4171-a831-2bba8e89c85d ; then
mv /etc/pam_ldap.conf.a134356b-d496-4171-a831-2bba8e89c85d /etc/pam_ldap.conf
fi
if test -s /etc/pam_ldap.secret.a134356b-d496-4171-a831-2bba8e89c85d ; then
mv /etc/pam_ldap.secret.a134356b-d496-4171-a831-2bba8e89c85d /etc/pam_ldap.secret
fi