diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-02-05 19:33:18 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-02-05 19:35:32 +0100 |
commit | 74329734d3c465675ec3650cb2b8d1cbe8ec0885 (patch) | |
tree | e46390e7af01d83b14f23bce61e79610afa8219a | |
parent | 0d88ad9642ccf0b8780c063a3a77cac74dd0ee0d (diff) | |
download | vyos-1x-74329734d3c465675ec3650cb2b8d1cbe8ec0885.tar.gz vyos-1x-74329734d3c465675ec3650cb2b8d1cbe8ec0885.zip |
radius: T1948: supply PAM configuration template
-rwxr-xr-x | debian/rules | 4 | ||||
-rw-r--r-- | src/pam-configs/radius | 14 |
2 files changed, 18 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules index d529c9b4e..144132389 100755 --- a/debian/rules +++ b/debian/rules @@ -74,6 +74,10 @@ override_dh_auto_install: mkdir -p $(DIR)/etc cp -r src/etc/* $(DIR)/etc + # Install PAM configuration snippets + mkdir -p $(DIR)/usr/share/pam-configs + cp -r src/pam-configs/* $(DIR)/usr/share/pam-configs + # Install systemd service units mkdir -p $(DIR)/lib/systemd/system cp -r src/systemd/* $(DIR)/lib/systemd/system diff --git a/src/pam-configs/radius b/src/pam-configs/radius new file mode 100644 index 000000000..9353de458 --- /dev/null +++ b/src/pam-configs/radius @@ -0,0 +1,14 @@ +Name: RADIUS authentication +Default: no +Priority: 257 +Auth-Type: Primary +Auth: + [authinfo_unavail=ignore success=end auth_err=bad default=ignore] pam_radius_auth.so + +Account-Type: Primary +Account: + [authinfo_unavail=ignore success=end perm_denied=bad default=ignore] pam_radius_auth.so + +Session-Type: Additional +Session: + [authinfo_unavail=ignore success=ok default=ignore] pam_radius_auth.so |