directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r418522 - /directory/branches/apacheds/optimization/core/src/main/java/org/apache/directory/server/core/authz/AuthorizationService.java
Date Sat, 01 Jul 2006 23:38:45 GMT
Author: elecharny
Date: Sat Jul  1 16:38:45 2006
New Revision: 418522

URL: http://svn.apache.org/viewvc?rev=418522&view=rev
Log:
Avoid the creation of a new LdapDN object

Modified:
    directory/branches/apacheds/optimization/core/src/main/java/org/apache/directory/server/core/authz/AuthorizationService.java

Modified: directory/branches/apacheds/optimization/core/src/main/java/org/apache/directory/server/core/authz/AuthorizationService.java
URL: http://svn.apache.org/viewvc/directory/branches/apacheds/optimization/core/src/main/java/org/apache/directory/server/core/authz/AuthorizationService.java?rev=418522&r1=418521&r2=418522&view=diff
==============================================================================
--- directory/branches/apacheds/optimization/core/src/main/java/org/apache/directory/server/core/authz/AuthorizationService.java
(original)
+++ directory/branches/apacheds/optimization/core/src/main/java/org/apache/directory/server/core/authz/AuthorizationService.java
Sat Jul  1 16:38:45 2006
@@ -693,9 +693,10 @@
         DirectoryPartitionNexusProxy proxy = invocation.getProxy();
         Attributes entry = proxy.lookup( name, DirectoryPartitionNexusProxy.LOOKUP_BYPASS
);
         LdapPrincipal user = ( ( ServerContext ) invocation.getCaller() ).getPrincipal();
-        LdapDN principalDn = parseNormalized( user.getName() );
+        LdapDN principalDn = (LdapDN)user.getJndiName();
+        principalDn.normalize( attrRegistry.getNormalizerMapping() );
         
-        if ( principalDn.toNormName().equals( DirectoryPartitionNexus.ADMIN_PRINCIPAL_NORMALIZED
) || !enabled )
+        if ( principalDn.toString().equals( DirectoryPartitionNexus.ADMIN_PRINCIPAL_NORMALIZED
) || !enabled )
         {
             return next.lookup( name );
         }



Mime
View raw message