Skip to main content
Version: Axidian Privilege 3.5

Kerberos Authentication

Kerberos is a network authentication protocol that verifies the identity of a user or a host. A user obtains a ticket-granting ticket (TGT) from the Key Distribution Center (KDC), which runs on the domain controller. The user then uses the TGT to request a service ticket and presents that ticket to the service they want to access.

The Kerberos protocol lets Active Directory users sign in to the Axidian Privilege console with a domain account: the user doesn't need to enter a password, because authentication relies on the issued ticket.

Limitations
  • Kerberos authentication supports a single Active Directory domain. If other directories are connected, disable them in the Web Wizard.
  • When Kerberos authentication is configured, only internal users can sign in to PAM with a username and password.
  • The time on the Management Server, the domain controller, and the user's computer must be synchronized. If the time skew exceeds the maximum tolerance configured in the domain (5 minutes by default), the KDC rejects the tickets. For more information, see the Microsoft documentation.

Preparing the infrastructure

Select the scenario that matches your PAM deployment.

If the Management Server runs on Windows, complete the following steps:

  1. Verify the SPN for each address that users use to open the PAM console.
  2. Configure authentication in the Web Wizard.
  3. Configure the browser for Kerberos sign-in.

A Windows-based Management Server is joined to the domain, so no keytab file is required.


Verifying the SPN

A service principal name (SPN) is the unique identifier of a service instance. Kerberos authentication uses SPNs to associate a service instance with a service logon account.

info

Perform these steps on a domain controller or on a domain-joined computer that has the Remote Server Administration Tools (RSAT) or the Active Directory module for PowerShell installed.

For the DNS name of the SPN management server, an SPN is automatically registered for the computer account if the following conditions are met:

  • The Management Server is joined to the domain.
  • In the Windows Authentication settings, the useAppPoolCredentials parameter is set to False, so the service ticket is decrypted with the key of the computer account.

If users open the PAM console through a load balancer address or through a DNS alias that doesn't match the DNS name of the Management Server, register the SPN manually.

Verify that the SPN for each PAM FQDN is registered to exactly one account:

  1. Run PowerShell as an administrator.

  2. Run the following command:

    setspn -Q */<PAM FQDN>

    The output must list a single account. In a basic deployment, this is the computer account of the Management Server, in the format <domain>\<DNS name of the Management Server>$.

    If the SPN isn't found, or if it's registered to more than one account, contact your domain administrator.

Configuring authentication in the Web Wizard

You enable Kerberos authentication in the Web Wizard.

  1. Launch the Web Wizard.

    How to launch the Web Wizard
    1. In the PAM distribution directory, run the following command to start the Web Wizard:

      sudo bash run-wizard.sh
    2. Open the URL that the script displays in the console.

    3. In the Access code field, enter the AuthenticationCode that the script displays in the console.

      For example: vVHyTVRyKX5pxUKM6e1ZgCWEnOdXFdOy.

      Time limit

      The access code is valid for two hours.

    4. Click Sign in.

  2. Select a scenario, such as Changing PAM configuration, and follow the instructions in the Web Wizard.

  3. On the Authentication step, select the Kerberos authentication mechanism.

    Upload the keytab file that you generated. The file must be generated with AES-256 encryption.

  4. Continue to change the configuration by following the instructions in the Web Wizard.

When the Web Wizard finishes, Kerberos authentication is available on the sign-in page of the PAM console.

Configuring the browser

To sign in to the PAM console using the Kerberos protocol, the browser must send the user's domain credentials to the address where the PAM console is opened. To allow this, add the PAM address to the list of addresses allowed for Integrated Windows Authentication. The list is defined by the AuthServerAllowlist browser policy.

The AuthServerAllowlist policy is configured on a domain controller and distributed through Active Directory Group Policy to all domain-joined computers.

Note

Perform these steps on a domain-joined computer that has the Group Policy Management Tools installed or the GroupPolicy PowerShell module available.

  1. Run PowerShell as an administrator.

  2. Create a Group Policy Object (GPO):

    New-GPO -Name "<GPO name>"
  3. Configure the AuthServerAllowlist policy for the target browser.

    Set-GPRegistryValue -Name "<GPO name>" `
    -Key "HKLM\Software\Policies\Google\Chrome" `
    -ValueName AuthServerAllowlist -Type String -Value "<PAM addresses>"

    For the -Value parameter, specify the addresses that users use to open the PAM console. You can define the list of allowed addresses in the following formats:

    • <PAM FQDN> — an individual PAM address, for example, pam.company.local
    • *.<DNS domain> — every PAM address in the domain, for example, *.company.local
    • *.<DNS domain>,<PAM FQDN> — a combined list, for example, *.company.local,pam.company.local

    Specify explicit PAM FQDNs whenever possible. Use the *.<DNS domain> wildcard only when necessary, because it applies the policy to every server in that DNS domain.

  4. Link the GPO to the domain or to the organizational unit (OU) that contains the users' computers:

    New-GPLink -Name "<GPO name>" -Target "<DN of domain or OU>"

    For the -Target parameter, specify the distinguished name (DN) of the domain or OU, for example, DC=company,DC=local or OU=Workstations,DC=company,DC=local.

The policy takes effect at the next Group Policy refresh interval on the user's computer. To apply the policy immediately, close all browser processes on the target computer, and then run gpupdate /force.

How to verify that the policy has been applied
info

Verify the policy on the user's computer.

  1. Open Google Chrome, and then enter chrome://policy in the address bar. The browser policies page opens.
  2. Verify that the AuthServerAllowlist policy is listed under Chrome policies.
  1. (Optional) Run PowerShell as an administrator and purge the cached Kerberos tickets:

    klist purge
  2. (Optional) Request a service ticket for the PAM FQDN:

    klist get HTTP/<PAM FQDN>
    klist

    The output lists the following Kerberos tickets:

    • A ticket-granting ticket (TGT), which is used to request service tickets.
    • A service ticket (also called a TGS ticket), which is used to authenticate to the PAM console.

Sign in to PAM

info

Users from the connected Active Directory domain can sign in only with Kerberos.

Signing in with a username and password is available only for internal PAM users.

  1. Open the PAM user console or administrator console.
  2. Click Sign in with domain account.
  3. (Optional) Provide your second authentication factor.

If the sign-in attempt fails, contact the PAM administrator.