directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ccust...@apache.org
Subject svn commit: r756112 - in /directory/apacheds/trunk/osgi: ./ src/ src/main/ src/main/filtered-resources/ src/main/resources/ src/main/resources/META-INF/ src/main/resources/META-INF/services/ src/main/resources/META-INF/services/org/ src/main/resources/...
Date Thu, 19 Mar 2009 17:58:04 GMT
Author: ccustine
Date: Thu Mar 19 17:58:03 2009
New Revision: 756112

URL: http://svn.apache.org/viewvc?rev=756112&view=rev
Log:
DIRSERVER-1334 Create module for OSGi bundle

Added:
    directory/apacheds/trunk/osgi/
    directory/apacheds/trunk/osgi/pom.xml
    directory/apacheds/trunk/osgi/src/
    directory/apacheds/trunk/osgi/src/main/
    directory/apacheds/trunk/osgi/src/main/filtered-resources/
    directory/apacheds/trunk/osgi/src/main/filtered-resources/features.xml
    directory/apacheds/trunk/osgi/src/main/resources/
    directory/apacheds/trunk/osgi/src/main/resources/META-INF/
    directory/apacheds/trunk/osgi/src/main/resources/META-INF/services/
    directory/apacheds/trunk/osgi/src/main/resources/META-INF/services/org/
    directory/apacheds/trunk/osgi/src/main/resources/META-INF/services/org/apache/
    directory/apacheds/trunk/osgi/src/main/resources/META-INF/services/org/apache/xbean/
    directory/apacheds/trunk/osgi/src/main/resources/META-INF/services/org/apache/xbean/spring/
    directory/apacheds/trunk/osgi/src/main/resources/META-INF/services/org/apache/xbean/spring/http/
    directory/apacheds/trunk/osgi/src/main/resources/META-INF/services/org/apache/xbean/spring/http/apacheds.org/
    directory/apacheds/trunk/osgi/src/main/resources/META-INF/services/org/apache/xbean/spring/http/apacheds.org/config/
    directory/apacheds/trunk/osgi/src/main/resources/META-INF/services/org/apache/xbean/spring/http/apacheds.org/config/core
    directory/apacheds/trunk/osgi/src/main/resources/META-INF/spring.handlers
    directory/apacheds/trunk/osgi/src/main/resources/META-INF/spring.schemas
    directory/apacheds/trunk/osgi/src/main/resources/apacheds.xsd
    directory/apacheds/trunk/osgi/src/main/resources/example/
    directory/apacheds/trunk/osgi/src/main/resources/example/server.xml

Added: directory/apacheds/trunk/osgi/pom.xml
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/osgi/pom.xml?rev=756112&view=auto
==============================================================================
--- directory/apacheds/trunk/osgi/pom.xml (added)
+++ directory/apacheds/trunk/osgi/pom.xml Thu Mar 19 17:58:03 2009
@@ -0,0 +1,193 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+  
+  http://www.apache.org/licenses/LICENSE-2.0
+  
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <parent>
+    <groupId>org.apache.directory.server</groupId>
+    <artifactId>apacheds-parent</artifactId>
+    <version>1.5.5-SNAPSHOT</version>
+  </parent>
+  <artifactId>apacheds-osgi</artifactId>
+  <name>ApacheDS OSGi Bundle</name>
+  <packaging>bundle</packaging>
+
+  <properties>
+    <apache.directory.version>${pom.version}</apache.directory.version>
+    <xbean.version>3.5</xbean.version>
+    <commons-collections.version>3.2.1</commons-collections.version>
+  </properties>
+  
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.directory.server</groupId>
+      <artifactId>apacheds-server-jndi</artifactId>
+      <version>${pom.version}</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.directory.server</groupId>
+      <artifactId>apacheds-protocol-ntp</artifactId>
+      <version>${pom.version}</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.directory.server</groupId>
+      <artifactId>apacheds-protocol-dns</artifactId>
+      <version>${pom.version}</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.directory.server</groupId>
+      <artifactId>apacheds-protocol-dhcp</artifactId>
+      <version>${pom.version}</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.directory.server</groupId>
+      <artifactId>apacheds-protocol-kerberos</artifactId>
+      <version>${pom.version}</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.directory.server</groupId>
+      <artifactId>apacheds-interceptor-kerberos</artifactId>
+      <version>${pom.version}</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.felix</groupId>
+      <artifactId>org.osgi.core</artifactId>
+      <version>1.2.0</version>
+      <scope>provided</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.springframework</groupId>
+      <artifactId>spring-context</artifactId>
+      <exclusions>
+          <exclusion>
+              <groupId>commons-logging</groupId>
+              <artifactId>commons-logging</artifactId>
+          </exclusion>
+      </exclusions>
+    </dependency>
+      <dependency>
+          <groupId>org.springframework.osgi</groupId>
+          <artifactId>spring-osgi-extender</artifactId>
+          <version>1.2.0-rc1</version>
+      </dependency>
+      <dependency>
+          <groupId>org.springframework.osgi</groupId>
+          <artifactId>spring-osgi-core</artifactId>
+          <version>1.2.0-rc1</version>
+      </dependency>
+
+  </dependencies>
+
+  <!--This repo can be removed when Spring-DM 1.2 is released as it will then be in maven
central-->
+  <repositories>
+    <repository>
+      <id>spring-milestone</id>
+      <name>Spring Portfolio Milestone Repository</name>
+      <url>http://s3.amazonaws.com/maven.springframework.org/milestone</url>
+      <releases>
+        <enabled>true</enabled>
+      </releases>
+      <snapshots>
+        <enabled>false</enabled>
+      </snapshots>
+    </repository>
+  </repositories>
+    
+
+  <build>
+    <resources>
+      <resource>
+        <directory>src/main/filtered-resources</directory>
+        <filtering>true</filtering>
+      </resource>
+    </resources>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-resources-plugin</artifactId>
+        <executions>
+          <execution>
+            <phase>process-resources</phase>
+            <goals>
+              <goal>resources</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+      <!--
+      Attach the features.xml to this maven artifact.
+      This works with ServiceMix Kernel 1.2+ to install
+      all dependencies with two commands single command.
+      features/addUrl mvn:org.apache.directory.server/apacheds-osgi/${apache.directory.version}/xml/features
+      features/install apache-directory
+      -->
+      <plugin>
+          <groupId>org.codehaus.mojo</groupId>
+          <artifactId>build-helper-maven-plugin</artifactId>
+          <executions>
+              <execution>
+                  <id>attach-artifacts</id>
+                  <phase>package</phase>
+                  <goals>
+                      <goal>attach-artifact</goal>
+                  </goals>
+                  <configuration>
+                      <artifacts>
+                          <artifact>
+                              <file>target/classes/features.xml</file>
+                              <type>xml</type>
+                              <classifier>features</classifier>
+                          </artifact>
+                      </artifacts>
+                  </configuration>
+              </execution>
+          </executions>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.felix</groupId>
+        <artifactId>maven-bundle-plugin</artifactId>
+        <version>2.0.0</version>
+        <extensions>true</extensions>
+          <configuration>
+              <instructions>
+                  <Bundle-Name>Apache Directory Server</Bundle-Name>
+                  <Bundle-Description>Apache Directory Server - An LDAP v3 Server implementation</Bundle-Description>
+                  <Bundle-SymbolicName>org.apache.directory.server</Bundle-SymbolicName>
+                  <Export-Package>jdbm.*,
+                      org.apache.directory.*;version=${pom.version},
+                      '=META-INF.services.org.apache.xbean.spring.http.apacheds.org.config'
+                  </Export-Package>
+                  <Import-Package>
+                      org.apache.xbean*,
+                      org.apache.xbean.spring.context.v2,
+                      org.springframework.beans.factory.xml,
+                      org.springframework*,
+                      org.bouncycastle*,
+                      *
+                  </Import-Package>
+                  <_failok>true</_failok>
+              </instructions>
+              <unpackBundle>true</unpackBundle>
+          </configuration>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Added: directory/apacheds/trunk/osgi/src/main/filtered-resources/features.xml
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/osgi/src/main/filtered-resources/features.xml?rev=756112&view=auto
==============================================================================
--- directory/apacheds/trunk/osgi/src/main/filtered-resources/features.xml (added)
+++ directory/apacheds/trunk/osgi/src/main/filtered-resources/features.xml Thu Mar 19 17:58:03
2009
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+      Licensed to the Apache Software Foundation (ASF) under one or more
+      contributor license agreements.  See the NOTICE file distributed with
+      this work for additional information regarding copyright ownership.
+      The ASF licenses this file to You under the Apache License, Version 2.0
+      (the "License"); you may not use this file except in compliance with
+      the License.  You may obtain a copy of the License at
+
+         http///www.apache.org/licenses/LICENSE-2.0
+
+      Unless required by applicable law or agreed to in writing, software
+      distributed under the License is distributed on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+      See the License for the specific language governing permissions and
+      limitations under the License.
+-->
+
+
+    <!--
+    Install with:
+    features/addUrl mvn:org.apache.directory.server/apacheds-osgi/${apache.directory.version}/xml/features
+    -->
+
+<features>
+    <feature name="apache-directory" version="${apache.directory.version}">
+      <!--<bundle>mvn:org.slf4j/slf4j-api/1.5.6</bundle>-->
+      <!--<bundle>mvn:org.slf4j/slf4j-nop/1.5.6</bundle>-->
+      <bundle>mvn:http://repository.springsource.com/maven/bundles/external!org.bouncycastle/com.springsource.org.bouncycastle.jce/1.39.0</bundle>
+      <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-lang/2.4_2-SNAPSHOT</bundle>
+      <bundle>mvn:commons-collections/commons-collections/${commons-collections.version}</bundle>
+      <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.antlr/3.0.1_2-SNAPSHOT</bundle>
+      <bundle>mvn:org.apache.mina/mina-core/2.0.0-RC1-SNAPSHOT</bundle>
+      <bundle>mvn:org.apache.xbean/xbean-spring/${xbean.version}</bundle>
+      <bundle>mvn:org.apache.directory.server/apacheds-osgi/${apache.directory.version}</bundle>
+    </feature>
+</features>

Added: directory/apacheds/trunk/osgi/src/main/resources/META-INF/services/org/apache/xbean/spring/http/apacheds.org/config/core
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/osgi/src/main/resources/META-INF/services/org/apache/xbean/spring/http/apacheds.org/config/core?rev=756112&view=auto
==============================================================================
--- directory/apacheds/trunk/osgi/src/main/resources/META-INF/services/org/apache/xbean/spring/http/apacheds.org/config/core
(added)
+++ directory/apacheds/trunk/osgi/src/main/resources/META-INF/services/org/apache/xbean/spring/http/apacheds.org/config/core
Thu Mar 19 17:58:03 2009
@@ -0,0 +1,106 @@
+# NOTE: this file is autogenerated by Apache XBean
+
+# beans
+aciAuthorizationInterceptor = org.apache.directory.server.core.authz.AciAuthorizationInterceptor
+
+apacheDS = org.apache.directory.server.configuration.ApacheDS
+apacheDS.initMethod = startup
+apacheDS.destroyMethod = shutdown
+
+org.apache.directory.server.configuration.ApacheDS(org.apache.directory.server.core.DirectoryService,org.apache.directory.server.ldap.LdapService,org.apache.directory.server.ldap.LdapService).parameterNames
= directoryService ldapService ldapsService
+
+authenticationInterceptor = org.apache.directory.server.core.authn.AuthenticationInterceptor
+
+certGenerationRequestHandler = org.apache.directory.server.ldap.handlers.extended.CertGenerationRequestHandler
+
+changeLogInterceptor = org.apache.directory.server.core.changelog.ChangeLogInterceptor
+
+changeLogStore = org.apache.directory.server.core.changelog.ChangeLogStore
+
+changePasswordServer = org.apache.directory.server.changepw.ChangePasswordServer
+
+collectiveAttributeInterceptor = org.apache.directory.server.core.collective.CollectiveAttributeInterceptor
+
+cramMd5MechanismHandler = org.apache.directory.server.ldap.handlers.bind.cramMD5.CramMd5MechanismHandler
+
+defaultAuthorizationInterceptor = org.apache.directory.server.core.authz.DefaultAuthorizationInterceptor
+
+defaultDirectoryService = org.apache.directory.server.core.DefaultDirectoryService
+
+digestMd5MechanismHandler = org.apache.directory.server.ldap.handlers.bind.digestMD5.DigestMd5MechanismHandler
+
+dnsServer = org.apache.directory.server.dns.DnsServer
+
+eventInterceptor = org.apache.directory.server.core.event.EventInterceptor
+
+exceptionInterceptor = org.apache.directory.server.core.exception.ExceptionInterceptor
+
+extendedOperationHandler = org.apache.directory.server.ldap.ExtendedOperationHandler
+
+gracefulShutdownHandler = org.apache.directory.server.ldap.handlers.extended.GracefulShutdownHandler
+
+gssapiMechanismHandler = org.apache.directory.server.ldap.handlers.bind.gssapi.GssapiMechanismHandler
+
+jdbmIndex = org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmIndex
+org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmIndex(java.lang.String).parameterNames
= attributeId
+
+jdbmPartition = org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition
+
+kdcServer = org.apache.directory.server.kerberos.kdc.KdcServer
+
+keyDerivationInterceptor = org.apache.directory.server.core.kerberos.KeyDerivationInterceptor
+
+launchDiagnosticUiHandler = org.apache.directory.server.ldap.handlers.extended.LaunchDiagnosticUiHandler
+
+ldapService = org.apache.directory.server.ldap.LdapService
+ldapService.saslMechanismHandlers.map.keyName = mech-name
+ldapService.saslMechanismHandlers.map.flat = true
+ldapService.saslMechanismHandlers.map.dups = replace
+
+memoryChangeLogStore = org.apache.directory.server.core.changelog.MemoryChangeLogStore
+
+normalizationInterceptor = org.apache.directory.server.core.normalization.NormalizationInterceptor
+
+ntlmMechanismHandler = org.apache.directory.server.ldap.handlers.bind.ntlm.NtlmMechanismHandler
+
+ntpServer = org.apache.directory.server.ntp.NtpServer
+
+operationalAttributeInterceptor = org.apache.directory.server.core.operational.OperationalAttributeInterceptor
+
+passwordPolicyInterceptor = org.apache.directory.server.core.kerberos.PasswordPolicyInterceptor
+
+plainMechanismHandler = org.apache.directory.server.ldap.handlers.bind.plain.PlainMechanismHandler
+
+referralInterceptor = org.apache.directory.server.core.referral.ReferralInterceptor
+
+replicationConfiguration = org.apache.directory.mitosis.configuration.ReplicationConfiguration
+
+replicationInterceptor = org.apache.directory.mitosis.service.ReplicationInterceptor
+
+schemaInterceptor = org.apache.directory.server.core.schema.SchemaInterceptor
+
+simpleMechanismHandler = org.apache.directory.server.ldap.handlers.bind.SimpleMechanismHandler
+
+standardThreadPool = org.apache.directory.server.protocol.shared.StandardThreadPool
+standardThreadPool.destroyMethod = stop
+org.apache.directory.server.protocol.shared.StandardThreadPool(int).parameterNames = maxThreads
+
+startTlsHandler = org.apache.directory.server.ldap.handlers.extended.StartTlsHandler
+
+storedProcedureExtendedOperationHandler = org.apache.directory.server.ldap.handlers.extended.StoredProcedureExtendedOperationHandler
+
+subentryInterceptor = org.apache.directory.server.core.subtree.SubentryInterceptor
+
+tcpTransport = org.apache.directory.server.protocol.shared.transport.TcpTransport
+org.apache.directory.server.protocol.shared.transport.TcpTransport(int).parameterNames =
tcpPort
+org.apache.directory.server.protocol.shared.transport.TcpTransport(int,int).parameterNames
= tcpPort nbThreads
+org.apache.directory.server.protocol.shared.transport.TcpTransport(java.lang.String,int).parameterNames
= address port
+org.apache.directory.server.protocol.shared.transport.TcpTransport(int,int,int).parameterNames
= tcpPort nbThreads backLog
+org.apache.directory.server.protocol.shared.transport.TcpTransport(java.lang.String,int,int,int).parameterNames
= address tcpPort nbThreads backLog
+
+triggerInterceptor = org.apache.directory.server.core.trigger.TriggerInterceptor
+
+udpTransport = org.apache.directory.server.protocol.shared.transport.UdpTransport
+org.apache.directory.server.protocol.shared.transport.UdpTransport(int).parameterNames =
udpPort
+org.apache.directory.server.protocol.shared.transport.UdpTransport(java.lang.String,int).parameterNames
= address udpPort
+

Added: directory/apacheds/trunk/osgi/src/main/resources/META-INF/spring.handlers
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/osgi/src/main/resources/META-INF/spring.handlers?rev=756112&view=auto
==============================================================================
--- directory/apacheds/trunk/osgi/src/main/resources/META-INF/spring.handlers (added)
+++ directory/apacheds/trunk/osgi/src/main/resources/META-INF/spring.handlers Thu Mar 19 17:58:03
2009
@@ -0,0 +1 @@
+http\://apacheds.org/config/core=org.apache.xbean.spring.context.v2.XBeanNamespaceHandler

Added: directory/apacheds/trunk/osgi/src/main/resources/META-INF/spring.schemas
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/osgi/src/main/resources/META-INF/spring.schemas?rev=756112&view=auto
==============================================================================
--- directory/apacheds/trunk/osgi/src/main/resources/META-INF/spring.schemas (added)
+++ directory/apacheds/trunk/osgi/src/main/resources/META-INF/spring.schemas Thu Mar 19 17:58:03
2009
@@ -0,0 +1,2 @@
+http\://apacheds.org/config/core=apacheds.xsd
+http\://apacheds.org/config/core/apacheds.xsd=apacheds.xsd

Added: directory/apacheds/trunk/osgi/src/main/resources/apacheds.xsd
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/osgi/src/main/resources/apacheds.xsd?rev=756112&view=auto
==============================================================================
--- directory/apacheds/trunk/osgi/src/main/resources/apacheds.xsd (added)
+++ directory/apacheds/trunk/osgi/src/main/resources/apacheds.xsd Thu Mar 19 17:58:03 2009
@@ -0,0 +1,245 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema' elementFormDefault='qualified'
+           targetNamespace='http://apacheds.org/config/core'
+           xmlns:directory='http://apacheds.org/config/core'
+        xmlns:spring='http://www.springframework.org/schema/beans'>
+<!--
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xmlns:s="http://www.springframework.org/schema/beans"
+-->
+
+  <xs:import namespace="http://www.springframework.org/schema/beans" />
+  <!--<xs:import namespace="http://www.springframework.org/schema/beans" schemaLocation="s.xsd"/>-->
+  <xs:element name="defaultDirectoryService">
+    <xs:complexType>
+      <xs:sequence>
+        <xs:element ref="directory:systemPartition"/>
+        <xs:element ref="directory:partitions"/>
+        <xs:element ref="directory:interceptors"/>
+      </xs:sequence>
+      <xs:attribute name="accessControlEnabled" use="required" type="xs:boolean"/>
+      <xs:attribute name="allowAnonymousAccess" use="required" type="xs:boolean"/>
+      <xs:attribute name="denormalizeOpAttrsEnabled" use="required" type="xs:boolean"/>
+      <xs:attribute name="id" use="required" type="xs:NCName"/>
+      <xs:attribute name="instanceId" use="required" type="xs:NCName"/>
+      <xs:attribute name="maxPDUSize" use="required" type="xs:integer"/>
+      <xs:attribute name="replicaId" use="required" type="xs:integer"/>
+      <xs:attribute name="workingDirectory" use="required" type="xs:NCName"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="systemPartition" type="directory:directory.jdbmPartition"/>
+  <xs:element name="partitions" type="directory:directory.jdbmPartition"/>
+  <xs:element name="interceptors">
+    <xs:complexType>
+      <xs:sequence>
+        <xs:element ref="directory:normalizationInterceptor"/>
+        <xs:element ref="directory:authenticationInterceptor"/>
+        <xs:element ref="directory:referralInterceptor"/>
+        <xs:element ref="directory:aciAuthorizationInterceptor"/>
+        <xs:element ref="directory:defaultAuthorizationInterceptor"/>
+        <xs:element ref="directory:exceptionInterceptor"/>
+        <xs:element ref="directory:operationalAttributeInterceptor"/>
+        <xs:element ref="directory:schemaInterceptor"/>
+        <xs:element ref="directory:subentryInterceptor"/>
+        <xs:element ref="directory:collectiveAttributeInterceptor"/>
+        <xs:element ref="directory:eventInterceptor"/>
+        <xs:element ref="directory:triggerInterceptor"/>
+      </xs:sequence>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="normalizationInterceptor">
+    <xs:complexType/>
+  </xs:element>
+  <xs:element name="authenticationInterceptor">
+    <xs:complexType/>
+  </xs:element>
+  <xs:element name="referralInterceptor">
+    <xs:complexType/>
+  </xs:element>
+  <xs:element name="aciAuthorizationInterceptor">
+    <xs:complexType/>
+  </xs:element>
+  <xs:element name="defaultAuthorizationInterceptor">
+    <xs:complexType/>
+  </xs:element>
+  <xs:element name="exceptionInterceptor">
+    <xs:complexType/>
+  </xs:element>
+  <xs:element name="operationalAttributeInterceptor">
+    <xs:complexType/>
+  </xs:element>
+  <xs:element name="schemaInterceptor">
+    <xs:complexType/>
+  </xs:element>
+  <xs:element name="subentryInterceptor">
+    <xs:complexType/>
+  </xs:element>
+  <xs:element name="collectiveAttributeInterceptor">
+    <xs:complexType/>
+  </xs:element>
+  <xs:element name="eventInterceptor">
+    <xs:complexType/>
+  </xs:element>
+  <xs:element name="triggerInterceptor">
+    <xs:complexType/>
+  </xs:element>
+  <xs:element name="ntpServer">
+    <xs:complexType>
+      <xs:sequence>
+        <xs:element ref="directory:tcpTransport"/>
+        <xs:element ref="directory:udpTransport"/>
+      </xs:sequence>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="apacheDS">
+    <xs:complexType>
+      <xs:sequence>
+        <xs:element ref="directory:directoryService"/>
+        <xs:element ref="directory:ldapService"/>
+        <xs:element ref="directory:ldapsService"/>
+      </xs:sequence>
+      <xs:attribute name="allowAnonymousAccess" use="required" type="xs:boolean"/>
+      <xs:attribute name="id" use="required" type="xs:NCName"/>
+      <xs:attribute name="synchPeriodMillis" use="required" type="xs:integer"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="ldapsService" type="xs:string"/>
+  <xs:complexType name="directory.jdbmPartition">
+    <xs:sequence>
+      <xs:element ref="directory:jdbmPartition"/>
+    </xs:sequence>
+  </xs:complexType>
+  <xs:element name="jdbmPartition">
+    <xs:complexType>
+      <xs:sequence>
+        <xs:element ref="directory:indexedAttributes"/>
+      </xs:sequence>
+      <xs:attribute name="cacheSize" use="required" type="xs:integer"/>
+      <xs:attribute name="id" use="required" type="xs:NCName"/>
+      <xs:attribute name="optimizerEnabled" use="required" type="xs:boolean"/>
+      <xs:attribute name="suffix" use="required"/>
+      <xs:attribute name="syncOnWrite" use="required" type="xs:boolean"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="indexedAttributes">
+    <xs:complexType>
+      <xs:sequence>
+        <xs:element maxOccurs="unbounded" ref="directory:jdbmIndex"/>
+      </xs:sequence>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="jdbmIndex">
+    <xs:complexType>
+      <xs:attribute name="attributeId" use="required" type="xs:NMTOKEN"/>
+      <xs:attribute name="cacheSize" use="required" type="xs:integer"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="tcpTransport">
+    <xs:complexType>
+      <xs:sequence>
+        <xs:element minOccurs="0" ref="directory:tcpTransport"/>
+      </xs:sequence>
+      <xs:attribute name="backLog" type="xs:integer"/>
+      <xs:attribute name="nbThreads" type="xs:integer"/>
+      <xs:attribute name="port" type="xs:integer"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="udpTransport">
+    <xs:complexType>
+      <xs:sequence>
+        <xs:element minOccurs="0" ref="directory:udpTransport"/>
+      </xs:sequence>
+      <xs:attribute name="nbThreads" type="xs:integer"/>
+      <xs:attribute name="port" type="xs:integer"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="ldapService">
+    <xs:complexType mixed="true">
+      <xs:choice minOccurs="0" maxOccurs="unbounded">
+        <xs:element ref="directory:directoryService"/>
+        <xs:element ref="directory:tcpTransport"/>
+        <xs:element ref="directory:extendedOperationHandlers"/>
+        <xs:element ref="directory:saslMechanismHandlers"/>
+        <xs:element ref="directory:saslQop"/>
+        <xs:element ref="directory:saslRealms"/>
+      </xs:choice>
+      <xs:attribute name="allowAnonymousAccess" type="xs:boolean"/>
+      <xs:attribute name="enableLdaps" type="xs:boolean"/>
+      <xs:attribute name="enabled" type="xs:boolean"/>
+      <xs:attribute name="id" type="xs:NCName"/>
+      <xs:attribute name="maxSizeLimit" type="xs:integer"/>
+      <xs:attribute name="maxTimeLimit" type="xs:integer"/>
+      <xs:attribute name="saslHost" type="xs:NCName"/>
+      <xs:attribute name="saslPrincipal"/>
+      <xs:attribute name="searchBaseDn"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="extendedOperationHandlers">
+    <xs:complexType>
+      <xs:sequence>
+        <xs:element ref="directory:startTlsHandler"/>
+        <xs:element ref="directory:gracefulShutdownHandler"/>
+        <xs:element ref="directory:launchDiagnosticUiHandler"/>
+      </xs:sequence>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="startTlsHandler">
+    <xs:complexType/>
+  </xs:element>
+  <xs:element name="gracefulShutdownHandler">
+    <xs:complexType/>
+  </xs:element>
+  <xs:element name="launchDiagnosticUiHandler">
+    <xs:complexType/>
+  </xs:element>
+  <xs:element name="saslMechanismHandlers">
+    <xs:complexType>
+      <xs:sequence>
+        <xs:element ref="directory:simpleMechanismHandler"/>
+        <xs:element ref="directory:cramMd5MechanismHandler"/>
+        <xs:element ref="directory:digestMd5MechanismHandler"/>
+        <xs:element ref="directory:gssapiMechanismHandler"/>
+        <xs:element maxOccurs="unbounded" ref="directory:ntlmMechanismHandler"/>
+      </xs:sequence>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="simpleMechanismHandler">
+    <xs:complexType>
+      <xs:attribute name="mech-name" use="required" type="xs:NCName"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="cramMd5MechanismHandler">
+    <xs:complexType>
+      <xs:attribute name="mech-name" use="required" type="xs:NCName"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="digestMd5MechanismHandler">
+    <xs:complexType>
+      <xs:attribute name="mech-name" use="required" type="xs:NCName"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="gssapiMechanismHandler">
+    <xs:complexType>
+      <xs:attribute name="mech-name" use="required" type="xs:NCName"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="ntlmMechanismHandler">
+    <xs:complexType>
+      <xs:attribute name="mech-name" use="required" type="xs:NCName"/>
+      <xs:attribute name="ntlmProviderFqcn" use="required" type="xs:NCName"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="saslQop">
+    <xs:complexType>
+        <xs:sequence minOccurs='0' maxOccurs='unbounded'><xs:element ref="spring:value"
/></xs:sequence>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="saslRealms">
+    <xs:complexType>
+      <xs:sequence>
+          <xs:sequence minOccurs='0' maxOccurs='unbounded'><xs:element ref="spring:value"
/></xs:sequence>
+      </xs:sequence>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="directoryService" type="xs:string"/>
+</xs:schema>

Added: directory/apacheds/trunk/osgi/src/main/resources/example/server.xml
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/osgi/src/main/resources/example/server.xml?rev=756112&view=auto
==============================================================================
--- directory/apacheds/trunk/osgi/src/main/resources/example/server.xml (added)
+++ directory/apacheds/trunk/osgi/src/main/resources/example/server.xml Thu Mar 19 17:58:03
2009
@@ -0,0 +1,253 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
+
+<spring:beans xmlns="http://apacheds.org/config/core"
+       xmlns:spring="http://www.springframework.org/schema/beans"
+       xmlns:s="http://www.springframework.org/schema/beans"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
+	http://apacheds.org/config/core http://apacheds.org/config/core/apacheds.xsd">
+
+  <defaultDirectoryService id="directoryService" instanceId="default"
+                           replicaId="1"
+                           workingDirectory="example.com"
+                           allowAnonymousAccess="true"
+                           accessControlEnabled="false"
+                           denormalizeOpAttrsEnabled="false"
+                           maxPDUSize="2000000">
+    <systemPartition>
+      <!-- use the following partitionConfiguration to override defaults for -->
+      <!-- the system partition                                              -->
+      <jdbmPartition id="system" cacheSize="100" suffix="ou=system" optimizerEnabled="true"
syncOnWrite="true">
+        <indexedAttributes>
+          <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.1" cacheSize="100"/>
+          <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.2" cacheSize="100"/>
+          <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.3" cacheSize="100"/>
+          <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.4" cacheSize="100"/>
+          <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.5" cacheSize="10"/>
+          <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.6" cacheSize="10"/>
+          <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.7" cacheSize="10"/>
+          <jdbmIndex attributeId="ou" cacheSize="100"/>
+          <jdbmIndex attributeId="uid" cacheSize="100"/>
+          <jdbmIndex attributeId="objectClass" cacheSize="100"/>
+        </indexedAttributes>
+      </jdbmPartition>
+    </systemPartition>
+
+    <partitions>
+      <!-- NOTE: when specifying new partitions you need not include those   -->
+      <!-- attributes below with OID's which are the system indices, if left -->
+      <!-- out they will be automatically configured for you with defaults.  -->
+      <jdbmPartition id="example" cacheSize="100" suffix="dc=example,dc=com" optimizerEnabled="true"
+                     syncOnWrite="true">
+        <indexedAttributes>
+          <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.1" cacheSize="100"/>
+          <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.2" cacheSize="100"/>
+          <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.3" cacheSize="100"/>
+          <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.4" cacheSize="100"/>
+          <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.5" cacheSize="10"/>
+          <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.6" cacheSize="10"/>
+          <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.7" cacheSize="10"/>
+          <jdbmIndex attributeId="dc" cacheSize="100"/>
+          <jdbmIndex attributeId="ou" cacheSize="100"/>
+          <jdbmIndex attributeId="krb5PrincipalName" cacheSize="100"/>
+          <jdbmIndex attributeId="uid" cacheSize="100"/>
+          <jdbmIndex attributeId="objectClass" cacheSize="100"/>
+        </indexedAttributes>
+      </jdbmPartition>
+    </partitions>
+
+    <interceptors>
+      <normalizationInterceptor/>
+      <authenticationInterceptor/>
+      <referralInterceptor/>
+      <aciAuthorizationInterceptor/>
+      <defaultAuthorizationInterceptor/>
+      <exceptionInterceptor/>
+      <operationalAttributeInterceptor/>
+
+      <!-- Uncomment to enable the password policy interceptor
+      <passwordPolicyInterceptor/>
+      <keyDerivationInterceptor/>
+      -->
+
+      <schemaInterceptor/>
+      <subentryInterceptor/>
+      <collectiveAttributeInterceptor/>
+      <eventInterceptor/>
+      <triggerInterceptor/>
+
+      <!-- Uncomment to enable replication interceptor
+      <replicationInterceptor>
+        <configuration>
+          <replicationConfiguration serverPort="10390" peerReplicas="instance_b@localhost:10392">
+            <replicaId>
+              <replicaId id="instance_a"/>
+            </replicaId>
+          </replicationConfiguration>
+        </configuration>
+      </replicationInterceptor>
+      -->
+    </interceptors>
+  </defaultDirectoryService>
+
+  <!-- 
+  +============================================================+
+  | ChangePassword server configuration                        |
+  +============================================================+
+  -->
+  <!--  missing  atou=users,dc=example,dc=com
+  <changePasswordServer>
+    <tcpTransport>
+      <tcpTransport port="60464" nbThreads="2" backLog="50"/>
+    </tcpTransport>
+    <udpTransport>
+      <udpTransport port="60464" nbThreads="2" backLog="50"/>
+    </udpTransport>
+    <directoryService>#directoryService</directoryService>
+  </changePasswordServer>
+-->
+
+  <!-- 
+  +============================================================+
+  | Kerberos server configuration                              |
+  +============================================================+
+  -->
+  <!--  missing atou=users,dc=example,dc=com
+  <kdcServer>
+    <tcpTransport>
+      <tcpTransport port="60088" nbThreads="4" backLog="50"/>
+    </tcpTransport>
+    <udpTransport>
+      <udpTransport port="60088" nbThreads="4" backLog="50"/>
+    </udpTransport>
+    <directoryService>#directoryService</directoryService>
+  </kdcServer>
+-->
+
+  <!-- 
+  +============================================================+
+  | NtpServer configuration                                    |
+  +============================================================+
+  -->
+  <ntpServer>
+    <tcpTransport>
+      <tcpTransport port="60123"/>
+    </tcpTransport>
+    <udpTransport>
+      <udpTransport port="60123" nbThreads="1"/>
+    </udpTransport>
+  </ntpServer>
+
+  <!-- 
+  +============================================================+
+  | DnsServer configuration                                    |
+  +============================================================+
+  -->
+  
+  <!--  missing atou=users,dc=example,dc=com
+  <dnsServer>
+    <tcpTransport>
+      <tcpTransport port="8053"/>
+    </tcpTransport>
+    <udpTransport>
+      <udpTransport port="8053"/>
+    </udpTransport>
+    <directoryService>#directoryService</directoryService>
+  </dnsServer>
+-->
+
+  <!-- 
+  +============================================================+
+  | LDAPS Service configuration                                 |
+  +============================================================+
+  -->
+  <ldapService id="ldapsService"
+              enabled="true"
+              enableLdaps="true">
+    <tcpTransport>
+      <tcpTransport port="10686"/>
+    </tcpTransport>
+    <directoryService>#directoryService</directoryService>
+  </ldapService>
+
+  <!-- 
+  +============================================================+
+  | LDAP Service configuration                                 |
+  +============================================================+
+  -->
+  <ldapService id="ldapService"
+              allowAnonymousAccess="false"
+              saslHost="ldap.example.com"
+              saslPrincipal="ldap/ldap.example.com@EXAMPLE.COM"
+              searchBaseDn="ou=users,ou=system"
+              maxTimeLimit="15000"
+              maxSizeLimit="1000">
+    <tcpTransport>
+      <tcpTransport port="10389" nbThreads="8" backLog="50"/>
+    </tcpTransport>
+
+    <directoryService>#directoryService</directoryService>
+
+    <!-- The list of supported authentication mechanisms.                   -->
+    <saslMechanismHandlers>
+      <simpleMechanismHandler mech-name="SIMPLE"/>
+      <cramMd5MechanismHandler mech-name="CRAM-MD5" />
+      <digestMd5MechanismHandler mech-name="DIGEST-MD5" />
+      <gssapiMechanismHandler mech-name="GSSAPI" />
+      <ntlmMechanismHandler mech-name="NTLM" ntlmProviderFqcn="com.foo.Bar"/>
+      <ntlmMechanismHandler mech-name="GSS-SPNEGO" ntlmProviderFqcn="com.foo.Bar"/>
+    </saslMechanismHandlers>
+
+    <!-- The desired quality-of-protection, used by DIGEST-MD5 and GSSAPI.  -->
+    <saslQop>
+      <s:value>auth</s:value>
+      <s:value>auth-int</s:value>
+      <s:value>auth-conf</s:value>
+    </saslQop>
+
+    <!-- The realms serviced by this SASL host, used by DIGEST-MD5 and GSSAPI. -->
+    <saslRealms>
+      <s:value>example.com</s:value>
+      <s:value>apache.org</s:value>
+    </saslRealms>
+
+    <!-- the collection of extended operation handlers to install           -->
+    <extendedOperationHandlers>
+      <startTlsHandler/>
+      <gracefulShutdownHandler/>
+      <launchDiagnosticUiHandler/>
+      <!-- The Stored Procedure Extended Operation is not stable yet and it may cause
security risks.-->
+      <!--storedProcedureExtendedOperationHandler/-->
+    </extendedOperationHandlers>
+  </ldapService>
+
+
+  <apacheDS id="apacheDS"
+            synchPeriodMillis="15000"
+            allowAnonymousAccess="false">
+
+    <directoryService>#directoryService</directoryService>
+    <ldapService>#ldapService</ldapService>
+    <ldapsService>#ldapsService</ldapsService>
+  </apacheDS>
+</spring:beans>



Mime
View raw message