diff options
author | Christian Breunig <christian@breunig.cc> | 2024-01-22 21:39:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-22 21:39:52 +0100 |
commit | 7d6002b9f8e422c8070413341bbc88db6a4fd8af (patch) | |
tree | 8a20f0ee157dbde0985ca24d4eb74f92e139ba41 /op-mode-definitions/show-system.xml.in | |
parent | b61a06aa54657b9b128b0c6350b3cb861339ae9c (diff) | |
parent | 064e0b81f0ac0ca19a108d0e05c1756b9a220cc2 (diff) | |
download | vyos-1x-7d6002b9f8e422c8070413341bbc88db6a4fd8af.tar.gz vyos-1x-7d6002b9f8e422c8070413341bbc88db6a4fd8af.zip |
Merge pull request #2878 from c-po/sagitta-only-fixes
op-mode: T5975: add missing 2FA OTP commands and other op-mode permission fixes
Diffstat (limited to 'op-mode-definitions/show-system.xml.in')
-rw-r--r-- | op-mode-definitions/show-system.xml.in | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/op-mode-definitions/show-system.xml.in b/op-mode-definitions/show-system.xml.in index 85bfdcdba..027eec6de 100644 --- a/op-mode-definitions/show-system.xml.in +++ b/op-mode-definitions/show-system.xml.in @@ -102,6 +102,55 @@ <help>Show user accounts</help> </properties> <children> + <node name="authentication"> + <properties> + <help>Show user account authentication information</help> + </properties> + <children> + <tagNode name="user"> + <properties> + <help>Show configured user</help> + <completionHelp> + <path>system login user</path> + </completionHelp> + </properties> + <children> + <node name="otp"> + <properties> + <help>Show OTP key information</help> + </properties> + <command>${vyos_op_scripts_dir}/otp.py show_login --username="$6" --info="full"</command> + <children> + <leafNode name="full"> + <properties> + <help>Show full settings, including QR code and commands for VyOS</help> + </properties> + <command>${vyos_op_scripts_dir}/otp.py show_login --username="$6" --info="full"</command> + </leafNode> + <leafNode name="key-b32"> + <properties> + <help>Show OTP authentication secret in Base32 (used in mobile apps)</help> + </properties> + <command>${vyos_op_scripts_dir}/otp.py show_login --username="$6" --info="key-b32"</command> + </leafNode> + <leafNode name="qrcode"> + <properties> + <help>Show OTP authentication QR code</help> + </properties> + <command>${vyos_op_scripts_dir}/otp.py show_login --username="$6" --info="qrcode"</command> + </leafNode> + <leafNode name="uri"> + <properties> + <help>Show OTP authentication otpauth URI</help> + </properties> + <command>${vyos_op_scripts_dir}/otp.py show_login --username="$6" --info="uri"</command> + </leafNode> + </children> + </node> + </children> + </tagNode> + </children> + </node> <node name="users"> <properties> <help>Show user account information</help> |