summaryrefslogtreecommitdiff
path: root/src/pam-configs/radius
diff options
context:
space:
mode:
authorzsdc <taras@vyos.io>2023-09-26 11:27:07 +0300
committerzsdc <taras@vyos.io>2023-11-20 19:07:11 +0200
commitd7457268fcaa5626e512eb00a9aab36f4a617f28 (patch)
treeb44029f81f1a47a86b475a00d0b22587addfd2db /src/pam-configs/radius
parent471e26233e2e1c7b4ad20aff673a18ac5d745296 (diff)
downloadvyos-1x-d7457268fcaa5626e512eb00a9aab36f4a617f28.tar.gz
vyos-1x-d7457268fcaa5626e512eb00a9aab36f4a617f28.zip
PAM: T5577: Optimized RADIUS PAM config
- Added system `radius` group - Added `mandatory` and `optional` modes for RADIUS - Improved PAM config for RADIUS New modes: - `mandatory` - if RADIUS answered with `Access-Reject`, authentication must be stopped and access denied immediately. - `optional` (default) - if RADIUS answers with `Access-Reject`, authentication continues using the next module. In `mandatory` mode authentication will be stopped only if RADIUS clearly answered that access should be denied (no user in RADIUS database, wrong password, etc.). If RADIUS is not available or other errors happen, it will be skipped and authentication will continue with the next module, like in `optional` mode.
Diffstat (limited to 'src/pam-configs/radius')
-rw-r--r--src/pam-configs/radius20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/pam-configs/radius b/src/pam-configs/radius
deleted file mode 100644
index 0e2c71e38..000000000
--- a/src/pam-configs/radius
+++ /dev/null
@@ -1,20 +0,0 @@
-Name: RADIUS authentication
-Default: yes
-Priority: 257
-Auth-Type: Primary
-Auth:
- [default=ignore success=1] pam_succeed_if.so uid eq 1001 quiet
- [default=ignore success=ignore] pam_succeed_if.so uid eq 1002 quiet
- [authinfo_unavail=ignore success=end default=ignore] pam_radius_auth.so
-
-Account-Type: Primary
-Account:
- [default=ignore success=1] pam_succeed_if.so uid eq 1001 quiet
- [default=ignore success=ignore] pam_succeed_if.so uid eq 1002 quiet
- [authinfo_unavail=ignore success=end perm_denied=bad default=ignore] pam_radius_auth.so
-
-Session-Type: Additional
-Session:
- [default=ignore success=1] pam_succeed_if.so uid eq 1001 quiet
- [default=ignore success=ignore] pam_succeed_if.so uid eq 1002 quiet
- [authinfo_unavail=ignore success=ok default=ignore] pam_radius_auth.so