Cisco Cisco AnyConnect Secure Mobility Client v4.x Administrator's Guide

Page of 264
示例
• 在组 URI 中提供连接名称和主机名或组 URL:
anyconnect://connect/?name=Example
anyconnect:connect?host=hr.example.com
anyconnect:connect?name=Example&host=hr.example.com
anyconnect://connect/?name=Example&host=hr.example.com/group-url
&prefill_username=user1&prefill_password=password1
• 提供针对成功或失败的操作
使用 onsuccess 或 onerror 参数可根据连接操作的结果开始打开指定的 URL:
anyconnect://connect?host=vpn.company.com
&onsuccess=http%3A%2F%2Fwww.cisco.com
anyconnect://connect?host=vpn.company.com
&onerror=http%3A%2F%2Fwww.cisco.com%2Ffailure.html
&onsuccess=http%3A%2F%2Fwww.cisco.com
在 Android 上可以指定多个 onsuccess 操作:
anyconnect://connect?host=vpn.company.com
&onerror=http%3A%2F%2Fwww.cisco.com%2Ffailure.html
&onsuccess=http%3A%2F%2Fwww.cisco.com
&onsuccess=tel:9781111111
在 Apple iOS 设备上,anyconnect://close 命令可在 onsuccess 或 onerror 参数中用来关闭 AnyConnect
GUI:
anyconnect://connect?host=vpn.company.com
&onsuccess=anyconnect%3A%2F%2Fclose
• 提供连接信息并在 URI 中预填用户名和密码:
anyconnect://connect/?name=Example&host=hr.example.com
&prefill_username=user1&prefill_password=password1
anyconnect:connect?name=Example&host=hr.example.com/group-url
&prefill_username=user1&prefill_password=password1
• 为双重身份验证提供连接信息并预填用户名和密码:
anyconnect://connect/?name=Example&host=hr.example.com
&prefill_username=user1&prefill_password=password1
&prefill_secondary_username=user2&prefill_secondary_password=password2
• 提供连接信息、预填用户名和密码,并指定连接配置文件别名:
anyconnect://connect/?name=Example&host=hr.example.com
&prefill_username=user1&prefill_password=password1
&prefill_group_list=10.%20Single%20Authentication
断开 VPN 连接
使用此 AnyConnect URI 处理程序可将用户从 VPN 断开。
anyconnect:[//]disconnect[/]&onsuccess=URL
参数
onsuccess 参数仅适用于 Android 设备。 指定 URL 在此连接断开或已处于断开状态时打开。
示例
anyconnect:disconnect
Cisco AnyConnect 安全移动客户端管理员指南,4.1 
229
移动设备上的 AnyConnect
断开 VPN 连接