directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1798447 - /directory/apacheds/branches/apacheds-value/interceptors/authn/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java
Date Mon, 12 Jun 2017 12:34:24 GMT
Author: elecharny
Date: Mon Jun 12 12:34:24 2017
New Revision: 1798447

URL: http://svn.apache.org/viewvc?rev=1798447&view=rev
Log:
Fixed some compilation failure (missing '+')

Modified:
    directory/apacheds/branches/apacheds-value/interceptors/authn/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java

Modified: directory/apacheds/branches/apacheds-value/interceptors/authn/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-value/interceptors/authn/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java?rev=1798447&r1=1798446&r2=1798447&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-value/interceptors/authn/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java
(original)
+++ directory/apacheds/branches/apacheds-value/interceptors/authn/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java
Mon Jun 12 12:34:24 2017
@@ -423,7 +423,7 @@ public class AuthenticationInterceptor e
         if ( ( levelAuthenticators == null ) || levelAuthenticators.isEmpty() )
         {
             // No authenticators associated with this level : get out
-            throw new LdapAuthenticationException( "Cannot Bind for Dn "
+            throw new LdapAuthenticationException( "Cannot Bind for Dn " +
          bindDn.getName() + ", no authenticator for the requested level " + level );
         }
 
@@ -440,9 +440,8 @@ public class AuthenticationInterceptor e
                 else
                 {
                     throw new LdapUnwillingToPerformException( ResultCodeEnum.UNWILLING_TO_PERFORM,
-                        "Cannot Bind for Dn "
-                     bindDn.getName() + ", its not a descendant of the authenticator base
DN '"
-                     authenticator.getBaseDn() + "'" );
+                        "Cannot Bind for Dn " + bindDn.getName() + 
+                        ", its not a descendant of the authenticator base DN '" + authenticator.getBaseDn()
+ "'" );
                 }
             }
         }
@@ -499,8 +498,8 @@ public class AuthenticationInterceptor e
             // This is a case where the Bind request contains a Dn, but no password.
             // We don't check the Dn, we just return a UnwillingToPerform error
             // Cf RFC 4513, chap. 5.1.2
-            throw new LdapUnwillingToPerformException( ResultCodeEnum.UNWILLING_TO_PERFORM,
"Cannot Bind for Dn "
-         bindDn.getName() );
+            throw new LdapUnwillingToPerformException( ResultCodeEnum.UNWILLING_TO_PERFORM,
"Cannot Bind for Dn " +
+                bindDn.getName() );
         }
 
         PasswordPolicyException ppe = null;



Mime
View raw message