summaryrefslogtreecommitdiff
path: root/op-mode-definitions/openvpn.xml.in
diff options
context:
space:
mode:
authorKim Hagen <kim@sentrium.io>2021-09-01 14:09:55 -0500
committerKim Hagen <kim@sentrium.io>2021-09-01 14:09:55 -0500
commit02b6370c3cd1b580b0140deed6c250a682c3a4eb (patch)
tree4a8113bcdf19b8edd8c00a44e5913ca77c1d6a07 /op-mode-definitions/openvpn.xml.in
parent6748dbe0100cfedf1b2f00884899e71729bfa9f3 (diff)
downloadvyos-1x-02b6370c3cd1b580b0140deed6c250a682c3a4eb.tar.gz
vyos-1x-02b6370c3cd1b580b0140deed6c250a682c3a4eb.zip
more 2fa changes
Diffstat (limited to 'op-mode-definitions/openvpn.xml.in')
-rw-r--r--op-mode-definitions/openvpn.xml.in28
1 files changed, 28 insertions, 0 deletions
diff --git a/op-mode-definitions/openvpn.xml.in b/op-mode-definitions/openvpn.xml.in
index 781fbdc9d..ee3b073b5 100644
--- a/op-mode-definitions/openvpn.xml.in
+++ b/op-mode-definitions/openvpn.xml.in
@@ -55,6 +55,34 @@
</properties>
<command>${vyos_op_scripts_dir}/show_interfaces.py --intf=$4</command>
<children>
+ <tagNode name="user">
+ <properties>
+ <help>Show OpenVPN interface users</help>
+ <completionHelp>
+ <script>sudo ${vyos_completion_dir}/list_openvpn_users.py --interface "$4"</script>
+ </completionHelp>
+ </properties>
+ <children>
+ <leafNode name="2fa secret">
+ <properties>
+ <help>Show 2fa authentication secret</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/show_openvpn_2fa.py --user="$4" --intf="$6" --action=sercret</command>
+ </leafNode>
+ <leafNode name="2fa otpauth uri">
+ <properties>
+ <help>Show 2fa otpauth uri</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/show_openvpn_2fa.py --user="$4" --intf="$6" --action=uri</command>
+ </leafNode>
+ <leafNode name="2fa QR code">
+ <properties>
+ <help>Show 2fa QR code</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/show_openvpn_2fa.py --user="$4" --intf="$6" --action=qrcode</command>
+ </leafNode>
+ </children>
+ </tagNode>
<leafNode name="brief">
<properties>
<help>Show summary of specified OpenVPN interface information</help>