AnsweredAssumed Answered

Kerberos configuration problem (Labs 3Stable)

Question asked by bramthielemans on Sep 7, 2009
Latest reply on Sep 23, 2009 by bramthielemans

We're having some problems setting up Kerberos for a SSO configuration.

We've followed the procedures on and to set up JAAS + Kerberos, as a preparation before the actual SSO configuration, but we're running into some problems.

I'll describe the steps we've taken so far:

1. Enabled and modified the jaas-authentication-context.xml file
<?xml version='1.0' encoding='UTF-8'?>

    <bean id="authenticationComponent"
        <property name="realm">
        <property name="jaasConfigEntryName">
    <bean name="authenticationDao" class="" >
        <property name="allowDeleteUser">


2. Edited the java.login.config file in C:\Program Files\Java\jdk1.6.0_14\jre\lib\security
Alfresco { sufficient;
}; { sufficient;

other { sufficient;

AlfrescoHTTP { required
(I'm not 100% sure if this is the value we specified for the principal, I don't have access to the file atm)

3. Added the following line to the file in the same folder as java.login.config file.

4. Put the krb5.ini file under C:\Windows

5. Put the alfrescohttp.keytab file under C:\etc\alfrescohttp.keytab

When we start alfresco, we cannot login with any user credentials that should be valid for the Active Directory. We've then tried to set up the Kerberos authentication filter for the web client in Alfresco web.xml file.
    <filter-name>Authentication Filter</filter-name>

But then we get an error message when starting Alfresco:
javax.servlet.ServletException: Failed to get local server name
         at org.alfresco.repo.webdav.auth.BaseSSOAuthenticationFilter.init(

After which Alfresco shuts down.

I've found a JIRA entry about the same error: But I don't think this is the problem since:
- The affects version specified is 3.1 SP1, we're running Labs 3Stable (which is equivalent to 3.0.1, I think)
- The BaseSSOAuthenticationFilter code snippet in the JIRA entry doesn't match that of the 3Stable one.

Some extra info:
We're running Alfresco Labs 3Stable on a Windows 2003 server.
We've setup LDAP user synchronization.
We've previously successfully (kind of) used NTLM authentication, but came to the conclusion that NTLM + SSO would not work in our situation.

If anyone has any ideas/suggestions/remarks/…, they are more than welcome :)