pre-fill-username
To enable extracting a username from a client certificate for use in authentication and authorization, use the pre-fill-username command in tunnel-group webvpn-attributes mode. To remove the attribute from the configuration, use the no form of this command.
pre-fill-username { client | clientless }
no pre-fill-username
Syntax Description
client ssl-client |
Enables this feature for AnyConnect VPN client connections. Use the client keyword in 9.8(1)+. |
clientless |
Enables this feature for clientless connections. |
Command Default
No default value or behavior.
Command Modes
The following table shows the modes in which you can enter the command:
Command Mode |
Firewall Mode |
Security Context |
|||
---|---|---|---|---|---|
Routed |
Transparent |
Single |
Multiple |
||
Context |
System |
||||
Tunnel-group webvpn-attributes configuration |
|
— |
|
— |
— |
Command History
Release |
Modification |
---|---|
8.0(4) |
This command was added. |
9.8(1) |
The ssl-client keyword was changed to client . |
Usage Guidelines
The pre-fill-username command enables the use of a username extracted from the certificate field specified in the username-from-certificate command as the username for username/password authentication and authorization. To use this pre-fill username from certificate feature, you must configure both commands.
To enable this feature, you must also configure the username-from-certificate command in tunnel-group general-attributes mode.
Examples
The following example, entered in global configuration mode, creates an IPsec remote access tunnel group named remotegrp and specifies that the name for an authentication or authorization query for an SSL VPN client must be derived from a digital certificate:
ciscoasa(config)# tunnel-group remotegrp type ipsec_ra
ciscoasa(config)# tunnel-group remotegrp webvpn-attributes
ciscoasa(config-tunnel-webvpn)# pre-fill-username client
ciscoasa(config-tunnel-webvpn)#