Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

En esta breve guía encontrarás los pasos a seguir para poder configurar correctamente el acceso Multi-Dominio en Thuban.

...

Note

ATENCIÓN! Se requiere que Thuban pueda comunicarse a los distintos dominio dominios por la red o internet. Esto no es AD FS ni SAML ni OPENID.

...

  1. Dirigirse a la carpeta Context de la instalación de Thuban, ubicar y abrir en un editor de texto el archivo “user-application-context.xml

  2. Agregar los siguientes beans al mismo:

...

Code Block
languagexml
<bean id="DOM1Domain" class="com.latintech.thuban.services.login.ldap.LdapDefinition">
  <property name="ldapHost" value="ldap://example.org:389"/>
  <property name="ldapBase" value="dc=example,dc=org"/>
  <property name="ldapName" value="EX"/>
  <property name="ldapUserAttributeId" value="sAMAccountName"/>
  <property name="ldapUserAttributeName" value="name"/>
  <property name="ldapUserAttributeSurname" value="sn"/>
  <property name="ldapUserAttributeDistinguishedName" value="distinguishedName"/>
  <property name="ldapUserAttributeMemberOf" value="memberOf"/>
  <property name="ldapUserAttributeMail" value=""/>
  <property name="ldapUserAttributeArea" value=""/>
  <property name="ldapUserAttributePhone" value=""/>
</bean>

...

  1. Dirigirse a la carpeta Context de la instalación de Thuban, ubicar y abrir en un editor de texto el archivo “user-application-context.xml

  2. Agregar los siguientes beans al mismo:

...

Code Block
languagexml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xmlns:aop="http://www.springframework.org/schema/aop"
     xmlns:tx="http://www.springframework.org/schema/tx"
     xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
     http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
     http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">
	

	<bean id="thubanAuthenticationProvider" class="com.latintech.thuban.acegi.provider.ThubanMultiDomainAuthenticationProvider">
		<property name="userDetailsService" ref="userDetailsService"/>
		<property name="loginService" ref="loginService"/>
	</bean>

	<bean id="userDetailsService" class="com.latintech.thuban.acegi.userdetails.ThubanMultiDomainUserDetailsService">
		<property name="adminService" ref="adminService"/>
		<property name="securityService" ref="securityService"/>
	</bean>

	<bean id="domains" class="org.apache.commons.collections.map.LinkedMap">
  		<constructor-arg>
    		<map>
     			<entry>
       				<key><value>CORP1</value></key>
       				<ref bean="corp1Domain"/>
     			</entry>
     			<entry>
       				<key><value>Corp2</value></key>
       				<ref bean="corp2Domain "/>
     			</entry>
   			</map>
 		</constructor-arg>
	</bean>

	<bean id="corp1Domain" class="com.latintech.thuban.services.login.ldap.LdapDefinition">
  		<property name="ldapHost" value="ldap://corp1.example.org:389"/>
  		<property name="ldapBase" value="dc=corp1,dc=example,dc=org"/>
  		<property name="ldapName" value="Corp1"/>
  		<property name="ldapUserAttributeId" value="sAMAccountName"/>
  		<property name="ldapUserAttributeName" value="name"/>
        <property name="ldapUserAttributeSurname" value="sn"/>
  		<property name="ldapUserAttributeDistinguishedName" value="distinguishedName"/>
  		<property name="ldapUserAttributeMemberOf" value="memberOf"/>
  		<property name="ldapUserAttributeMail" value="mail"/>
  		<property name="ldapUserAttributeArea" value="dept"/>
  		<property name="ldapUserAttributePhone" value="phone"/>
	</bean>

	<bean id="corp2Domain" class="com.latintech.thuban.services.login.ldap.LdapDefinition">
  		<property name="ldapHost" value="ldap://corp2.example.org:389"/>
  		<property name="ldapBase" value="dc=corp2,dc=example,dc=org"/>
  		<property name="ldapName" value="Corp2"/>
  		<property name="ldapUserAttributeId" value="sAMAccountName"/>
  		<property name="ldapUserAttributeName" value="name"/>
  		<property name="ldapUserAttributeDistinguishedName" value="distinguishedName"/>
  		<property name="ldapUserAttributeMemberOf" value="memberOf"/>
  		<property name="ldapUserAttributeMail" value="mail"/>
  		<property name="ldapUserAttributeArea" value="dept"/>
  		<property name="ldapUserAttributePhone" value="phone"/>
	</bean>
</beans>

...