Руководство Администратора для Cisco Cisco AnyConnect Secure Mobility Client v4.x

Скачать
Страница из 262
• onsuccess - 在连接成功时执行此操作。 平台特定的行为:
对于 Apple iOS 设备,指定在此连接转换到已连接状态时要打开的 URL,或使用
anyconnect:close 命令关闭 AnyConnect GUI。
对于 Android设备,指定在此连接转换为已连接状态或已处于已连接状态时要打开的URL。
可指定多个 onsuccess 操作。 AnyConnect 始终在 Android 设备上连接成功后关闭 GUI。
• onerror - 连接失败时执行此操作。 平台特定的行为:
对于 Apple iOS 设备,指定在此连接失败时要打开的 URL,或使用 anyconnect:close 命令
关闭 AnyConnect GUI。
对于 Android 设备,指定在此连接失败时要打开的 URL。 可指定多个 onerror 操作。
AnyConnect 始终在 Android 设备上连接失败后关闭 GUI。
• prefill_username - 提供连接 URI 中的用户名并将其预填到连接提示中。
• prefill_password - 提供连接 URI 中的密码并且将其预填到连接提示中。 此字段应仅用于为一次
性密码配置的连接配置文件。
• prefill_secondary_username - 在配置为需要双重身份验证的环境中,此参数提供连接 URI 中的
辅助用户名,并且将其预填到连接提示中。
• prefill_secondary_password - 在配置为需要双重身份验证的环境中,此参数提供连接 URI 中辅
助用户名的密码,并且将其预填到连接提示中。
• prefill_group_list - 选择 Configuration(配置)> Remote Access VPN(远程访问 VPN>
Network (Client) Access(网络 (客户端访问)> AnyConnect Connection ProfilesAnyConnect
连接配置文件)> Advanced(高级)> Group Alias/Group URL(组别名/组 URL> Connection
Aliases
(连接别名)以在 ASDM 中定义连接别名。
示例
• 在组 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
Cisco AnyConnect 安全移动客户端管理员指南,4.0 
227
移动设备上的 AnyConnect
建立 VPN 连接