cancel
Showing results for 
Search instead for 
Did you mean: 

LDAP authentication

jlopez
Champ in-the-making
Champ in-the-making
Hi everybody, I'm using Liferay 4.2.2 and alfresco 1.4 portlet and I want to configure alfresco to be able to login against the LDAP of my company. The problem is that i don' find the ldap-authentication-context.xml and chaining-authentication-context.xml files. What I need to make LDAP authentication working is just create those files and fill them with the data of this post?where should i put them?

Thank you very much.
24 REPLIES 24

jayesh_prajapat
Star Contributor
Star Contributor
which classes u selected while creating account in LDAP .
have u used chain-…-.xml
which version of alfresco are you using.
which directory server are you using.

jlopez
Champ in-the-making
Champ in-the-making
which classes u selected while creating account in LDAP .
have u used chain-…-.xml
which version of alfresco are you using.
which directory server are you using.

-I didn't create any account in LDAP, they where created already, the administrator told me the fields that are used:

userId= uid
password= userPassword
emailAddress= mail 
firstName= givenName
lastName= sn
group= gidNumber

-When I use chaining I have errors creating the beans, so now i'm not using it know, but i should.

-I am using Liferay Professional with the portlet of Alfresco 1.4.

- In my company we have OpenLDAP server.

jayesh_prajapat
Star Contributor
Star Contributor
so are u trying for SSO or just integrating alfresco in liferay with LDAP authentication

jlopez
Champ in-the-making
Champ in-the-making
My first step is to log in with LDAP into Alfresco and then I should do SSO with Alfresco and with other portlets.

jlopez
Champ in-the-making
Champ in-the-making
Hi jayesh, I have chaining working now, but I still have these errors:

11:20:39,359 ERROR [org.alfresco.smb.protocol] CIFS server configuration error, Wrong authentication setup for passthru authenticator (can only be used with LDAP/JAAS auth component)
org.alfresco.error.AlfrescoRuntimeException: Wrong authentication setup for passthru authenticator (can only be used with LDAP/JAAS auth component)
   at org.alfresco.filesys.server.config.ServerConfiguration.processSecurityConfig(ServerConfiguration.java:1764)
   at org.alfresco.filesys.server.config.ServerConfiguration.init(ServerConfiguration.java:514)
   at org.alfresco.filesys.server.config.ServerConfiguration.onBootstrap(ServerConfiguration.java:3351)
   at org.alfresco.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:54)
   at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:45)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:225)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:323)
   at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
   at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904)
   at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
   at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
   at org.apache.catalina.core.StandardService.start(StandardService.java:450)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)

And I have the  Passthru Authenticator configurer in my file-servers.xml as you told me, I have tried with my IP, my hostname, localhost and 127.0.0.1 and still have these errors.