Versions Compared

Key

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

...

UCD KIM Identity Service requires three data sources:

...

a data source for the

...

UCD LDAP server defined by a bean named

...

ldapContextSource

Code Block
borderStylesolid
titleclasspath:edu/ucdavis/myapp/config/application-data.xml

<bean id="ldapPersonContextSource" class="org.springframework.ldap.core.support.LdapContextSource">
    <property name="url" value="${ldap.url}" />
    <property name="base" value="${ldap.base}" />
    <property name="pooled" value="${ldap.pooled}" />
    <property name="userDn" value="${ldap.user}" />
    <property name="password" value="${ldap.password}" />
</bean>

...

Code Block
borderStylesolid
titleclasspath:edu/ucdavis/myapp/config/application-data.xml

<bean id="ldapListingsContextSource" class="org.springframework.ldap.core.support.LdapContextSource">
    <property name="url" value="${ldap.url}" />
    <property name="base" value="${ldap.listings.base}" />
    <property name="pooled" value="${ldap.pooled}" />
    <property name="userDn" value="${ldap.user}" />
    <property name="password" value="${ldap.password}" />
</bean>

...

Optionally, UCD 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="driverClassName" value="${datasource.driver.name}"/>
    <property name="url" value="${datasource.url}"/>
    <property name="username" value="${datasource.username}"/>
    <property name="password" value="${datasource.password}"/>
</bean>

Rice Bean Configuration

Finally, we declare the rice bean and inject all of the data source beans into it along with any /wiki/spaces/UCDK/pages/119111884

...