Versions Compared

Key

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

...

KIM Service Configuration

The UCD has implemented a custom KIM Identity Service which fetches Entity and Principal information from UCD LDAP.

Data Source Configuration

KIM Identity Service requires two LDAP data sources:

...

and, optionally, Display Name from White Pages. It is instantiated by declaring classpath:edu/ucdavis/kuali/rice/

...

kim/config/

...

ucd-kim-wp-service.xml if using White Pages, or classpath:edu/ucdavis/kuali/rice/kim/config/ucd-kim-service.xml if not using White Pages, in the Spring context.

Data Source Configuration

KIM Identity Service requires two 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="ldapItContextSource" class="org.springframework.ldap.core.support.LdapContextSource">
        <property name="url" value="${ldap.it.url}" />
        <property name="base" value="${ldap.it.base}" />
        <property name="userDn" value="${ldap.it.user}" />
        <property name="password" value="${ldap.it.password}" />    	
        <property name="pooled" value="false" />
    </bean>
    

...

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>
Tip

To take advantage of pooling capabilities, testOnBorrow should be set to true.

KEW Service Configuration

UCD has implemented a custom Encryption Service that overrides the default demonstration encryption service.

Property Configuration

The encryption service requires an encryption.key property be set.

Code Block
borderStylesolid
title/usr/local/rice/rice-config.xml

<param name="encryption.key">[some generated encryption key]</param>

Spring Bean Configuration

Declare the service using either of the following methods:

  1. Declare it as part of the rice.additionalSpringFiles property and pass that as a token into the rice bean
    Code Block
    borderStylesolid
    title/usr/local/rice/rice-config.xml
    
    <param name="rice.additionalSpringFiles">classpath:edu/ucdavis/kuali/rice/kew/config/ucd-kew-service.xml</param>
    
    Code Block
    borderStylesolid
    titleclasspath:edu/ucdavis/myapp/config/rice-common.xml
    
    <bean id="rice" class="org.kuali.rice.core.config.RiceConfigurer">
    ...
        <property name="additionalSpringFiles">
            <value>${rice.additionalSpringFiles}</value>
        </property>
    ...
    </bean>
    
  2. Declare it directly in the rice bean using the additionalSpringFiles property (see Rice Bean Configuration)
    Code Block
    borderStylesolid
    titleclasspath:edu/ucdavis/myapp/config/rice-common.xml
    
    <bean id="rice" class="org.kuali.rice.core.config.RiceConfigurer">
    ...
        <property name="additionalSpringFiles">
            <list>
                <value>classpath:edu/ucdavis/kuali/rice/kew/config/ucd-kew-service.xml</value>
            </list>
        </property>
    ...
    </bean>
    
  3. If you're using Spring's ContextLoaderListener, declare it in web.xml
    Code Block
    borderStylesolid
    titlesrc/main/webapp/WEB-INF/web.xml
    
    <listener>
        <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    </listener>
    
    <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>
            classpath:edu/ucdavis/kuali/rice/kew/config/ucd-kew-service.xml
        </param-value>
    </context-param>
    

KNS Service Configuration (DRAFT)

UCD has implemented a custom Workflow Information Service that overrides the base service, so that Rice can retrieve system users (KR,KFS,etc.) in the database, rather than in LDAP.

Spring Bean Configuration

Declare the service using either of the following methods:

...

Code Block
borderStylesolid
title/usr/local/rice/rice-config.xml

<param name="rice.additionalSpringFiles">classpath:edu/ucdavis/kuali/rice/kew/config/ucd-kns-service.xml</param>

...

borderStylesolid
titleclasspath:edu/ucdavis/myapp/config/rice-common.xml

...

  <property name="minIdle" value="${whitepages.datasource.minIdle}" />
    <property name="maxActive" value="${whitepages.datasource.maxActive}" />
    <property name="

...

maxWait"

...

 value="${whitepages.datasource.maxWait}" />
    <property 

...

borderStylesolid
titleclasspath:edu/ucdavis/myapp/config/rice-common.xml

...

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>
Tip

To take advantage of pooling capabilities, testOnBorrow should be set to true.

KEW Service Configuration

The UCD Encryption Service overrides the default demonstration encryption service. It is instantiated by declaring classpath:edu/ucdavis/kuali/rice

...

/kim/config/ucd-kew-service.xml in the Spring context.

Property Configuration

The encryption service requires an encryption.key property be set.

Code Block
borderStylesolid
title

...

/usr/

...

local/

...

rice/

...

rice-

...

config.xml

...

<param name="encryption.key">[some generated encryption key]</param>

KNS Service Configuration (DRAFT)

The UCD Workflow Information Service overrides the base service so that Rice can retrieve system users (KR,KFS,etc.) in the database, rather than in LDAP. It is instantiated by declaring
classpath:edu/ucdavis/kuali/rice/

...

kim/config/ucd-kns-service.xml

...

in the Spring context.

UCD Spring Bean Configuration

Declare the UCD-implemented Rice services using either of the following methods:

...