directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r647122 - /directory/sandbox/akarasulu/bigbang/apacheds/xdbm-tools/src/main/java/org/apache/directory/server/xdbm/tools/StoreUtils.java
Date Fri, 11 Apr 2008 11:43:23 GMT
Author: kayyagari
Date: Fri Apr 11 04:43:13 2008
New Revision: 647122

URL: http://svn.apache.org/viewvc?rev=647122&view=rev
Log:
added/modified alias entries to fill the Alias indices

Modified:
    directory/sandbox/akarasulu/bigbang/apacheds/xdbm-tools/src/main/java/org/apache/directory/server/xdbm/tools/StoreUtils.java

Modified: directory/sandbox/akarasulu/bigbang/apacheds/xdbm-tools/src/main/java/org/apache/directory/server/xdbm/tools/StoreUtils.java
URL: http://svn.apache.org/viewvc/directory/sandbox/akarasulu/bigbang/apacheds/xdbm-tools/src/main/java/org/apache/directory/server/xdbm/tools/StoreUtils.java?rev=647122&r1=647121&r2=647122&view=diff
==============================================================================
--- directory/sandbox/akarasulu/bigbang/apacheds/xdbm-tools/src/main/java/org/apache/directory/server/xdbm/tools/StoreUtils.java
(original)
+++ directory/sandbox/akarasulu/bigbang/apacheds/xdbm-tools/src/main/java/org/apache/directory/server/xdbm/tools/StoreUtils.java
Fri Apr 11 04:43:13 2008
@@ -109,6 +109,14 @@
         entry.add( "cn",  "JIM BEAN");
         store.add( dn, ServerEntryUtils.toAttributesImpl( entry ) );
         
+        
+        dn = new LdapDN( "ou=Apache,ou=Board of Directors,o=Good Times Co." );
+        dn.normalize( attributeRegistry.getNormalizerMapping() );
+        entry = new DefaultServerEntry( registries, dn );
+        entry.add( "objectClass", "top", "organizationalUnit" );
+        entry.add( "ou", "Apache" );
+        store.add( dn, ServerEntryUtils.toAttributesImpl( entry ) );
+        
         dn = new LdapDN( "cn=Jack Daniels,ou=Engineering,o=Good Times Co." );
         dn.normalize( attributeRegistry.getNormalizerMapping() );
         entry = new DefaultServerEntry( registries, dn );
@@ -118,11 +126,19 @@
         store.add( dn, ServerEntryUtils.toAttributesImpl( entry ) );
 
         // aliases
+        dn = new LdapDN( "commonName=Jim Bean,ou=Apache,ou=Board of Directors,o=Good Times
Co." );
+        dn.normalize( attributeRegistry.getNormalizerMapping() );
+        entry = new DefaultServerEntry( registries, dn );
+        entry.add( "objectClass", "top", "alias", "extensibleObject" );
+        entry.add( "ou", "Apache" );
+        entry.add( "commonName",  "Jim Bean");
+        entry.add( "aliasedObjectName", "cn=Jim Bean,ou=Sales,o=Good Times Co." );
+        store.add( dn, ServerEntryUtils.toAttributesImpl( entry ) );
+
         dn = new LdapDN( "commonName=Jim Bean,ou=Board of Directors,o=Good Times Co." );
         dn.normalize( attributeRegistry.getNormalizerMapping() );
         entry = new DefaultServerEntry( registries, dn );
         entry.add( "objectClass", "top", "alias", "extensibleObject" );
-        entry.add( "ou", "Board of Directors" );
         entry.add( "commonName",  "Jim Bean");
         entry.add( "aliasedObjectName", "cn=Jim Bean,ou=Sales,o=Good Times Co." );
         store.add( dn, ServerEntryUtils.toAttributesImpl( entry ) );



Mime
View raw message