directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r611170 - in /directory/apacheds/branches/bigbang: core-integ/src/test/java/org/apache/directory/server/core/jndi/ core/src/main/java/org/apache/directory/server/core/partition/ server-unit/src/test/java/org/apache/directory/server/
Date Fri, 11 Jan 2008 13:24:30 GMT
Author: elecharny
Date: Fri Jan 11 05:24:27 2008
New Revision: 611170

URL: http://svn.apache.org/viewvc?rev=611170&view=rev
Log:
Cleaned some useless methods (setContextEntry(Attributes) and such methods)

Modified:
    directory/apacheds/branches/bigbang/core-integ/src/test/java/org/apache/directory/server/core/jndi/MixedCaseITest.java
    directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java
    directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/partition/Partition.java
    directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/partition/PartitionNexusProxy.java
    directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/KeyDerivationServiceITest.java
    directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/MiscTest.java
    directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/PasswordPolicyServiceITest.java
    directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/SaslBindITest.java

Modified: directory/apacheds/branches/bigbang/core-integ/src/test/java/org/apache/directory/server/core/jndi/MixedCaseITest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/core-integ/src/test/java/org/apache/directory/server/core/jndi/MixedCaseITest.java?rev=611170&r1=611169&r2=611170&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/core-integ/src/test/java/org/apache/directory/server/core/jndi/MixedCaseITest.java
(original)
+++ directory/apacheds/branches/bigbang/core-integ/src/test/java/org/apache/directory/server/core/jndi/MixedCaseITest.java
Fri Jan 11 05:24:27 2008
@@ -22,6 +22,8 @@
 
 import org.apache.directory.server.core.DefaultDirectoryService;
 import org.apache.directory.server.core.DirectoryService;
+import org.apache.directory.server.core.entry.DefaultServerEntry;
+import org.apache.directory.server.core.entry.ServerEntry;
 import org.apache.directory.server.core.integ.CiRunner;
 import org.apache.directory.server.core.integ.DirectoryServiceFactory;
 import static org.apache.directory.server.core.integ.IntegrationUtils.getContext;
@@ -36,6 +38,7 @@
 import org.apache.directory.shared.ldap.message.AttributeImpl;
 import org.apache.directory.shared.ldap.message.AttributesImpl;
 import org.apache.directory.shared.ldap.message.ModificationItemImpl;
+import org.apache.directory.shared.ldap.name.LdapDN;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
@@ -70,19 +73,19 @@
 {
     public static DirectoryService service;
 
-    private static final String SUFFIX = "dc=Apache,dc=Org";
+    private static final String SUFFIX_DN = "dc=Apache,dc=Org";
 
 
     public static class MyFactory implements DirectoryServiceFactory
     {
-        public DirectoryService newInstance() 
+        public DirectoryService newInstance() throws NamingException
         {
             DirectoryService service = new DefaultDirectoryService();
             service.getChangeLog().setEnabled( true );
 
             JdbmPartition partition = new JdbmPartition();
             partition.setId( "apache" );
-            partition.setSuffix( SUFFIX );
+            partition.setSuffix( SUFFIX_DN );
 
             HashSet<Index> indexedAttributes = new HashSet<Index>();
             indexedAttributes.add( new JdbmIndex( "objectClass" ) );
@@ -90,15 +93,11 @@
             indexedAttributes.add( new JdbmIndex( "uid" ) );
             partition.setIndexedAttributes( indexedAttributes );
 
-            Attributes attrs = new AttributesImpl( true );
-            Attribute objectClass = new AttributeImpl( "objectClass" );
-            objectClass.add( "top" );
-            objectClass.add( "domain" );
-            objectClass.add( "extensibleObject" );
-            attrs.put( objectClass );
-            attrs.put( "dc", "Apache" );
+            ServerEntry serverEntry = new DefaultServerEntry( service.getRegistries(), new
LdapDN( SUFFIX_DN ) );
+            serverEntry.put( "objectClass", "top", "domain", "extensibleObject" );
+            serverEntry.put( "dc", "Apache" );
 
-            partition.setContextEntry( attrs );
+            partition.setContextEntry( serverEntry );
 
             Set<Partition> partitions = new HashSet<Partition>();
             partitions.add( partition );
@@ -112,7 +111,7 @@
     @Test
     public void testSearch() throws NamingException
     {
-        LdapContext ctxRoot = getContext( "uid=admin,ou=system", service, SUFFIX );
+        LdapContext ctxRoot = getContext( "uid=admin,ou=system", service, SUFFIX_DN );
 
         SearchControls sc = new SearchControls();
         sc.setSearchScope( SearchControls.SUBTREE_SCOPE );
@@ -121,7 +120,7 @@
         assertTrue( "Search should return at least one entry.", ne.hasMore() );
 
         SearchResult sr = ne.next();
-        assertEquals( "The entry returned should be the root entry.", SUFFIX, sr.getName()
);
+        assertEquals( "The entry returned should be the root entry.", SUFFIX_DN, sr.getName()
);
         assertFalse( "Search should return no more entries.", ne.hasMore() );
     }
 
@@ -129,7 +128,7 @@
     @Test
     public void testAdd() throws NamingException
     {
-        LdapContext ctxRoot = getContext( "uid=admin,ou=system", service, SUFFIX );
+        LdapContext ctxRoot = getContext( "uid=admin,ou=system", service, SUFFIX_DN );
 
         String dn = "ou=Test";
 
@@ -150,7 +149,7 @@
         assertTrue( "Search should return at least one entry.", ne.hasMore() );
 
         SearchResult sr = ne.next();
-        assertEquals( "The entry returned should be the entry added earlier.", dn + "," +
SUFFIX, sr.getName() );
+        assertEquals( "The entry returned should be the entry added earlier.", dn + "," +
SUFFIX_DN, sr.getName() );
         assertFalse( "Search should return no more entries.", ne.hasMore() );
     }
 
@@ -158,7 +157,7 @@
     @Test
     public void testModify() throws NamingException
     {
-        LdapContext ctxRoot = getContext( "uid=admin,ou=system", service, SUFFIX );
+        LdapContext ctxRoot = getContext( "uid=admin,ou=system", service, SUFFIX_DN );
 
         String dn = "ou=Test";
         String description = "New Value";
@@ -186,7 +185,7 @@
         assertTrue( "Search should return at least one entry.", ne.hasMore() );
 
         SearchResult sr = ( SearchResult ) ne.next();
-        assertEquals( "The entry returned should be the entry added earlier.", dn + "," +
SUFFIX, sr.getName() );
+        assertEquals( "The entry returned should be the entry added earlier.", dn + "," +
SUFFIX_DN, sr.getName() );
 
         attributes = sr.getAttributes();
         attribute = attributes.get( "description" );
@@ -199,7 +198,7 @@
     @Test
     public void testDelete() throws NamingException
     {
-        LdapContext ctxRoot = getContext( "uid=admin,ou=system", service, SUFFIX );
+        LdapContext ctxRoot = getContext( "uid=admin,ou=system", service, SUFFIX_DN );
 
         String dn = "ou=Test";
 

Modified: directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java?rev=611170&r1=611169&r2=611170&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java
(original)
+++ directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java
Fri Jan 11 05:24:27 2008
@@ -267,15 +267,6 @@
         throw new UnsupportedOperationException( "Setting the RootDSE is not allowed." );
     }
 
-    public void setContextEntry( Attributes rootEntry )
-    {
-        throw new UnsupportedOperationException( "Setting the RootDSE is not allowed." );
-    }
-
-    public void setContextEntry( String rootEntry )
-    {
-        throw new UnsupportedOperationException( "Setting the RootDSE is not allowed." );
-    }
 
     /**
      * Always returns the empty String "".

Modified: directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/partition/Partition.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/partition/Partition.java?rev=611170&r1=611169&r2=611170&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/partition/Partition.java
(original)
+++ directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/partition/Partition.java
Fri Jan 11 05:24:27 2008
@@ -59,8 +59,10 @@
 {
     /** The name of reserved system partition */
     String SYSTEM_PARTITION_NAME = "system";
+    
     /** default partition implementation class */
     String DEFAULT_PARTITION_IMPLEMENTATION = "org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition";
+    
     /** the default entry cache size to use for a partition */
     int DEFAULT_CACHE_SIZE = 10000;
     
@@ -107,12 +109,9 @@
      *
      * @param contextEntry the entry for the suffix of this Partition.
      */
-    void setContextEntry( Attributes contextEntry );
-
     void setContextEntry( ServerEntry contextEntry );
 
-    void setContextEntry( String contextEntry );
-
+    
     /**
      * Gets the non-normalized suffix for this Partition as a string.
      *

Modified: directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/partition/PartitionNexusProxy.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/partition/PartitionNexusProxy.java?rev=611170&r1=611169&r2=611170&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/partition/PartitionNexusProxy.java
(original)
+++ directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/partition/PartitionNexusProxy.java
Fri Jan 11 05:24:27 2008
@@ -241,18 +241,6 @@
     }
 
 
-    public void setContextEntry( Attributes contextEntry )
-    {
-        throw new UnsupportedOperationException( "Not supported by PartitionNexusProxy" );
-    }
-
-
-    public void setContextEntry( String contextEntry )
-    {
-        throw new UnsupportedOperationException( "Not supported by PartitionNexusProxy" );
-    }
-
-
     public String getSuffix()
     {
         throw new UnsupportedOperationException( "Not supported by PartitionNexusProxy" );

Modified: directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/KeyDerivationServiceITest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/KeyDerivationServiceITest.java?rev=611170&r1=611169&r2=611170&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/KeyDerivationServiceITest.java
(original)
+++ directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/KeyDerivationServiceITest.java
Fri Jan 11 05:24:27 2008
@@ -20,6 +20,8 @@
 package org.apache.directory.server;
 
 
+import org.apache.directory.server.core.entry.DefaultServerEntry;
+import org.apache.directory.server.core.entry.ServerEntry;
 import org.apache.directory.server.core.interceptor.Interceptor;
 import org.apache.directory.server.core.kerberos.KeyDerivationInterceptor;
 import org.apache.directory.server.core.partition.Partition;
@@ -34,6 +36,7 @@
 import org.apache.directory.shared.ldap.message.AttributeImpl;
 import org.apache.directory.shared.ldap.message.AttributesImpl;
 import org.apache.directory.shared.ldap.message.ModificationItemImpl;
+import org.apache.directory.shared.ldap.name.LdapDN;
 
 import javax.crypto.spec.DESKeySpec;
 import javax.naming.Context;
@@ -75,15 +78,9 @@
     public void setUp() throws Exception
     {
         super.setUp();
-//        setAllowAnonymousAccess( false );
 
         Attributes attrs;
 
-//        doDelete( directoryService.getWorkingDirectory() );
-//        port = AvailablePortFinder.getNextAvailable( 1024 );
-//        ldapServer.setIpPort( port );
-//        directoryService.setShutdownHookEnabled( false );
-
 
         setContexts( "uid=admin,ou=system", "secret" );
 
@@ -94,6 +91,7 @@
         // check if krb5kdc is disabled
         Attributes krb5kdcAttrs = schemaRoot.getAttributes( "cn=Krb5kdc" );
         boolean isKrb5KdcDisabled = false;
+        
         if ( krb5kdcAttrs.get( "m-disabled" ) != null )
         {
             isKrb5KdcDisabled = ( ( String ) krb5kdcAttrs.get( "m-disabled" ).get() ).equalsIgnoreCase(
"TRUE" );
@@ -117,9 +115,9 @@
         users.createSubcontext( "uid=hnelson", attrs );
     }
 
-    protected void configureDirectoryService()
+    protected void configureDirectoryService() throws NamingException
     {
-        Attributes attrs;
+        ServerEntry serverEntry;
         Set<Partition> partitions = new HashSet<Partition>();
 
         JdbmPartition partition;
@@ -135,15 +133,11 @@
         indexedAttrs.add( new JdbmIndex( "objectClass" ) );
         partition.setIndexedAttributes( indexedAttrs );
 
-        attrs = new AttributesImpl( true );
-        Attribute attr = new AttributeImpl( "objectClass" );
-        attr.add( "top" );
-        attr.add( "domain" );
-        attrs.put( attr );
-        attr = new AttributeImpl( "dc" );
-        attr.add( "example" );
-        attrs.put( attr );
-        partition.setContextEntry( attrs );
+        LdapDN exampleDn = new LdapDN( "dc=example,dc=com" );
+        serverEntry = new DefaultServerEntry( directoryService.getRegistries(), exampleDn
);
+        serverEntry.put( "objectClass", "top", "domain" );
+        serverEntry.put( "dc", "example" );
+        partition.setContextEntry( serverEntry );
 
         partitions.add( partition );
         directoryService.setPartitions( partitions );

Modified: directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/MiscTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/MiscTest.java?rev=611170&r1=611169&r2=611170&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/MiscTest.java
(original)
+++ directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/MiscTest.java
Fri Jan 11 05:24:27 2008
@@ -26,6 +26,7 @@
 
 import javax.naming.Context;
 import javax.naming.NamingEnumeration;
+import javax.naming.NamingException;
 import javax.naming.NoPermissionException;
 import javax.naming.OperationNotSupportedException;
 import javax.naming.directory.Attribute;
@@ -39,6 +40,9 @@
 import netscape.ldap.LDAPAttribute;
 import netscape.ldap.LDAPConnection;
 import netscape.ldap.LDAPException;
+
+import org.apache.directory.server.core.entry.DefaultServerEntry;
+import org.apache.directory.server.core.entry.ServerEntry;
 import org.apache.directory.server.core.partition.Partition;
 import org.apache.directory.server.core.partition.impl.btree.Index;
 import org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmIndex;
@@ -48,6 +52,7 @@
 import org.apache.directory.shared.ldap.message.AttributeImpl;
 import org.apache.directory.shared.ldap.message.AttributesImpl;
 import org.apache.directory.shared.ldap.message.MutableControl;
+import org.apache.directory.shared.ldap.name.LdapDN;
 import org.apache.directory.shared.ldap.util.ArrayUtils;
 import org.apache.directory.shared.ldap.util.EmptyEnumeration;
 
@@ -89,7 +94,7 @@
 
 
     @Override
-    protected void configureDirectoryService()
+    protected void configureDirectoryService() throws NamingException
     {
         if ( this.getName().equals( "testUserAuthOnMixedCaseSuffix" ) )
         {
@@ -97,32 +102,35 @@
             partitions.addAll( directoryService.getPartitions() );
             JdbmPartition partition = new JdbmPartition();
             partition.setSuffix( "dc=aPache,dc=org" );
-            Attributes entry = new AttributesImpl( "dc", "aPache", true );
-            Attribute oc = new AttributeImpl( "objectClass" );
-            entry.put( oc );
-            oc.add( "top" );
-            oc.add( "domain" );
+            
+            LdapDN apacheDn = new LdapDN( "dc=aPache,dc=org" );
+            ServerEntry serverEntry = new DefaultServerEntry( directoryService.getRegistries(),
apacheDn );
+            serverEntry.put( "dc", "aPache" );
+            serverEntry.put( "objectClass", "top", "domain" );
+
             partition.setId( "apache" );
-            partition.setContextEntry( entry );
+            partition.setContextEntry( serverEntry );
             Set<Index> indexedAttributes = new HashSet<Index>();
             indexedAttributes.add( new JdbmIndex( "dc" ) );
             partition.setIndexedAttributes( indexedAttributes );
             partitions.add( partition );
             directoryService.setPartitions( partitions );
-        } else if ( this.getName().equals( "testAnonymousBindsEnabledBaseSearch" ) )
+        } 
+        else if ( this.getName().equals( "testAnonymousBindsEnabledBaseSearch" ) )
         {
             // create a partition to search
             Set partitions = new HashSet();
             partitions.addAll( directoryService.getPartitions() );
             JdbmPartition partition = new JdbmPartition();
             partition.setSuffix( "dc=apache,dc=org" );
-            Attributes entry = new AttributesImpl( "dc", "apache", true );
-            Attribute oc = new AttributeImpl( "objectClass" );
-            entry.put( oc );
-            oc.add( "top" );
-            oc.add( "domain" );
+            
+            LdapDN apacheDn = new LdapDN( "dc=apache,dc=org" );
+            ServerEntry serverEntry = new DefaultServerEntry( directoryService.getRegistries(),
apacheDn );
+            serverEntry.put( "dc", "apache" );
+            serverEntry.put( "objectClass", "top", "domain" );
+            
             partition.setId( "apache" );
-            partition.setContextEntry( entry );
+            partition.setContextEntry( serverEntry );
             Set<Index> indexedAttributes = new HashSet<Index>();
             indexedAttributes.add( new JdbmIndex( "dc" ) );
             partition.setIndexedAttributes( indexedAttributes );

Modified: directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/PasswordPolicyServiceITest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/PasswordPolicyServiceITest.java?rev=611170&r1=611169&r2=611170&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/PasswordPolicyServiceITest.java
(original)
+++ directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/PasswordPolicyServiceITest.java
Fri Jan 11 05:24:27 2008
@@ -20,6 +20,8 @@
 package org.apache.directory.server;
 
 
+import org.apache.directory.server.core.entry.DefaultServerEntry;
+import org.apache.directory.server.core.entry.ServerEntry;
 import org.apache.directory.server.core.interceptor.Interceptor;
 import org.apache.directory.server.core.kerberos.PasswordPolicyInterceptor;
 import org.apache.directory.server.core.partition.Partition;
@@ -29,6 +31,7 @@
 import org.apache.directory.server.unit.AbstractServerTest;
 import org.apache.directory.shared.ldap.message.AttributeImpl;
 import org.apache.directory.shared.ldap.message.AttributesImpl;
+import org.apache.directory.shared.ldap.name.LdapDN;
 
 import javax.naming.NamingException;
 import javax.naming.directory.Attribute;
@@ -77,9 +80,8 @@
         users = ctx.createSubcontext( "ou=users", attrs );
     }
 
-    protected void configureDirectoryService()
+    protected void configureDirectoryService() throws NamingException
     {
-        Attributes attrs;
         Set<Partition> partitions = new HashSet<Partition>();
 
         // Add partition 'example'
@@ -93,15 +95,12 @@
         indexedAttrs.add( new JdbmIndex( "objectClass" ) );
         partition.setIndexedAttributes( indexedAttrs );
 
-        attrs = new AttributesImpl( true );
-        Attribute attr = new AttributeImpl( "objectClass" );
-        attr.add( "top" );
-        attr.add( "domain" );
-        attrs.put( attr );
-        attr = new AttributeImpl( "dc" );
-        attr.add( "example" );
-        attrs.put( attr );
-        partition.setContextEntry( attrs );
+        LdapDN exampleDn = new LdapDN( "dc=example,dc=com" );
+        ServerEntry serverEntry = new DefaultServerEntry( directoryService.getRegistries(),
exampleDn );
+        serverEntry.put( "objectClass", "top", "domain" );
+        serverEntry.put( "dc", "example" );
+        
+        partition.setContextEntry( serverEntry );
 
         partitions.add( partition );
         directoryService.setPartitions( partitions );

Modified: directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/SaslBindITest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/SaslBindITest.java?rev=611170&r1=611169&r2=611170&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/SaslBindITest.java
(original)
+++ directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/SaslBindITest.java
Fri Jan 11 05:24:27 2008
@@ -20,6 +20,8 @@
 package org.apache.directory.server;
 
 
+import org.apache.directory.server.core.entry.DefaultServerEntry;
+import org.apache.directory.server.core.entry.ServerEntry;
 import org.apache.directory.server.core.partition.Partition;
 import org.apache.directory.server.core.partition.impl.btree.Index;
 import org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmIndex;
@@ -27,6 +29,7 @@
 import org.apache.directory.server.unit.AbstractServerTest;
 import org.apache.directory.shared.ldap.message.AttributeImpl;
 import org.apache.directory.shared.ldap.message.AttributesImpl;
+import org.apache.directory.shared.ldap.name.LdapDN;
 
 import javax.naming.Context;
 import javax.naming.NamingEnumeration;
@@ -93,15 +96,12 @@
         indexedAttrs.add( new JdbmIndex( "objectClass" ) );
         partition.setIndexedAttributes( indexedAttrs );
 
-        Attributes attrs = new AttributesImpl( true );
-        Attribute attr = new AttributeImpl( "objectClass" );
-        attr.add( "top" );
-        attr.add( "domain" );
-        attrs.put( attr );
-        attr = new AttributeImpl( "dc" );
-        attr.add( "example" );
-        attrs.put( attr );
-        partition.setContextEntry( attrs );
+        LdapDN exampleDn = new LdapDN( "dc=example,dc=com" );
+        ServerEntry serverEntry = new DefaultServerEntry( directoryService.getRegistries(),
exampleDn );
+        serverEntry.put( "objectClass", "top", "domain" );
+        serverEntry.put( "dc", "example" );
+
+        partition.setContextEntry( serverEntry );
 
 
         partitions.add( partition );



Mime
View raw message