summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2023-09-08 21:33:03 +0300
committerGitHub <noreply@github.com>2023-09-08 21:33:03 +0300
commit5e47f1aaea444354da5766c9ac36986eac7fb198 (patch)
treeaeec3fa23c89bdebd9a090c5f65b1d768d226fe5 /src
parentbf287c6ef35fea6d4deb04c88c56a99e9768d36d (diff)
parent7682e148fcf7e54baad71e3126e3b7b6232cd696 (diff)
downloadvyos-1x-5e47f1aaea444354da5766c9ac36986eac7fb198.tar.gz
vyos-1x-5e47f1aaea444354da5766c9ac36986eac7fb198.zip
Merge pull request #2227 from sever-sever/T5554-sag
T5554: Disable sudo for PAM RADIUS
Diffstat (limited to 'src')
-rw-r--r--src/pam-configs/radius3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pam-configs/radius b/src/pam-configs/radius
index 08247f77c..eee9cb93e 100644
--- a/src/pam-configs/radius
+++ b/src/pam-configs/radius
@@ -3,15 +3,18 @@ Default: no
Priority: 257
Auth-Type: Primary
Auth:
+ [default=ignore success=2] pam_succeed_if.so service = sudo
[default=ignore success=ignore] pam_succeed_if.so user ingroup aaa quiet
[authinfo_unavail=ignore success=end default=ignore] pam_radius_auth.so
Account-Type: Primary
Account:
+ [default=ignore success=2] pam_succeed_if.so service = sudo
[default=ignore success=ignore] pam_succeed_if.so user ingroup aaa quiet
[authinfo_unavail=ignore success=end perm_denied=bad default=ignore] pam_radius_auth.so
Session-Type: Additional
Session:
+ [default=ignore success=2] pam_succeed_if.so service = sudo
[default=ignore success=ignore] pam_succeed_if.so user ingroup aaa quiet
[authinfo_unavail=ignore success=ok default=ignore] pam_radius_auth.so