End-of-Life (EoL)

Run the Test Authentication Command

  1. On the PAN-OS firewall or Panorama server, 3 You do not need to commit the authentication or server profile configuration prior to testing.
  2. Using a terminal emulation application, such as PuTTY, launch an SSH session to the firewall.
  3. (Firewalls with virtual systems configured) Define the target virtual system that the test command will access.
    This is required on firewalls with multiple virtual systems (vsys) configured, so the test authentication command can locate the user (Global Protect or Captive Portal, for example) in the correct vsys.
    To define the target vsys:
    set system setting target-vsys
    For example, if the user is defined in vsys2, run the following command:
    set system setting target-vsys vsys2
    command is per-login session, so the system clears the option when you log off.
  4. Test an authentication profile by entering the following command:
    test authentication authentication-profile
    For example, to test an authentication profile named my-profile for a user named bsimpson, run the following command:
    test authentication authentication-profile my-profile username bsimpson password
    When entering authentication profile names and server profile names in the test command, the names are case sensitive. Also, if the authentication profile has a username modifier defined, you must enter the modifier with the username. For example, if you add the username modifier %USERINPUT%@%USERDOMAIN% for a user named bsimpson and the domain name is mydomain.com, enter bsimpson@mydomain.com as the username. This will ensure that the correct credentials are sent to the authentication server. In this example, mydomain.com is the domain that you define in the User Domain field in the Authentication profile.
  5. View the output of the test results.
    If the authentication profile is configured correctly, the output displays
    Authentication succeeded
    . If there is a configuration issue, the output displays information to help you troubleshoot the configuration.
    For example use cases on the supported authentication profile types, see Test Authentication Server Connectivity.
    The output results vary based on several factors related to the authentication type that you are testing as well as the type of issue. For example, RADIUS and TACACS+ use different underlying libraries, so the same issue that exists for both of these types will produce different errors. Also, if there is a network problem, such as using an incorrect port or IP address in the authentication server profile, the output error is not specific. This is because the test command cannot perform the initial handshake between the firewall and the authentication server to determine details about the issue.

Recommended For You