Step 1: Configure Kerberos files - Step 1: Configure Kerberos files - Alfresco - Identity Service - Alfresco/Identity-Service/1.7/Identity-Service/Identity-Service/Tutorials/Single-Sign-On-SSO-Guide/Kerberos/Step-1-Configure-Kerberos-files - 1.7

Identity Service

Platform
Alfresco
Product
Identity Service
Release
1.7
ft:lastPublication
2026-05-06T19:15:55.570000
ft:locale
en-US
ArchiveStatus
Archived

A user account and keytab file is required for Alfresco Content Services (ACS), Alfresco Share and Alfresco Process Services (APS) and a krb5.conf file that details the location of the authentication server needs to be located on each server. The files can be configured against a load balancer.

The following table explains the values used to generate the keytab and krb5.conf files:

Variable Description
host A server host or load balancer name without a domain suffix, for example alfresco
domain The Domain Name System (DNS) domain, for example example.com
domainnetbios The Windows domain NetBIOS name, for example example
REALM The DNS domain in uppercase, for example EXAMPLE.COM
  1. Create a user account in Active Directory for the SSO authentication filters:

    • Enter a full name such as HTTP alfresco.
    • Enter a login name such as httpalfresco.
    • Enable the setting Do not require Kerberos pre-authentication.
    • Use the ktpass command to generate a key table for the user account created in the previous step:
    ktpass -princ HTTP/<host>.<domain>@<REALM> -pass <password> -mapuser
    <domainnetbios>\http<host> -crypto all -ptype KRB5_NT_PRINCIPAL -out
    c:\temp\http<host>.keytab -kvno 0
    

    For example:

    ktpass -princ HTTP/alfresco.example.com@EXAMPLE.COM -pass <password> -mapuser
    example\httpalfresco -crypto all -ptype KRB5_NT_PRINCIPAL -out
    c:\temp\httpalfresco.keytab -kvno 0
    
  2. Use the setspn command to create Service Principal Names (SPN) for the user account created in the first step:

    setspn -a HTTP/<host> http<host>
    setspn -a HTTP/<host>.<domain> http<host>
    

    For example:

    setspn -a HTTP/alfresco httpalfresco
    setspn -a HTTP/alfresco.example.com httpalfresco
    
  3. In the Delegation tab of the Properties of the user account created in the first step, tick the Trust this user for delegation to any service (Kerberos only) checkbox.

  4. Copy the key table file created to a protected area on each server such as C:\etc.

    Note

    The servers to copy the key table file to are Alfresco Content Services, Alfresco Share and Alfresco Process Services.

  5. Configure a krb5.conf file that contains details of the authentication server:

    [libdefaults]
    default_realm = <REALM>
    default_tkt_enctypes = rc4-hmac
    default_tgs_enctypes = rc4-hmac
    
    [realms]
    <REALM> = {
            kdc = <host>.<domain>
            admin_server = <host>.<domain>
              }
    
    [domain_realm]
    <host>.<domain> = <REALM>
    .<host>.<domain> = <REALM>
    

    The following is an example krb5.conf file:

    [libdefaults]
    default_realm = EXAMPLE.COM
    default_tkt_enctypes = rc4-hmac
    default_tgs_enctypes = rc4-hmac
    
    [realms]
    EXAMPLE.COM = {
                kdc = ldap.example.com
                admin_server = ldap.example.com
                  }
    
    [domain_realm]
    ldap.example.com = EXAMPLE.COM
    .ldap.example.com = EXAMPLE.COM
    
  6. Copy the krb5.conf file to the servers running Alfresco Content Services, Alfresco Share and Alfresco Process Services. By default it is located in $WINDIR\krb5.conf where $WINDIR is the location of the Windows directory such as C:\Windows\krb5.conf.