Package: libpam-script Version: 1.1.5-1 Severity: wishlist Tags: patch The attached patch adds support for the pam-auth-update framework to libpam-script. I tried to choose sensible defaults for the various possible ways to integrate pam_script into the PAM stack. In the default configuration it will not do anything because there are no scripts installed with the package. Administrators are always free to modify the PAM configuration directly if they use pam_script in an other way. So the situation with this patch is in no case worse than the current situation where manual configuration is necessary in any case.
Thanks for considering this patch. I'm open vfor discussion if you think the defaults I've choose are wrong. Gaudenz -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (800, 'testing'), (700, 'unstable'), (50, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-2-amd64 (SMP w/2 CPU cores) Locale: LANG=de_CH.UTF-8, LC_CTYPE=de_CH.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages libpam-script depends on: ii libc6 2.13-27 ii libpam-runtime 1.1.3-7 ii libpam0g 1.1.3-7 libpam-script recommends no packages. libpam-script suggests no packages.
diff -Nru libpam-script-1.1.5/debian/control libpam-script-1.1.5/debian/control --- libpam-script-1.1.5/debian/control 2012-02-22 14:54:42.000000000 +0100 +++ libpam-script-1.1.5/debian/control 2012-04-18 13:14:19.000000000 +0200 @@ -8,7 +8,7 @@ Package: libpam-script Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends} +Depends: ${shlibs:Depends}, ${misc:Depends}, libpam-runtime Description: PAM module which allows executing a script This module will allow you to execute scripts during authorization, password changes and sessions. This is very handy if your current diff -Nru libpam-script-1.1.5/debian/install libpam-script-1.1.5/debian/install --- libpam-script-1.1.5/debian/install 1970-01-01 01:00:00.000000000 +0100 +++ libpam-script-1.1.5/debian/install 2012-04-23 22:00:20.000000000 +0200 @@ -0,0 +1 @@ +debian/pam-configs usr/share/ diff -Nru libpam-script-1.1.5/debian/pam-configs/script libpam-script-1.1.5/debian/pam-configs/script --- libpam-script-1.1.5/debian/pam-configs/script 1970-01-01 01:00:00.000000000 +0100 +++ libpam-script-1.1.5/debian/pam-configs/script 2012-04-18 15:38:08.000000000 +0200 @@ -0,0 +1,15 @@ +Name: Support for authentication by external scripts +Default: yes +Priority: 257 +Auth-Type: Primary +Auth: + sufficient pam_script.so +Account-Type: Primary +Account: + sufficient pam_script.so +Password-Type: Primary +Password: + sufficient pam_script.so +Session-Type: Additional +Session: + optional pam_script.so diff -Nru libpam-script-1.1.5/debian/postinst libpam-script-1.1.5/debian/postinst --- libpam-script-1.1.5/debian/postinst 1970-01-01 01:00:00.000000000 +0100 +++ libpam-script-1.1.5/debian/postinst 2012-04-18 15:19:46.000000000 +0200 @@ -0,0 +1,8 @@ +#!/bin/sh +# postinst script for libpam-script +# +# see: dh_installdeb(1) + +set -e + +pam-auth-update --package diff -Nru libpam-script-1.1.5/debian/prerm libpam-script-1.1.5/debian/prerm --- libpam-script-1.1.5/debian/prerm 1970-01-01 01:00:00.000000000 +0100 +++ libpam-script-1.1.5/debian/prerm 2012-04-18 13:12:07.000000000 +0200 @@ -0,0 +1,11 @@ +#!/bin/sh +# prerm script for libpam-script +# +# see: dh_installdeb(1) + +set -e + +if [ "$1" = remove ]; then + pam-auth-update --package --remove script +fi +