directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r524877 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/normalization/NormalizationService.java
Date Mon, 02 Apr 2007 18:24:34 GMT
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 );
     }
 
 



Mime
View raw message