cancel
Showing results for 
Search instead for 
Did you mean: 

NTLM Authentication

indand
Champ in-the-making
Champ in-the-making
Hello!
I'm trying to use NTML Authentication, but I'm having some problems. I've configured everything, and it works fine only if it is a new installation of Alfresco (with no changes).
If it's not a new installation, I get the following error:

net.sf.acegisecurity.AuthenticationServiceException: General error; nested exception is java.lang.IllegalStateException: Non-unique path: found : /app:company_home/app:user_homes 0
caused by:
java.lang.IllegalStateException: Non-unique path: found : /app:company_home/app:user_homes 0

Why? What do I have to change to make it work?
Thank you in advance, it's urgent!
3 REPLIES 3

roman
Champ in-the-making
Champ in-the-making
I'm tryin to configure NTLM authentication too.

i've read the wiki for configuring NTLM.
have a user defined in alfresco (same name and password as windows logon)

(alfresco 2.1 community, windows xp pro, firefox with trusted-uris: localhost)

changed the web.xml

the following error occurs:

net.sf.acegisecurity.AuthenticationCredentialsNotFoundException: A valid SecureContext was not provided in the RequestContext
at net.sf.acegisecurity.intercept.AbstractSecurityInterceptor.credentialsNotFound(AbstractSecurityInterceptor.java:477)
at net.sf.acegisecurity.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:355)
at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:77)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:49)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at org.alfresco.repo.audit.AuditComponentImpl.auditImpl(AuditComponentImpl.java:256)
at org.alfresco.repo.audit.AuditComponentImpl.audit(AuditComponentImpl.java:191)
at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:69)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
at $Proxy2.getProperty(Unknown Source)
at org.alfresco.web.app.servlet.NTLMAuthenticationFilter.processType3(NTLMAuthenticationFilter.java:786)
at org.alfresco.web.app.servlet.NTLMAuthenticationFilter.doFilter(NTLMAuthenticationFilter.java:402)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)

roman
Champ in-the-making
Champ in-the-making
I've enabled debugging for NTLM:

Login with Firefox:

[NTLMAuthenticationFilter] New NTLM auth request from 127.0.0.1 (127.0.0.1:2413)
[NTLMAuthenticationFilter] Received type1 [Type1:0x88207,Domain:<NotSet>,Wks:<NotSet>]
[NTLMAuthenticationFilter] Sending NTLM type2 to client - [Type2:0x203,Target:BAUDRILLARD_A,Ch:ebd197078974f851]
[NTLMAuthenticationFilter] Received type3 [Type3:,LM:3d83a2f2c67986799fccf7401240f3a1a50d66d20f018eff,NTLM:3d83a2f2c67986799fccf7401240f3a1a50d66d20f018eff,
Dom:,User:agapkin,Wks:baudrillard]

Login with IE7:

[NTLMAuthenticationFilter] New NTLM auth request from 127.0.0.1 (127.0.0.1:2786)
[NTLMAuthenticationFilter] Received type1 [Type1:0xa208b207,Domain:SWIPE.DE,Wks:BAUDRILLARD]
[NTLMAuthenticationFilter] Sending NTLM type2 to client - [Type2:0x80000203,Target:BAUDRILLARD_A,Ch:8e1ecf31a7e499f0]
[NTLMAuthenticationFilter] Received type3 [Type3:,LM:dc34e939a64b10f8802cdcc73fb5ef4dc289ce27a14ed7de,NTLM:37d65de7bd222d1a7192cd7b5de98d6a6591354356bc8e62,
Dom:SWIPE.DE,User:agapkin,Wks:BAUDRILLARD]

any ideas???

best regards
roman

curious_george
Champ in-the-making
Champ in-the-making
To the orignal parent poster, I believe it has to do with the User Homes folder not existing or being moved. Hope that helps, even though this response is 2 months after your post!