Forums de discussion
ldap-spring question
Dariusz Sawicki, modifié il y a 14 années.
ldap-spring question
Regular Member Publications: 165 Date d'inscription: 27/03/09 Publications récentes
HI
What is the easiest way to override ldap-spring.xml and change implementation of PortalLDAPExporterImpl.class
ldap-spring.xml and PortalLDAPExporterImpl.class is in portal-impl.jar
Regards
Darek
What is the easiest way to override ldap-spring.xml and change implementation of PortalLDAPExporterImpl.class
ldap-spring.xml and PortalLDAPExporterImpl.class is in portal-impl.jar
Regards
Darek
Henrique Simoes de Andrade, modifié il y a 14 années.
RE: ldap-spring question
Regular Member Publications: 165 Date d'inscription: 30/04/10 Publications récentes
Well... I made some changes using Ext environment creating a class extending PortalLDAPImporterImpl overwriting some methods and created a file ext-spring.xml pointing to the new class:
<!--?xml version="1.0" encoding="UTF-8"?-->
<beans default-destroy-method="destroy" default-init-method="afterPropertiesSet" xmlns="http://www.springframework.org/schema/beans" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemalocation="http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
<bean id="com.liferay.portal.security.ldap.PortalLDAPImporterUtil" class="com.liferay.portal.security.ldap.PortalLDAPImporterUtil">
<property name="portalLDAPImporter">
<bean class="com.liferay.portal.security.ldap.PortalLDAPImporterImplExt">
<property name="LDAPToPortalConverter" ref="ldapToPortalConverter" />
</bean>
</property>
</bean>
</beans>