Now the problem arise with JAAS. I use the same server with Active Directory and with this configuration in authentication-services-context.xml where aa.bb.cc.dd is the IP of the server with Active Directory:
<!– The authentication component. –>
<!– Jass authentication - most of the config goes somewhere else –>
<bean id="authenticationComponentImpl"
class="org.alfresco.repo.security.authentication.jaas.JAASAuthenticationComponent">
<property name="realm">
<value>aa.bb.cc.dd</value>
</property>
<property name="jaasConfigEntryName">
<value>Alfresco</value>
</property>
</bean>
<bean id="alfDaoImpl" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
<property name="proxyInterfaces">
<value>org.alfresco.repo.security.authentication.MutableAuthenticationDao</value>
</property>
<property name="transactionManager">
<ref bean="transactionManager" />
</property>
<property name="target">
<bean class="org.alfresco.repo.security.authentication.ntlm.NullMutableAuthenticationDao">
<property name="nodeService">
<ref bean="nodeService" />
</property>
</bean>
</property>
<property name="transactionAttributes">
<props>
<prop key="*">${server.transaction.mode.default}</prop>
</props>
</property>
</bean>
The error I got when started the login proccess is:
13:11:23,051 DEBUG [transaction.interceptor.TransactionInterceptor] Getting transaction for org.alfresco.service.cmr.security.AuthenticationService.authenticate
13:11:23,051 DEBUG [orm.hibernate3.HibernateTransactionManager] Using transaction object [org.springframework.orm.hibernate3.HibernateTransactionManager$HibernateTransactionObject@36d036]
13:11:23,051 DEBUG [orm.hibernate3.HibernateTransactionManager] Creating new transaction with name [org.alfresco.service.cmr.security.AuthenticationService.authenticate]
13:11:23,051 DEBUG [orm.hibernate3.HibernateTransactionManager] Opened new Session [org.hibernate.impl.SessionImpl@9fa2fb] for Hibernate transaction
13:11:23,051 DEBUG [orm.hibernate3.HibernateTransactionManager] Not preparing JDBC Connection of Hibernate Session [org.hibernate.impl.SessionImpl@9fa2fb]
13:11:23,052 DEBUG [orm.hibernate3.HibernateTransactionManager] Exposing Hibernate transaction as JDBC transaction [org.apache.commons.dbcp.PoolableConnection@1e03a61]
13:11:23,052 DEBUG [transaction.support.TransactionSynchronizationManager] Bound value [org.springframework.jdbc.datasource.ConnectionHolder@8523a0] for key [org.apache.commons.dbcp.BasicDataSource@2e6c66] to thread [http-8081-Processor24]
13:11:23,052 DEBUG [transaction.support.TransactionSynchronizationManager] Bound value [org.springframework.orm.hibernate3.SessionHolder@e5f01b] for key [org.hibernate.impl.SessionFactoryImpl@17e319a] to thread [http-8081-Processor24]
13:11:23,052 DEBUG [transaction.support.TransactionSynchronizationManager] Initializing transaction synchronization
13:11:23,053 DEBUG [context.support.XmlWebApplicationContext] Publishing event in context [Root WebApplicationContext]: net.sf.acegisecurity.intercept.event.PublicInvocationEvent[source=invocation: method 'authenticate', arguments [hsantander, [xxxxxxx]; target is of class [org.alfresco.repo.security.authentication.AuthenticationServiceImpl]]
13:11:23,305 DEBUG [transaction.interceptor.RuleBasedTransactionAttribute] Applying rules to determine whether transaction should rollback on org.alfresco.repo.security.authentication.AuthenticationException: Login Failed
13:11:23,305 DEBUG [transaction.interceptor.RuleBasedTransactionAttribute] Winning rollback rule is: null
13:11:23,305 DEBUG [transaction.interceptor.RuleBasedTransactionAttribute] No relevant rollback rule found: applying superclass default
13:11:23,306 DEBUG [transaction.interceptor.TransactionInterceptor] Invoking rollback for transaction on org.alfresco.service.cmr.security.AuthenticationService.authenticate due to throwable [org.alfresco.repo.security.authentication.AuthenticationException: Login Failed]
Thanks