As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'> <beans> <!– Chaining –> <bean id="authenticationServiceImpl" class="org.alfresco.repo.security.authentication.ChainingAuthenticationServiceImpl"> <property name="authenticationServices"> <list> <ref bean="authenticationServiceImplLDAP"/> </list> </property> <property name="mutableAuthenticationService"> <ref bean="authenticationServiceImplAlfresco"/> </property> </bean> <!– Alfresco Auth –> <bean id="authenticationServiceImplAlfresco" class="org.alfresco.repo.security.authentication.AuthenticationServiceImpl"> <property name="authenticationDao"> <ref bean="authenticationDaoAlfresco"/> </property> <property name="ticketComponent"> <ref bean="ticketComponent"/> </property> <property name="authenticationComponent"> <ref bean="authenticationComponentImplAlfresco"/> </property> </bean> <bean id="authenticationDaoAlfresco" class="org.alfresco.repo.security.authentication.RepositoryAuthenticationDao"> <property name="nodeService"> <ref bean="nodeService"/> </property> <property name="dictionaryService"> <ref bean="dictionaryService"/> </property> <property name="namespaceService"> <ref bean="namespaceService"/> </property> <property name="searchService"> <ref bean="searchService"/> </property> <property name="userNamesAreCaseSensitive"> <value>${user.name.caseSensitive}</value> </property> <property name="passwordEncoder"> <ref bean="passwordEncoder"/> </property> </bean> <bean id="authenticationComponentImplAlfresco" class="org.alfresco.repo.security.authentication.AuthenticationComponentImpl"> <property name="authenticationDao"> <ref bean="authenticationDaoAlfresco"/> </property> <property name="authenticationManager"> <ref bean="authenticationManager"/> </property> <property name="allowGuestLogin"> <value>true</value> </property> </bean> <!– LDAP Auth –> <bean id="authenticationServiceImplLDAP" class="org.alfresco.repo.security.authentication.AuthenticationServiceImpl"> <property name="authenticationDao"> <ref bean="authenticationDaoLDAP" /> </property> <property name="ticketComponent"> <ref bean="ticketComponent" /> </property> <property name="authenticationComponent"> <ref bean="authenticationComponentImplLDAP" /> </property> </bean> <bean id="authenticationComponentImplLDAP" class="org.alfresco.repo.security.authentication.ldap.LDAPAuthenticationComponentImpl"> <property name="LDAPInitialDirContextFactory"> <ref bean="ldapInitialDirContextFactory"/> </property> <property name="userNameFormat"> <value>cn=%s,ou=people,dc=rivetlogic,dc=com</value> </property> </bean> <bean id="authenticationDaoLDAP" class="org.alfresco.repo.security.authentication.ntlm.NullMutableAuthenticationDao"/> </beans>
<?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'> <beans> <bean id="ldapInitialDirContextFactory" class="org.alfresco.repo.security.authentication.ldap.LDAPInitialDirContextFactoryImpl"> <property name="initialDirContextEnvironment"> <map> <!– The LDAP provider –> <entry key="java.naming.factory.initial"> <value>com.sun.jndi.ldap.LdapCtxFactory</value> </entry> <!– The url to the LDAP server –> <entry key="java.naming.provider.url"> <value>ldap://xx.xx.xx.xx:389</value> </entry> <!– The authentication mechanism to use –> <!– Some sasl authentication mechanisms may require a realm to be set –> <!– java.naming.security.sasl.realm –> <!– The available options will depend on your LDAP provider –> <entry key="java.naming.security.authentication"> <value>simple</value> </entry> <!– The id of a user who can read group and user information –> <!– This does not go through the pattern substitution defined above and is used "as is" –> <entry key="java.naming.security.principal"> <value>cn=user_with_read_access,dc=rivetlogic,dc=com</value> </entry> <!– The password for the user defined above –> <entry key="java.naming.security.credentials"> <value>*****</value> </entry> </map> </property> </bean> </beans>
javax.faces.FacesException: Error calling action method of component with id loginForm:submit caused by: javax.faces.el.EvaluationException: Exception while invoking expression #{LoginBean.login} caused by: org.alfresco.error.AlfrescoRuntimeException: Not implemented
Its not working for me. All my users were defined in a LDAP and its working.Now i want to implement chaining in order to have internal alfresco users also.So i had created an internal user in web client.I had copy/paste your code for chaining.Now i can connect with external LDAP user like before but i cant connect with internal user that i had created.I have this errorjavax.faces.FacesException: Error calling action method of component with id loginForm:submit caused by: javax.faces.el.EvaluationException: Exception while invoking expression #{LoginBean.login} caused by: org.alfresco.error.AlfrescoRuntimeException: Not implementedI had done more test :Without ldap config i can connect with internal user - its okWithout chaining config i can connect with external users and internal user are unknow - its okFor info i use 1.4 previewI expect someone have an idea thx a lot
javax.faces.FacesException: Error calling action method of component with id loginForm:submit
<?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'> <beans> <!– Chaining –> <bean id="authenticationServiceImpl" class="org.alfresco.repo.security.authentication.ChainingAuthenticationServiceImpl"> <property name="mutableAuthenticationService"> <ref bean="authenticationServiceImplAlfresco"/> </property> <property name="authenticationServices"> <list> <ref bean="authenticationServiceImplLDAP"/> </list> </property> </bean> <!– Alfresco Auth –> <bean id="authenticationServiceImplAlfresco" class="org.alfresco.repo.security.authentication.AuthenticationServiceImpl"> <property name="authenticationDao"> <ref bean="authenticationDaoAlfresco"/> </property> <property name="ticketComponent"> <ref bean="ticketComponent"/> </property> <property name="authenticationComponent"> <ref bean="authenticationComponentImplAlfresco"/> </property> </bean> <bean id="authenticationDaoAlfresco" class="org.alfresco.repo.security.authentication.RepositoryAuthenticationDao"> <property name="nodeService"> <ref bean="nodeService"/> </property> <property name="dictionaryService"> <ref bean="dictionaryService"/> </property> <property name="namespaceService"> <ref bean="namespaceService"/> </property> <property name="searchService"> <ref bean="searchService"/> </property> <property name="userNamesAreCaseSensitive"> <value>${user.name.caseSensitive}</value> </property> <property name="passwordEncoder"> <ref bean="passwordEncoder"/> </property> </bean> <bean id="authenticationComponentImplAlfresco" class="org.alfresco.repo.security.authentication.AuthenticationComponentImpl"> <property name="authenticationDao"> <ref bean="authenticationDaoAlfresco"/> </property> <property name="authenticationManager"> <ref bean="authenticationManager"/> </property> <property name="allowGuestLogin"> <value>true</value> </property> </bean> <!– LDAP Auth –> <bean id="authenticationServiceImplLDAP" class="org.alfresco.repo.security.authentication.AuthenticationServiceImpl"> <property name="authenticationDao"> <ref bean="authenticationDaoLDAP" /> </property> <property name="ticketComponent"> <ref bean="ticketComponent" /> </property> <property name="authenticationComponent"> <ref bean="authenticationComponentImplLDAP" /> </property> </bean> <bean id="authenticationComponentImplLDAP" class="org.alfresco.repo.security.authentication.ldap.LDAPAuthenticationComponentImpl"> <property name="LDAPInitialDirContextFactory"> <ref bean="ldapInitialDirContextFactory"/> </property> <property name="userNameFormat"> <value>uid=%s,ou=people,o=usn.com,o=son</value> </property> </bean> <bean id="authenticationDaoLDAP" class="org.alfresco.repo.security.authentication.ntlm.NullMutableAuthenticationDao"/> </beans>
<?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'> <beans> <!– LDAP authentication configuration –> <bean id="authenticationComponent" class="org.alfresco.repo.security.authentication.ldap.LDAPAuthenticationComponentImpl"> <property name="LDAPInitialDirContextFactory"> <ref bean="ldapInitialDirContextFactory"/> </property> <property name="userNameFormat"> <value>uid=%s,ou=people,o=usn.com,o=son</value> </property> </bean> <!– This bean is used to support general LDAP authentication. It is also used to provide read only access to users and groups to pull them out of the LDAP reopsitory –> <bean id="ldapInitialDirContextFactory" class="org.alfresco.repo.security.authentication.ldap.LDAPInitialDirContextFactoryImpl"> <property name="initialDirContextEnvironment"> <map> <!– The LDAP provider –> <entry key="java.naming.factory.initial"> <value>com.sun.jndi.ldap.LdapCtxFactory</value> </entry> <!– The url to the LDAP server –> <entry key="java.naming.provider.url"> <value>ldap://ldap.usn.com:389</value> </entry> <!– The authentication mechanism to use –> <entry key="java.naming.security.authentication"> <value>simple</value> </entry> </map> </property> </bean> </beans>
<?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'> <beans> <!– Chaining –> <bean id="authenticationServiceImpl" class="org.alfresco.repo.security.authentication.ChainingAuthenticationServiceImpl"> <property name="authenticationServices"> <list> <ref bean="authenticationServiceImplLDAP"/> </list> </property> <property name="mutableAuthenticationService"> <ref bean="authenticationServiceImplAlfresco"/> </property> </bean> <!– Alfresco Auth –> <bean id="authenticationServiceImplAlfresco" class="org.alfresco.repo.security.authentication.AuthenticationServiceImpl"> <property name="authenticationDao"> <ref bean="authenticationDaoAlfresco"/> </property> <property name="ticketComponent"> <ref bean="ticketComponent"/> </property> <property name="authenticationComponent"> <ref bean="authenticationComponentImplAlfresco"/> </property> </bean> <bean id="authenticationDaoAlfresco" class="org.alfresco.repo.security.authentication.RepositoryAuthenticationDao"> <property name="nodeService"> <ref bean="nodeService"/> </property> <property name="dictionaryService"> <ref bean="dictionaryService"/> </property> <property name="namespaceService"> <ref bean="namespaceService"/> </property> <property name="searchService"> <ref bean="searchService"/> </property> <property name="userNamesAreCaseSensitive"> <value>${user.name.caseSensitive}</value> </property> <property name="passwordEncoder"> <ref bean="passwordEncoder"/> </property> </bean> <bean id="authenticationComponentImplAlfresco" class="org.alfresco.repo.security.authentication.AuthenticationComponentImpl"> <property name="authenticationDao"> <ref bean="authenticationDaoAlfresco"/> </property> <property name="authenticationManager"> <ref bean="authenticationManager"/> </property> <property name="allowGuestLogin"> <value>true</value> </property> </bean> <!– LDAP Auth –> <bean id="authenticationServiceImplLDAP" class="org.alfresco.repo.security.authentication.AuthenticationServiceImpl"> <property name="authenticationDao"> <ref bean="authenticationDaoLDAP" /> </property> <property name="ticketComponent"> <ref bean="ticketComponent" /> </property> <property name="authenticationComponent"> <ref bean="authenticationComponentImplLDAP" /> </property> </bean> <bean id="authenticationComponentImpl" class="org.alfresco.repo.security.authentication.ldap.LDAPAuthenticationComponentImpl"> <property name="LDAPInitialDirContextFactory"> <ref bean="ldapInitialDirContextFactory"/> </property> <property name="userNameFormat"> <!– This maps between what the user types in and what is passed through to the underlying LDAP authentication. "%s" - the user id is passed through without modification. Used for LDAP authentication such as DIGEST-MD5, anything that is not "simple". "cn=%s,ou=London,dc=company,dc=com" - If the user types in "Joe Bloggs" the authentricate as "cn=Joe Bloggs,ou=London,dc=company,dc=com" Usually for simple authentication. –> <value>uid=%s,ou=People,dc=isoco,dc=net</value> </property> </bean> <bean id="authenticationDaoLDAP" class="org.alfresco.repo.security.authentication.ntlm.NullMutableAuthenticationDao"/> </beans>
<?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'> <beans> <!– LDAP authentication configuration –> <!– You can also use JAAS authentication for Kerberos against Active Directory or NTLM if you also require single sign on from the web browser. You do not have to use LDAP authentication to synchronise groups and users from an LDAP store if it supports other authentication routes, like Active Directory. –> <!– This bean is used to support general LDAP authentication. It is also used to provide read only access to users and groups to pull them out of the LDAP reopsitory –> <bean id="ldapInitialDirContextFactory" class="org.alfresco.repo.security.authentication.ldap.LDAPInitialDirContextFactoryImpl"> <property name="initialDirContextEnvironment"> <map> <!– The LDAP provider –> <entry key="java.naming.factory.initial"> <value>com.sun.jndi.ldap.LdapCtxFactory</value> </entry> <!– The url to the LDAP server –> <!– Note you can use space separated urls - they will be tried in turn until one works –> <!– This could be used to authenticate against one or more ldap servers (you will not know which one ….) –> <entry key="java.naming.provider.url"> <value>ldap://ldap.isoco.net:389</value> </entry> <!– The authentication mechanism to use –> <!– Some sasl authentication mechanisms may require a realm to be set –> <!– java.naming.security.sasl.realm –> <!– The available options will depend on your LDAP provider –> <entry key="java.naming.security.authentication"> <value>DIGEST-MD5</value> </entry> <!– The id of a user who can read group and user information –> <!– This does not go through the pattern substitution defined above and is used "as is" –> <entry key="java.naming.security.principal"> <value>uid=alfrescouser,ou=People</value> </entry> <!– The password for the user defined above –> <entry key="java.naming.security.credentials"> <value>********</value> </entry> </map> </property> </bean> </beans>
HiThere is a simple way to integrate Alfresco with LDAP server. Use LDAP-authencation-context.xml only. Rename chaining-authentication-context.xml to chaining-authentication.xml.
10:38:46,368 WARN [org.alfresco.repo.security.authentication.ldap.LDAPInitialDirContextFactoryImpl] LDAP server supports anonymous bind ldap://docs.cignex.com:10389 10:38:46,975 INFO [org.alfresco.repo.security.authentication.ldap.LDAPInitialDirContextFactoryImpl] LDAP server does not support simple string user ids and invalid credentials at ldap://docs.cignex.com:10389 10:38:47,583 INFO [org.alfresco.repo.security.authentication.ldap.LDAPInitialDirContextFactoryImpl] LDAP server does not fall back to anonymous bind for a simple dn and password at ldap://docs.cignex.com:10389 10:38:48,190 INFO [org.alfresco.repo.security.authentication.ldap.LDAPInitialDirContextFactoryImpl] LDAP server does not fall back to anonymous bind for known principal and invalid credentials at ldap://docs.cignex.com:10389
0:39:28,127 ERROR [[localhost].[/alfresco].[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception rg.alfresco.error.AlfrescoRuntimeException: Not implemented at org.alfresco.repo.security.authentication.DefaultMutableAuthenticationDao.loadUserByUsername(DefaultMutableAuthenticationDao.java:410) at net.sf.acegisecurity.providers.dao.DaoAuthenticationProvider.getUserFromBackend(DaoAuthenticationProvider.java:390) at net.sf.acegisecurity.providers.dao.DaoAuthenticationProvider.authenticate(DaoAuthenticationProvider.java:225) at net.sf.acegisecurity.providers.ProviderManager.doAuthentication(ProviderManager.java:159) at net.sf.acegisecurity.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:49) at org.alfresco.repo.security.authentication.AuthenticationComponentImpl.authenticate(AuthenticationComponentImpl.java:74) at org.alfresco.repo.security.authentication.AuthenticationServiceImpl.authenticate(AuthenticationServiceImpl.java:112) 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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:187) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154) at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80) 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 $Proxy21.authenticate(Unknown Source) at org.alfresco.web.bean.LoginBean.login(LoginBean.java:243) 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.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:132) at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:61) at javax.faces.component.UICommand.broadcast(UICommand.java:109) at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:97) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:171) at org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:32) at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95) at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:139) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:94) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) at java.lang.Thread.run(Thread.java:595) 0:39:35,657 ERROR [smb.protocol.mailslot] Host announce error, 10055:SendSocketDatagram - No buffer space available, (LANA 6) 0:39:49,176 DEBUG [authentication.ldap.LDAPPersonExportSource] Adding user for garry 0:39:49,176 DEBUG [authentication.ldap.LDAPGroupExportSource] Found 0 0:39:49,188 DEBUG [authentication.ldap.LDAPGroupExportSource] Top 0 0:39:49,193 DEBUG [authentication.ldap.LDAPGroupExportSource] Secondary 0 0:39:49,204 WARN [authentication.ldap.LDAPPersonExportSource] User returned by user search does not have mandatory user id attribute {mail=mail: janesmith@life 0:39:49,497 DEBUG [authentication.ldap.LDAPPersonExportSource] Adding user for joebloggs 0:39:49,511 DEBUG [authentication.ldap.LDAPPersonExportSource] Adding user for admin 0:39:49,517 DEBUG [authentication.ldap.LDAPPersonExportSource] Adding user for munwar 0:39:49,531 DEBUG [authentication.ldap.LDAPPersonExportSource] Adding user for jane 0:39:49,545 DEBUG [authentication.ldap.LDAPPersonExportSource] Adding user for chandan 0:39:49,559 DEBUG [authentication.ldap.LDAPPersonExportSource] Adding user for testUser 0:39:49,573 DEBUG [authentication.ldap.LDAPPersonExportSource] Adding user for kavitha 0:39:49,589 DEBUG [authentication.ldap.LDAPPersonExportSource] Adding user for andrew 0:39:49,623 DEBUG [authentication.ldap.LDAPPersonExportSource] Adding user for chris 0:39:49,635 DEBUG [authentication.ldap.LDAPPersonExportSource] Adding user for rick 0:39:49,645 DEBUG [authentication.ldap.LDAPPersonExportSource] Adding user for venkat 0:39:49,655 DEBUG [authentication.ldap.LDAPPersonExportSource] Adding user for jonas 0:40:15,660 ERROR [smb.protocol.mailslot] Host announce error, 10055:SendSocketDatagram - No buffer space available, (LANA 6) 0:41:35,661 ERROR [smb.protocol.mailslot] Host announce error, 10055:SendSocketDatagram - No buffer space available, (LANA 6) 0:41:35,662 ERROR [smb.protocol.mailslot] Marked LANA as unavailable due to send errors, (LANA 6)
javax.faces.FacesException: Error calling action method of component with id loginForm:submit caused by: javax.faces.el.EvaluationException: Exception while invoking expression #{LoginBean.login} caused by: org.alfresco.error.AlfrescoRuntimeException: Not implemented
<?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'> <beans> <bean id="authenticationComponentImpl" class="org.alfresco.repo.security.authentication.ldap.LDAPAuthenticationComponentImpl"> <property name="LDAPInitialDirContextFactory"> <ref bean="ldapInitialDirContextFactory" /> </property> <property name="userNameFormat"> <value>uid=%s,ou=swipe.de,ou=users,o=swipe,dc=swipe,dc=de</value> </property> </bean> <bean id="ldapInitialDirContextFactory" class="org.alfresco.repo.security.authentication.ldap.LDAPInitialDirContextFactoryImpl"> <property name="initialDirContextEnvironment"> <map> <!– The LDAP provider –> <entry key="java.naming.factory.initial"> <value>com.sun.jndi.ldap.LdapCtxFactory</value> </entry> <!– The url to the LDAP server –> <entry key="java.naming.provider.url"> <value>ldap://10.20.2.16:389</value> </entry> <!– The authentication mechanism to use –> <!– Some sasl authentication mechanisms may require a realm to be set –> <!– java.naming.security.sasl.realm –> <!– The available options will depend on your LDAP provider –> <entry key="java.naming.security.authentication"> <value>simple</value> </entry> <!– The id of a user who can read group and user information –> <!– This does not go through the pattern substitution defined above and is used "as is" –> <entry key="java.naming.security.principal"> <value></value> </entry> <!– The password for the user defined above –> <entry key="java.naming.security.credentials"> <value></value> </entry> </map> </property> </bean> </beans>
<?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'> <beans> <!– Chaining –> <bean id="authenticationServiceImpl" class="org.alfresco.repo.security.authentication.ChainingAuthenticationServiceImpl"> <property name="authenticationServices"> <list> <ref bean="authenticationServiceImplLDAP"/> </list> </property> <property name="mutableAuthenticationService"> <ref bean="authenticationServiceImplAlfresco"/> </property> </bean> <!– Alfresco Auth –> <bean id="authenticationServiceImplAlfresco" class="org.alfresco.repo.security.authentication.AuthenticationServiceImpl"> <property name="authenticationDao"> <ref bean="authenticationDaoAlfresco"/> </property> <property name="ticketComponent"> <ref bean="ticketComponent"/> </property> <property name="authenticationComponent"> <ref bean="authenticationComponentImplAlfresco"/> </property> </bean> <bean id="authenticationDaoAlfresco" class="org.alfresco.repo.security.authentication.RepositoryAuthenticationDao"> <property name="nodeService"> <ref bean="nodeService"/> </property> <property name="dictionaryService"> <ref bean="dictionaryService"/> </property> <property name="namespaceService"> <ref bean="namespaceService"/> </property> <property name="searchService"> <ref bean="searchService"/> </property> <property name="userNamesAreCaseSensitive"> <value>${user.name.caseSensitive}</value> </property> <property name="passwordEncoder"> <ref bean="passwordEncoder"/> </property> </bean> <bean id="authenticationComponentImplAlfresco" class="org.alfresco.repo.security.authentication.AuthenticationComponentImpl"> <property name="authenticationDao"> <ref bean="authenticationDaoAlfresco"/> </property> <property name="authenticationManager"> <ref bean="authenticationManager"/> </property> <property name="allowGuestLogin"> <value>true</value> </property> </bean> <!– LDAP Auth –> <bean id="authenticationServiceImplLDAP" class="org.alfresco.repo.security.authentication.AuthenticationServiceImpl"> <property name="authenticationDao"> <ref bean="authenticationDaoLDAP" /> </property> <property name="ticketComponent"> <ref bean="ticketComponent" /> </property> <property name="authenticationComponent"> <ref bean="authenticationComponentImplLDAP" /> </property> </bean> <bean id="authenticationComponentImplLDAP" class="org.alfresco.repo.security.authentication.ldap.LDAPAuthenticationComponentImpl"> <property name="LDAPInitialDirContextFactory"> <ref bean="ldapInitialDirContextFactory"/> </property> <property name="userNameFormat"> <value>uid=%s,ou=swipe.de,ou=users,o=swipe,dc=swipe,dc=de</value> </property> </bean> <bean id="authenticationDaoLDAP" class="org.alfresco.repo.security.authentication.ntlm.NullMutableAuthenticationDao" /> </beans>
<!– The id of a user who can read group and user information –> <!– This does not go through the pattern substitution defined above and is used "as is" –> <entry key="java.naming.security.principal"> <value></value> </entry> <!– The password for the user defined above –> <entry key="java.naming.security.credentials"> <value></value> </entry>