postinst is in libpam-ldap 184-8.5ubuntu2.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | #!/bin/sh
set -e
account=1170fa7f8d78efefb69d4f744d88b8a1
auth=a1a966fd7f4693917727834d3569e8dd
password=94888efb331555074e6ce9b13dbdaf77
session=dd5ab3071f6a3d94388a12a93d04cd8c
force=
if dpkg --compare-versions "$2" lt-nl 184-4ubuntu2; then
# If we're upgrading from an older libpam-ldap,
# and the pam configuration precisely matches that
# which was written by auth-client-config (via ldap-auth-config), we
# can safely force the pam-auth-update.
force=--force
for type in auth account session password
do
sum="$(md5sum /etc/pam.d/common-$type 2>/dev/null | awk '{ print $1 }')"
[ "$sum" = "$(eval echo \$$type)" ] || force=
done
fi
pam-auth-update --package $force
|