openconnect: support reading password from script

"token_mode" add support for "script", which execute "token_script" to
get the password.  Some token is not supported by OpenConnect natively,
e.g. "MobilePass" or "Softoken II" used in Cisco VPN

Signed-off-by: Gavin Ni <gisngy@gmail.com>
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
This commit is contained in:
Gavin Ni
2017-11-28 15:04:31 +08:00
committed by Yousong Zhou
parent a13715ea39
commit ede858fb5d
3 changed files with 19 additions and 6 deletions
+4
View File
@@ -26,6 +26,10 @@ config interface 'MYVPN'
#option token_mode 'hotp'
#option token_secret '00'
# tokens from script
#option token_mode 'script'
#option token_script '/lib/custom/getocpass.sh'
# Juniper vpn support
#option juniper '1'