From 54321ff706811e7f097cdd052a5d4174ef4bccc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Mon, 18 Mar 2024 17:02:10 +0000 Subject: [PATCH] enh: add a few autocompletes --- bin/plugin/group-owner/groupModify.json | 14 +++++++------- bin/plugin/restricted/accountModify.json | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/bin/plugin/group-owner/groupModify.json b/bin/plugin/group-owner/groupModify.json index 7ab2e999f..c66cd4da0 100644 --- a/bin/plugin/group-owner/groupModify.json +++ b/bin/plugin/group-owner/groupModify.json @@ -1,12 +1,12 @@ { "interactive": [ - "groupModify" , {"ac" : ["--group"]}, - "groupModify +--group" , {"ac" : [""]}, - "groupModify +--group +\\S+" , {"ac" : ["--mfa-required","--guest-ttl-limit"]}, - "groupModify +--group +\\S+ +--mfa-required" , {"ac" : ["password","totp","any","none"]}, - "groupModify +--group +\\S+ +--mfa-required +\\S+" , {"pr" : [""]}, - "groupModify +--group +\\S+ +--guest-ttl-limit" , {"pr" : [""]}, - "groupModify +--group +\\S+ +--guest-ttl-limit +\\S+", {"pr" : [""]} + "groupModify" , {"ac" : ["--group"]}, + "groupModify +--group" , {"ac" : [""]}, + "groupModify +--group +.+--mfa-required" , {"ac" : ["password","totp","any","none"]}, + "groupModify +--group +.+--guest-ttl-limit" , {"pr" : [""]}, + "groupModify +--group +.+--idle-lock-timeout" , {"pr" : ["","0 (disable)","-1 (use bastion default)"]}, + "groupModify +--group +.+--idle-kill-timeout" , {"pr" : ["","0 (disable)","-1 (use bastion default)"]}, + "groupModify +--group +.+" , {"ac" : ["--mfa-required","--guest-ttl-limit","--idle-lock-timeout","--idle-kill-timeout",""]} ], "master_only": 1 } diff --git a/bin/plugin/restricted/accountModify.json b/bin/plugin/restricted/accountModify.json index d4becc03c..34527a917 100644 --- a/bin/plugin/restricted/accountModify.json +++ b/bin/plugin/restricted/accountModify.json @@ -3,11 +3,11 @@ "interactive": [ "accountModify" , {"ac": ["--account"]}, "accountModify +--account" , {"ac": [""]}, - "accountModify +--account +\\S+" , {"ac": ["--mfa-password-required","--mfa-totp-required","--pam-auth-bypass","--always-active","--egress-strict-host-key-checking","--personal-egress-mfa-required","--idle-ignore","--pubkey-auth-optional"]}, "accountModify +--account +\\S+ +.*(--mfa-password-required|--mfa-totp-required)" , {"ac": ["yes","no","bypass"]}, "accountModify +--account +\\S+ +.*(--pam-auth-bypass|--mfa-auth-bypass|--always-active|idle-ignore|--pubkey-auth-optional)", {"ac": ["yes","no"]}, "accountModify +--account +\\S+ +.*(--egress-strict-host-key-checking)" , {"ac": ["yes","accept-new","no","ask","default","bypass"]}, "accountModify +--account +\\S+ +.*(--personal-egress-mfa-required)" , {"ac": ["password","totp","any","none"]}, - "accountModify +--account +\\S+ +.*(yes|accept-new|no|bypass|ask|default|totp|password|none)" , {"ac": ["--mfa-password-required","--mfa-totp-required","--pam-auth-bypass","--always-active","--egress-strict-host-key-checking","--personal-egress-mfa-required","--idle-ignore","--pubkey-auth-optional",""]} + "accountModify +--account +\\S+ +.*(--max-inactive-days)" , {"pr": [""]}, + "accountModify +--account +\\S+ +.*" , {"ac": ["","--mfa-password-required","--mfa-totp-required","--pam-auth-bypass","--always-active","--egress-strict-host-key-checking","--personal-egress-mfa-required","--idle-ignore","--pubkey-auth-optional","--max-inactive-days","--osh-only"]} ] }