AnsweredAssumed Answered

LDAP and NTLM conflict under linux

Question asked by gianluca on Sep 10, 2007
Latest reply on Sep 10, 2007 by gianluca
Hi everybody,
I've configured Alfresco 2.1 on my linux workstation with ntlm and ldap as mentioned in wiki and everything runs fine. I can trust users on active directory server and then import with specified job defined in job-scheduler. I have also copied the entire directory into another linux workstation and after changed configuration files according the new ip address I've tried to run the new alfresco instance.

At this time I've got an error:
"12:25:06,007 ERROR [[Catalina].[localhost].[/alfresco]] Exception starting filter Authentication Filter

javax.servlet.ServletException: Required authentication mode not available

        at org.alfresco.web.app.servlet.NTLMAuthenticationFilter.init(NTLMAuthenticationFilter.java:191)

        at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:221)

        at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:302)

        at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:78)

        at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3635)

        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4222)

        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)

        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)

        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)

        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)

        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)

        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)

        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)

        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)

        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)

        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)

        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)

        at org.apache.catalina.core.StandardService.start(StandardService.java:448)

        at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)

        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
….."

This sound strange because the configuration files are the same of the alfresco instance running correctly on the first workstation.
I've tried to modify the NTLMAuthenticationFilter.java to get the value of m_authComponent.getNTLMMode(). In the first working instance the m_authComponent.getNTLMMode() return the correct value of "PASS_THROUGH" according to configuration files but in the second alfresco instance thi value is "NONE"!!!!!

Please help me!
Thanks.
Gianluca

Outcomes