You are here

Step 2. Configuring Kerberos on Alfresco server

As an Alfresco administrator, you need to configure Kerberos on the Alfresco server that will be running either the repository tier web application (alfresco.war) or the Share web application (share.war).
These instructions use the following naming conventions for the example server,
  • <host> is the server host name (without domain name suffix). For example, server1.
  • <domain> is the DNS domain. For example,
  • <REALM> is t he DNS domain in upper case. For example, ALFRESCO.ORG.

In this example, our Windows domain controller/ Active Directory/ KDC host name is The Kerberos ini file for Linux is /etc/krb5.conf.

  1. Set up the Kerberos ini file to point to the Windows domain controller.

    The default location is %WINDIR%\krb5.ini, where %WINDIR% is the location of your Windows directory, for example, C:\Windows\krb5.ini. If the file does not already exist (for example, if the Kerberos libraries are not installed on the target server), you must copy these over or create them from scratch. See Kerberos Help for more information on the krb5.conf file.

    default_realm = ALFRESCO.ORG
    default_tkt_enctypes = rc4-hmac
    default_tgs_enctypes = rc4-hmac
       kdc =
       admin_server =
    [domain_realm] = ALFRESCO.ORG = ALFRESCO.ORG
    Note: Specify the realm in uppercase.
  2. Set up the Java login configuration file.

    For Tomcat, in the Java security folder (for example, <installLocation>/java/conf/security), create a file named java.login.config with entries as shown in the following example.

    Only include ShareHTTP if the server is to run the Share web application (share.war). The AlfrescoHTTP is always needed.

    Alfresco { sufficient;
    { required
    { required
    }; { sufficient;
    other { sufficient;
  3. To enable the login configuration file, locate and edit the following line in the main Java security configuration file, java\conf\security\

    Note: Make sure that you provide the full file path instead of using variables.
  4. If the Alfresco Content Services server is not part of the Active Directory domain, ensure that its clock is kept in sync with the domain controller's, for example, by configuring the domain controller as an NTP server.
  5. To complete the Kerberos SSO tasks on the Alfresco server, see Configuring Alfresco Share Kerberos SSO.
  6. Use Directory Management in the Admin Console to enable Kerberos authentication and specify the HTTP password.

    Note: Do not change the values of User Config Entry Name and Kerberos Authentication Realm. If you do make a change, the values must match the entries in the Java login configuration file.

Sending feedback to the Alfresco documentation team

You don't appear to have JavaScript enabled in your browser. With JavaScript enabled, you can provide feedback to us using our simple form. Here are some instructions on how to enable JavaScript in your web browser.