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 2017/08/05 02:52:32 UTC
svn commit: r1804170 -
/directory/apacheds/branches/apacheds-value/core-api/src/main/java/org/apache/directory/server/core/api/LdapCoreSessionConnection.java
Author: elecharny
Date: Sat Aug 5 02:52:32 2017
New Revision: 1804170
URL: http://svn.apache.org/viewvc?rev=1804170&view=rev
Log:
Added a bind(SaslRequest) method
Modified:
directory/apacheds/branches/apacheds-value/core-api/src/main/java/org/apache/directory/server/core/api/LdapCoreSessionConnection.java
Modified: directory/apacheds/branches/apacheds-value/core-api/src/main/java/org/apache/directory/server/core/api/LdapCoreSessionConnection.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-value/core-api/src/main/java/org/apache/directory/server/core/api/LdapCoreSessionConnection.java?rev=1804170&r1=1804169&r2=1804170&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-value/core-api/src/main/java/org/apache/directory/server/core/api/LdapCoreSessionConnection.java (original)
+++ directory/apacheds/branches/apacheds-value/core-api/src/main/java/org/apache/directory/server/core/api/LdapCoreSessionConnection.java Sat Aug 5 02:52:32 2017
@@ -27,6 +27,7 @@ import java.util.Collection;
import java.util.Iterator;
import java.util.List;
+import org.apache.commons.lang.NotImplementedException;
import org.apache.directory.api.asn1.util.Oid;
import org.apache.directory.api.ldap.codec.api.BinaryAttributeDetector;
import org.apache.directory.api.ldap.codec.api.LdapApiService;
@@ -85,6 +86,7 @@ import org.apache.directory.api.ldap.mod
import org.apache.directory.api.ldap.model.schema.SchemaManager;
import org.apache.directory.ldap.client.api.AbstractLdapConnection;
import org.apache.directory.ldap.client.api.EntryCursorImpl;
+import org.apache.directory.ldap.client.api.SaslRequest;
import org.apache.directory.server.core.api.interceptor.context.BindOperationContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -225,6 +227,21 @@ public class LdapCoreSessionConnection e
processResponse( addResponse );
}
+
+
+ /**
+ * Process the SASL Bind. It's a dialog with the server, we will send a first BindRequest, receive
+ * a response and the, if this response is a challenge, continue by sending a new BindRequest with
+ * the requested informations.
+ *
+ * @param saslRequest The SASL request object containing all the needed parameters
+ * @return A {@link BindResponse} containing the result
+ * @throws LdapException if some error occurred
+ */
+ public BindResponse bind( SaslRequest saslRequest ) throws LdapException
+ {
+ throw new NotImplementedException();
+ }
/**