directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1403622 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/security/CoreKeyStoreSpi.java
Date Tue, 30 Oct 2012 06:05:36 GMT
Author: kayyagari
Date: Tue Oct 30 06:05:35 2012
New Revision: 1403622

URL: http://svn.apache.org/viewvc?rev=1403622&view=rev
Log:
simplified the lookup of admin entry

Modified:
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/security/CoreKeyStoreSpi.java

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/security/CoreKeyStoreSpi.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/security/CoreKeyStoreSpi.java?rev=1403622&r1=1403621&r2=1403622&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/security/CoreKeyStoreSpi.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/security/CoreKeyStoreSpi.java
Tue Oct 30 06:05:35 2012
@@ -79,10 +79,7 @@ public class CoreKeyStoreSpi extends Key
     private Entry getTlsEntry() throws Exception
     {
         Dn adminDn = directoryService.getDnFactory().create( ServerDNConstants.ADMIN_SYSTEM_DN
);
-        LdapPrincipal principal = new LdapPrincipal( directoryService.getSchemaManager(),
adminDn,
-            AuthenticationLevel.SIMPLE );
-        CoreSession session = directoryService.getSession( principal );
-        return session.lookup( adminDn );
+        return directoryService.getAdminSession().lookup( adminDn );
     }
 
 



Mime
View raw message