summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim <khagen@jessiedevel>2018-05-24 15:12:40 +0200
committerKim <khagen@jessiedevel>2018-05-24 15:12:40 +0200
commit532d65e340b69ef0a4d5e5e600b6a06309973295 (patch)
tree6b3115467846d1d8c7cda140507db502f7c06a23
parentfa6025bc67502bfb50342b48a9e3b58d91d4234e (diff)
downloadlibpam-radius-auth-532d65e340b69ef0a4d5e5e600b6a06309973295.tar.gz
libpam-radius-auth-532d65e340b69ef0a4d5e5e600b6a06309973295.zip
Revert "Arrange pam config from vyatta-cfg-system"
This reverts commit fa6025bc67502bfb50342b48a9e3b58d91d4234e.
-rw-r--r--debian/libpam-radius-auth.install1
-rw-r--r--debian/libpam-radius-auth.postinst9
-rw-r--r--debian/libpam-radius-auth.prerm9
-rw-r--r--debian/radius17
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