You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2007/04/02 20:24:34 UTC
svn commit: r524877 -
/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/normalization/NormalizationService.java
Author: elecharny
Date: Mon Apr 2 11:24:34 2007
New Revision: 524877
URL: http://svn.apache.org/viewvc?view=rev&rev=524877
Log:
Changed the bind() operation interface
Modified:
directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/normalization/NormalizationService.java
Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/normalization/NormalizationService.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/normalization/NormalizationService.java?view=diff&rev=524877&r1=524876&r2=524877
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/normalization/NormalizationService.java (original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/normalization/NormalizationService.java Mon Apr 2 11:24:34 2007
@@ -21,7 +21,6 @@
import java.util.Iterator;
-import java.util.List;
import java.util.Map;
import javax.naming.NamingEnumeration;
@@ -34,6 +33,8 @@
import org.apache.directory.server.core.configuration.InterceptorConfiguration;
import org.apache.directory.server.core.interceptor.BaseInterceptor;
import org.apache.directory.server.core.interceptor.NextInterceptor;
+import org.apache.directory.server.core.interceptor.context.BindServiceContext;
+import org.apache.directory.server.core.interceptor.context.ServiceContext;
import org.apache.directory.server.core.partition.PartitionNexus;
import org.apache.directory.server.schema.ConcreteNameComponentNormalizer;
import org.apache.directory.server.schema.registries.AttributeTypeRegistry;
@@ -402,11 +403,11 @@
}
- public void bind( NextInterceptor next, LdapDN bindDn, byte[] credentials, List<String> mechanisms, String saslAuthId )
- throws NamingException
+ public void bind( NextInterceptor next, ServiceContext ctx ) throws NamingException
{
- bindDn = LdapDN.normalize( bindDn, attrNormalizers );
- next.bind( bindDn, credentials, mechanisms, saslAuthId );
+ BindServiceContext bindContext = (BindServiceContext)ctx;
+ bindContext.setNormalizedBindDn( LdapDN.normalize( bindContext.getBindDn(), attrNormalizers ) );
+ next.bind( bindContext );
}