directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1770291 - /directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/request/BindRequestHandler.java
Date Fri, 18 Nov 2016 01:01:41 GMT
Author: elecharny
Date: Fri Nov 18 01:01:41 2016
New Revision: 1770291

URL: http://svn.apache.org/viewvc?rev=1770291&view=rev
Log:
Change the exception caught when we are checking the use existence in the BIND operation (the
user might not be a valid DN)

Modified:
    directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/request/BindRequestHandler.java

Modified: directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/request/BindRequestHandler.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/request/BindRequestHandler.java?rev=1770291&r1=1770290&r2=1770291&view=diff
==============================================================================
--- directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/request/BindRequestHandler.java
(original)
+++ directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/request/BindRequestHandler.java
Fri Nov 18 01:01:41 2016
@@ -29,7 +29,6 @@ import org.apache.commons.lang.exception
 import org.apache.directory.api.ldap.model.constants.SchemaConstants;
 import org.apache.directory.api.ldap.model.entry.Entry;
 import org.apache.directory.api.ldap.model.exception.LdapAuthenticationException;
-import org.apache.directory.api.ldap.model.exception.LdapException;
 import org.apache.directory.api.ldap.model.exception.LdapInvalidDnException;
 import org.apache.directory.api.ldap.model.exception.LdapUnwillingToPerformException;
 import org.apache.directory.api.ldap.model.message.BindRequest;
@@ -145,7 +144,7 @@ public class BindRequestHandler extends
             {
                 principalEntry = directoryService.getAdminSession().lookup( bindRequest.getDn()
);
             }
-            catch ( LdapException le )
+            catch ( Exception le )
             {
                 // this is OK
             }



Mime
View raw message