Versions Compared

Key

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

...

KIM Identity Service requires a data source for the UCD LDAP server defined by a bean named ldapContextSourcetwo LDAP data sources:

  1. A data source pointing to the LDAP server to retrieve entries in the ou=People and ou=Listings schemas.
    Code Block
    borderStylesolid
    titleclasspath:edu/ucdavis/myapp/config/application-data.xml
    
    <bean id="ldapContextSource" class="org.springframework.ldap.core.support.LdapContextSource">
        <property name="url" value="${ldap.url}" />
        <property name="base" value="${ldap.base}" />
        <property name="userDn" value="${ldap.user}" />
        <property name="password" value="${ldap.password}" />
        <property name="pooled" value="false" />
    </bean>
    
  2. A data source pointing to the LDAP-DC server to retrieve entries in the ou=Accounts schema.
    Code Block
    borderStylesolid
    titleclasspath:edu/ucdavis/myapp/config/application-data.xml
    
    <bean id="

...

  1. ldapItContextSource" class="org.springframework.ldap.core.support.LdapContextSource">
        <property name="url" value="${ldap.it.url}" />
        <property name="base" value="${ldap.it.base}" />
        <property name="

...

  1. userDn" value="${ldap.it.

...

  1. user}" />
        <property name="

...

  1. password" value="${ldap.it.

...

  1. password}" />    	
        <property name="

...

  1. pooled" value="

...

  1. false" />
    </bean>
    

Optionally, KIM Identity Service provides access to the PEOPLE_DISPLAY_NAME view in the ORG schema in Mothra defined by a bean named . whitePagesDataSource

Code Block
borderStylesolid
titleclasspath:edu/ucdavis/myapp/config/application-data.xml
<bean id="whitePagesDataSource" destroy-method="close" class="org.apache.commons.dbcp.BasicDataSource">
    <property name="url" value="${whitepages.datasource.url}"/>
    <property name="username" value="${whitepages.datasource.username}"/>
    <property name="password" value="${whitepages.datasource.password}"/>
    <property name="driverClassName" value="${whitepages.datasource.driver.name}" />
    <property name="initialSize" value="${whitepages.datasource.initialSize}" />
    <property name="minIdle" value="${whitepages.datasource.minIdle}" />
    <property name="maxActive" value="${whitepages.datasource.maxActive}" />
    <property name="maxWait" value="${whitepages.datasource.maxWait}" />
    <property name="validationQuery" value="${whitepages.datasource.validationQuery}" />
    <property name="testOnBorrow" value="${whitepages.datasource.testOnBorrow}" />
    <property name="testOnReturn" value="${whitepages.datasource.testOnReturn}" />
    <property name="testWhileIdle" value="${whitepages.datasource.testWhileIdle}" />
    <property name="accessToUnderlyingConnectionAllowed" value="${whitepages.datasource.accessToUnderlyingConnectionAllowed}" />
</bean>

...