diff options
-rw-r--r-- | debian/libpam-radius-auth.install | 1 | ||||
-rw-r--r-- | debian/libpam-radius-auth.postinst | 9 | ||||
-rw-r--r-- | debian/libpam-radius-auth.prerm | 9 | ||||
-rw-r--r-- | debian/radius | 17 |
4 files changed, 36 insertions, 0 deletions
diff --git a/debian/libpam-radius-auth.install b/debian/libpam-radius-auth.install index 22b540a..591932c 100644 --- a/debian/libpam-radius-auth.install +++ b/debian/libpam-radius-auth.install @@ -1,2 +1,3 @@ lib index.html usr/share/doc/libpam-radius-auth/html +debian/radius usr/share/pam-configs diff --git a/debian/libpam-radius-auth.postinst b/debian/libpam-radius-auth.postinst new file mode 100644 index 0000000..de079ad --- /dev/null +++ b/debian/libpam-radius-auth.postinst @@ -0,0 +1,9 @@ +#! /bin/sh + +set -e + +# needed for install, upgrade, remove, and purge, including aborts +pam-auth-update --package + +#DEBHELPER# + diff --git a/debian/libpam-radius-auth.prerm b/debian/libpam-radius-auth.prerm new file mode 100644 index 0000000..19f03ae --- /dev/null +++ b/debian/libpam-radius-auth.prerm @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +if [ "$1" = remove ]; then + pam-auth-update --package --remove radius +fi + +#DEBHELPER# diff --git a/debian/radius b/debian/radius new file mode 100644 index 0000000..7e318a2 --- /dev/null +++ b/debian/radius @@ -0,0 +1,17 @@ +Name: RADIUS authentication +Default: yes +Priority: 257 +Auth-Type: Primary +Auth: + [default=1 success=ignore] pam_succeed_if.so uid > 1000 quiet + [authinfo_unavail=ignore success=end default=ignore] pam_radius_auth.so + +Account-Type: Primary +Account: + [default=1 success=ignore] pam_succeed_if.so uid > 1000 quiet + [authinfo_unavail=ignore success=end perm_denied=bad default=ignore] pam_radius_auth.so + +Session-Type: Additional +Session: + [default=1 success=ignore] pam_succeed_if.so uid > 1000 quiet + [authinfo_unavail=ignore success=ok default=ignore] pam_radius_auth.so |