This article describes the issue of the Invalid username or password specified error message being generated, when trying to logon to the Dynamic VPN page, using local authentication. This article is a part of the Dynamic VPN Resolution Guide: KB17220 - Resolution Guide - SRX - Troubleshoot Pulse VPN connections to SRX [juniper.net] .
NOTE : If you are using RADIUS authentication (where the SRX is sending an authentication request to a RADIUS server), instead refer to KB17421 - Error “Invalid username or password specified” when trying to login and download the Pulse client (using RADIUS Authentication) [juniper.net] . This error can occur under the following conditions:
access
show access
show access profile <profile name>
An example access profile with an IP pool is as follows: root@srx# show security dynamic-vpn access-profile local-user-auth-profile ; clients { users { remote-protected-resources { 192.198.3.0/24; } remote-exceptions { 0.0.0.0/0; } ipsec-vpn dynvpn; user { user1; } } } root@srx: show access profile local- user-auth-profile { client user1 { firewall-user { password "$ABC123"; ## SECRET-DATA } } client user2 { firewall-user { password "$ABC123": ## SECRET-DATA } } address-assignment { pool dyn-vpn-address-pool; } } address-assignment { pool dyn-vpn-address-pool { family inet { network 192.168.1.0/24; } } } firewall-authentication { web-authentication { default-profile local-user-auth-profile ; } } When users authenticate from the page https:// <SRX-IP> /dynamic-vpn/, the system will check what profile should be used based on what is listed under security -> dynamic-vpn -> access-profile . Make sure the profile listed here is the profile you intended to use.
An example access profile with an IP pool is as follows:
root@srx# show security dynamic-vpn access-profile local-user-auth-profile ; clients { users { remote-protected-resources { 192.198.3.0/24; } remote-exceptions { 0.0.0.0/0; } ipsec-vpn dynvpn; user { user1; } } } root@srx: show access profile local- user-auth-profile { client user1 { firewall-user { password "$ABC123"; ## SECRET-DATA } } client user2 { firewall-user { password "$ABC123": ## SECRET-DATA } } address-assignment { pool dyn-vpn-address-pool; } } address-assignment { pool dyn-vpn-address-pool { family inet { network 192.168.1.0/24; } } } firewall-authentication { web-authentication { default-profile local-user-auth-profile ; } }
security -> dynamic-vpn -> access-profile
show access profile <profile-name> authentication-order
set access profile <profile-name> client <client-name> password <password> commit
set system processes general-authentication-service traceoptions flag all run clear log authd commit Have the user attempt to connect and login again and wait for the login to fail. Then check the logs once again using the operation mode command below: show log authd | no-more NOTE: After capturing the logs, make sure to deactivate traceoptions to prevent trace files from taking up storage space with " deactivate system processes general-authentication-service traceoptions ". Review the output of the authd file. Look for the username that is unable to connect. Below are samples of the debug output that you can compare yours to. There are 3 lines for local authentication to primarily pay attention to which indicate where the error is occurring (highlighted below). DEBUG OUTPUT EXAMPLE OF A BAD PASSWORD: May 23 01:35:26 ################################################################### May 23 01:35:26 ########################### AUTH REQ RCVD ######################### May 23 01:35:26 ################################################################### May 23 01:35:26 Auth-FSM: Process Auth-Request for session-id:9248704806234225010 May 23 01:35:26 Framework: Starting authentication May 23 01:35:26 authd_advance_module_for_aaa_request_msg: result:0 May 23 01:35:26 Authd module start May 23 01:35:26 Local : authd_local_start_auth: got params profile=dynamic-vpn-users, username=MyUser May 23 01:35:26 Local : start authd_local_lookup May 23 01:35:26 Local : profile user-auth-profile found May 23 01:35:26 Local : client MyUser found May 23 01:35:26 Local : password mismatch for client MyUser May 23 01:35:26 authd_auth_module_start: Error in calling the radius start_auth May 23 01:35:26 AUTHEN - module(password) return: FAILURE May 23 01:35:26 Framework: auth result is 4. Performing post-auth operations May 23 01:35:26 Framework: result is 4. May 23 01:35:26 authd_auth_send_answer: conn is 101a780 result is 4, cookie=6 sub-id=9248704806234225010 rply_len=28 num_tlv_blocks=0 May 23 01:35:26 authd_auth_aaa_msg_destroyauth_aaa_msg: 0xe0006c May 23 01:35:26 authd_write_conn: response is 0x101a7dc, total len is 28 and sent is 0 May 23 01:35:26 authd_write_conn: response is 0x101a7dc, wrote 28 bytes DEBUG OUTPUT EXAMPLE OF a Username not matched (Again note case sensitivity): May 23 02:17:32 ################################################################### May 23 02:17:32 ########################### AUTH REQ RCVD ######################### May 23 02:17:32 ################################################################### May 23 02:17:32 Auth-FSM: Process Auth-Request for session-id:9248704814823564895 May 23 02:17:32 Framework: Starting authentication May 23 02:17:32 authd_advance_module_for_aaa_request_msg: result:0 May 23 02:17:32 Authd module start May 23 02:17:32 Local : authd_local_start_auth: got params profile=dynamic-vpn-users, username=MYUSER May 23 02:17:32 Local : start authd_local_lookup May 23 02:17:32 Local : profile user-auth-profile found May 23 02:17:32 Local : client MYUSER NOT found << Note that the Username is case sensitive May 23 02:17:32 authd_auth_module_start: Error in calling the radius start_auth May 23 02:17:32 AUTHEN - module(password) return: FAILURE May 23 02:17:32 Framework: auth result is 4. Performing post-auth operations May 23 02:17:32 Framework: result is 4. May 23 02:17:32 authd_auth_send_answer: conn is 101a780 result is 4, cookie=8 sub-id=9248704814823564895 rply_len=28 num_tlv_blocks=0 May 23 02:17:32 authd_auth_aaa_msg_destroyauth_aaa_msg: 0xe0006c May 23 02:17:32 authd_write_conn: response is 0x101a7dc, total len is 28 and sent is 0 May 23 02:17:32 authd_write_conn: response is 0x101a7dc, wrote 28 bytes DEBUG OUTPUT EXAMPLE OF A SUCCESSFUL AUTHENTICATION, i.e. username and password matched: May 23 00:46:41 ################################################################### May 23 00:46:41 ########################### AUTH REQ RCVD ######################### May 23 00:46:41 ################################################################### May 23 00:46:41 Auth-FSM: Process Auth-Request for session-id:9248704797644257541 May 23 00:46:41 Framework: Starting authentication May 23 00:46:41 authd_advance_module_for_aaa_request_msg: result:0 May 23 00:46:41 Authd module start May 23 00:46:41 Local : authd_local_start_auth: got params profile=dynamic-vpn-users, username=MyUser May 23 00:46:41 Local : start authd_local_lookup May 23 00:46:41 Local : profile user-auth-profile found May 23 00:46:41 Local : client MyUser found May 23 00:46:41 Local : passwords matched May 23 00:46:41 authd_auth_module_start: Error in calling the radius start_auth May 23 00:46:41 AUTHEN - module(password) return: SUCCESS May 23 00:46:41 Framework: auth result is 1. Performing post-auth operations May 23 00:46:41 (authd_update_session_options) num_tlv_blocks:0 May 23 00:46:41 Framework: Initialising response list May 23 00:46:41 Framework: Updating session timeout (9999999) in response for user 'MyUser' from profile 'dynamic-vpn-users' May 23 00:46:41 Framework: Updating idle timeout (10) in response for user 'MyUser' from profile 'dynamic-vpn-users' May 23 00:46:41 Framework: length of first client-group if already present = 0 May 23 00:46:41 Framework: result is 1. May 23 00:46:41 authd_auth_send_answer: conn is 101a780 result is 1, cookie=4 sub-id=9248704797644257541 rply_len=2944 num_tlv_blocks=2 May 23 00:46:41 authd_auth_send_answer,tlv_begin:101d120 tot_tlv_buf_len:16 num_tlv_blocks:2 May 23 00:46:41 sess_timeout: 9999999 May 23 00:46:41 idle_timeout: 10 May 23 00:46:41 authd_auth_send_answer, rply_len:2960 May 23 00:46:41 authd_auth_send_answer: conn is 101a780 response is 1021000 result is 1, cookie = 4 rply_len:2960 num_tlv_block = 2 May 23 00:46:41 authd_auth_aaa_msg_destroyauth_aaa_msg: 0xe0006c May 23 00:46:41 authd_write_conn: response is 0x101a7dc, total len is 2960 and sent is 0 May 23 00:46:41 authd_write_conn: response is 0x101a7dc, wrote 2960 bytes
set system processes general-authentication-service traceoptions flag all run clear log authd
commit
show log authd | no-more
deactivate system processes general-authentication-service traceoptions
May 23 01:35:26 ################################################################### May 23 01:35:26 ########################### AUTH REQ RCVD ######################### May 23 01:35:26 ################################################################### May 23 01:35:26 Auth-FSM: Process Auth-Request for session-id:9248704806234225010 May 23 01:35:26 Framework: Starting authentication May 23 01:35:26 authd_advance_module_for_aaa_request_msg: result:0 May 23 01:35:26 Authd module start May 23 01:35:26 Local : authd_local_start_auth: got params profile=dynamic-vpn-users, username=MyUser May 23 01:35:26 Local : start authd_local_lookup May 23 01:35:26 Local : profile user-auth-profile found May 23 01:35:26 Local : client MyUser found May 23 01:35:26 Local : password mismatch for client MyUser May 23 01:35:26 authd_auth_module_start: Error in calling the radius start_auth May 23 01:35:26 AUTHEN - module(password) return: FAILURE May 23 01:35:26 Framework: auth result is 4. Performing post-auth operations May 23 01:35:26 Framework: result is 4. May 23 01:35:26 authd_auth_send_answer: conn is 101a780 result is 4, cookie=6 sub-id=9248704806234225010 rply_len=28 num_tlv_blocks=0 May 23 01:35:26 authd_auth_aaa_msg_destroyauth_aaa_msg: 0xe0006c May 23 01:35:26 authd_write_conn: response is 0x101a7dc, total len is 28 and sent is 0 May 23 01:35:26 authd_write_conn: response is 0x101a7dc, wrote 28 bytes
May 23 02:17:32 ################################################################### May 23 02:17:32 ########################### AUTH REQ RCVD ######################### May 23 02:17:32 ################################################################### May 23 02:17:32 Auth-FSM: Process Auth-Request for session-id:9248704814823564895 May 23 02:17:32 Framework: Starting authentication May 23 02:17:32 authd_advance_module_for_aaa_request_msg: result:0 May 23 02:17:32 Authd module start May 23 02:17:32 Local : authd_local_start_auth: got params profile=dynamic-vpn-users, username=MYUSER May 23 02:17:32 Local : start authd_local_lookup May 23 02:17:32 Local : profile user-auth-profile found May 23 02:17:32 Local : client MYUSER NOT found << Note that the Username is case sensitive May 23 02:17:32 authd_auth_module_start: Error in calling the radius start_auth May 23 02:17:32 AUTHEN - module(password) return: FAILURE May 23 02:17:32 Framework: auth result is 4. Performing post-auth operations May 23 02:17:32 Framework: result is 4. May 23 02:17:32 authd_auth_send_answer: conn is 101a780 result is 4, cookie=8 sub-id=9248704814823564895 rply_len=28 num_tlv_blocks=0 May 23 02:17:32 authd_auth_aaa_msg_destroyauth_aaa_msg: 0xe0006c May 23 02:17:32 authd_write_conn: response is 0x101a7dc, total len is 28 and sent is 0 May 23 02:17:32 authd_write_conn: response is 0x101a7dc, wrote 28 bytes
May 23 00:46:41 ################################################################### May 23 00:46:41 ########################### AUTH REQ RCVD ######################### May 23 00:46:41 ################################################################### May 23 00:46:41 Auth-FSM: Process Auth-Request for session-id:9248704797644257541 May 23 00:46:41 Framework: Starting authentication May 23 00:46:41 authd_advance_module_for_aaa_request_msg: result:0 May 23 00:46:41 Authd module start May 23 00:46:41 Local : authd_local_start_auth: got params profile=dynamic-vpn-users, username=MyUser May 23 00:46:41 Local : start authd_local_lookup May 23 00:46:41 Local : profile user-auth-profile found May 23 00:46:41 Local : client MyUser found May 23 00:46:41 Local : passwords matched May 23 00:46:41 authd_auth_module_start: Error in calling the radius start_auth May 23 00:46:41 AUTHEN - module(password) return: SUCCESS May 23 00:46:41 Framework: auth result is 1. Performing post-auth operations May 23 00:46:41 (authd_update_session_options) num_tlv_blocks:0 May 23 00:46:41 Framework: Initialising response list May 23 00:46:41 Framework: Updating session timeout (9999999) in response for user 'MyUser' from profile 'dynamic-vpn-users' May 23 00:46:41 Framework: Updating idle timeout (10) in response for user 'MyUser' from profile 'dynamic-vpn-users' May 23 00:46:41 Framework: length of first client-group if already present = 0 May 23 00:46:41 Framework: result is 1. May 23 00:46:41 authd_auth_send_answer: conn is 101a780 result is 1, cookie=4 sub-id=9248704797644257541 rply_len=2944 num_tlv_blocks=2 May 23 00:46:41 authd_auth_send_answer,tlv_begin:101d120 tot_tlv_buf_len:16 num_tlv_blocks:2 May 23 00:46:41 sess_timeout: 9999999 May 23 00:46:41 idle_timeout: 10 May 23 00:46:41 authd_auth_send_answer, rply_len:2960 May 23 00:46:41 authd_auth_send_answer: conn is 101a780 response is 1021000 result is 1, cookie = 4 rply_len:2960 num_tlv_block = 2 May 23 00:46:41 authd_auth_aaa_msg_destroyauth_aaa_msg: 0xe0006c May 23 00:46:41 authd_write_conn: response is 0x101a7dc, total len is 2960 and sent is 0 May 23 00:46:41 authd_write_conn: response is 0x101a7dc, wrote 2960 bytes
2020-02-27: minor non-technical edits.