Dashboard > Penrose > Download > Penrose 0.9.5 Migration
Penrose 0.9.5 Migration
Added by Endi S. Dewata, last edited by Endi S. Dewata on Sep 13, 2005  (view change)
Labels: 
(None)


Migrating apacheds.xml

Update your apacheds.xml as follows:

<bean id="environment" class="org.springframework.beans.factory.config.PropertiesFactoryBean">
    <property name="properties">
      <props>
        <prop key="asn.1.berlib.provider">org.apache.ldap.common.berlib.asn1.SnickersProvider</prop>
        <prop key="java.naming.security.authentication">simple</prop>
        <prop key="java.naming.security.principal">uid=admin,ou=system</prop>
        <prop key="java.naming.security.credentials">secret</prop>
        <prop key="java.naming.ldap.attributes.binary">photo personalSignature audio jpegPhoto javaSerializedData userPassword userCertificate cACertificate authorityRevocationList certificateRevocationList crossCertificatePair x500UniqueIdentifier krb5Key</prop>
      </props>
    </property>
  </bean>

  ...

  <bean id="penrose" class="org.safehaus.penrose.Penrose"/>

  ...

Migrating mapping.xml

Variables with multiple values are being passed to the mapping script as a java.util.Collection. If you want to handle them as individual values, you can specify it using the "foreach" and "var" attribute.

<entry dn="cn=...,ou=groups,dc=example,dc=com">
    ...

    <attribute name="uniqueMember">
        <expression foreach="ug.username" var="x">
            "uid="+x+",ou=users,dc=example,dc=com"
        </expression>
    </attribute>

    <source name="ug">

        ...

        <field name="username">

            <expression foreach="uniqueMember" var="x">
int i = x.indexOf("=");
int j = x.indexOf(",");
return x.substring(i+1, j);
            </expression>

        </field>

    </source>

</entry>

Removing old library files

Remove the following files from the lib directory:

  • penrose-0.9.4.jar
  • apacheds-main-0.9.1.jar
  • bsh-2.0b1.jar
  • nlog4j-1.2.14.jar

Site running on a free Atlassian Confluence Open Source Project License granted to Safehaus. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.4 Build:#809 Jun 12, 2007) - Bug/feature request - Contact Administrators