Dashboard > Penrose 1.0 > ... > Penrose Server User Guide > Apache Directory Server
Apache Directory Server
Added by Endi S. Dewata, last edited by Endi S. Dewata on Jul 06, 2006  (view change)
Labels: 
(None)


Penrose can be installed as a service in Apache Directory Server (ADS).

Add the following tags into ADS's configuration file (server.xml):

<beans>

  <bean id="penroseFactory" class="org.safehaus.penrose.PenroseFactory" factory-method="getInstance"/>

  <bean id="penrose"
        factory-bean="penroseFactory" factory-method="createPenrose"
        init-method="start" destroy-method="stop">
    <constructor-arg><value>PENROSE_SERVER_HOME</value></constructor-arg>
  </bean>

  <bean id="penroseInterceptor" class="org.safehaus.penrose.ldap.PenroseInterceptor">
    <property name="penrose"><ref bean="penrose"/></property>
  </bean>

  <bean id="configuration" class="org.apache.directory.server.configuration.MutableServerStartupConfiguration">

    ...

    <property name="interceptorConfigurations">
      <list>

        <bean class="org.apache.directory.server.core.configuration.MutableInterceptorConfiguration">
          <property name="name"><value>penroseService</value></property>
          <property name="interceptor">
            <ref bean="penroseInterceptor"/>
          </property>
        </bean>

        ...

      </list>
    </property>

  </bean>

</beans>

Replace the PENROSE_SERVER_HOME above with the actual Penrose Server installation directory.

Then copy all jar files in PENROSE_SERVER_HOME/lib and PENROSE_SERVER_HOME/lib/ext into ADS's lib/ext directory.

See also the example in PENROSE_SERVER_HOME/samples/apacheds.

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