You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by sm...@apache.org on 2014/11/07 21:37:29 UTC
directory-fortress-core git commit: FC-40 - rolled back change on
create, schema constants broke fortress data load.
Repository: directory-fortress-core
Updated Branches:
refs/heads/master 1a4d9716a -> 4e1c9b38d
FC-40 - rolled back change on create, schema constants broke fortress data load.
Project: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/commit/4e1c9b38
Tree: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/tree/4e1c9b38
Diff: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/diff/4e1c9b38
Branch: refs/heads/master
Commit: 4e1c9b38d6ac6581f657d22019e66efc4c583ee1
Parents: 1a4d971
Author: Shawn McKinney <sm...@apache.org>
Authored: Fri Nov 7 14:37:13 2014 -0600
Committer: Shawn McKinney <sm...@apache.org>
Committed: Fri Nov 7 14:37:13 2014 -0600
----------------------------------------------------------------------
.../directory/fortress/core/ldap/suffix/SuffixDAO.java | 9 +++++++++
1 file changed, 9 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/directory-fortress-core/blob/4e1c9b38/src/main/java/org/apache/directory/fortress/core/ldap/suffix/SuffixDAO.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/directory/fortress/core/ldap/suffix/SuffixDAO.java b/src/main/java/org/apache/directory/fortress/core/ldap/suffix/SuffixDAO.java
index 49ff943..0ef3382 100755
--- a/src/main/java/org/apache/directory/fortress/core/ldap/suffix/SuffixDAO.java
+++ b/src/main/java/org/apache/directory/fortress/core/ldap/suffix/SuffixDAO.java
@@ -69,6 +69,10 @@ final class SuffixDAO extends ApacheDsDataProvider
{
private static final String CLS_NM = SuffixDAO.class.getName();
private static final Logger LOG = LoggerFactory.getLogger( CLS_NM );
+
+ private static final String DC = "dc";
+ private static final String O = "o";
+
private static final String[] SUFFIX_OBJ_CLASS =
{
GlobalIds.SUFFIX_CLASS, GlobalIds.ORGANIZATION_CLASS
@@ -97,8 +101,13 @@ final class SuffixDAO extends ApacheDsDataProvider
LOG.info( "create suffix dn [" + nodeDn + "]" );
Entry myEntry = new DefaultEntry( nodeDn );
myEntry.add( GlobalIds.OBJECT_CLASS, SUFFIX_OBJ_CLASS );
+ myEntry.add( GlobalIds.OBJECT_CLASS, SUFFIX_OBJ_CLASS );
+ myEntry.add( DC, se.getName() );
+ myEntry.add( O, se.getDescription() );
+ /*
myEntry.add( SchemaConstants.DC_AT, se.getName() );
myEntry.add( SchemaConstants.O_AT, se.getDescription() );
+*/
ld = getAdminConnection();
add( ld, myEntry );
}