directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: r550362 - in /directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support: BindHandler.java bind/CramMd5CallbackHandler.java
Date Mon, 25 Jun 2007 05:44:41 GMT
Author: erodriguez
Date: Sun Jun 24 22:44:40 2007
New Revision: 550362

URL: http://svn.apache.org/viewvc?view=rev&rev=550362
Log:
Minor logging clean-up in protocol-ldap.

Modified:
    directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/BindHandler.java
    directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/bind/CramMd5CallbackHandler.java

Modified: directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/BindHandler.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/BindHandler.java?view=diff&rev=550362&r1=550361&r2=550362
==============================================================================
--- directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/BindHandler.java
(original)
+++ directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/BindHandler.java
Sun Jun 24 22:44:40 2007
@@ -254,12 +254,12 @@
         {
             if ( bindRequest.isSimple() )
             {
-                log.debug( "Simple authentication." );
+                log.debug( "Using simple authentication." );
                 
             }
             else
             {
-                log.debug( "SASL authentication with mechanism:  {}", bindRequest.getSaslMechanism()
);
+                log.debug( "Using SASL authentication with mechanism:  {}", bindRequest.getSaslMechanism()
);
             }
         }
         

Modified: directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/bind/CramMd5CallbackHandler.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/bind/CramMd5CallbackHandler.java?view=diff&rev=550362&r1=550361&r2=550362
==============================================================================
--- directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/bind/CramMd5CallbackHandler.java
(original)
+++ directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/bind/CramMd5CallbackHandler.java
Sun Jun 24 22:44:40 2007
@@ -78,7 +78,11 @@
 
     protected void authorize( AuthorizeCallback authorizeCB )
     {
-        log.debug( "Converted username " + getUsername() + " to DN " + bindDn + " with password
" + userPassword );
+        if ( log.isDebugEnabled() )
+        {
+            log.debug( "Converted username " + getUsername() + " to DN " + bindDn + " with
password " + userPassword );
+        }
+
         session.setAttribute( Context.SECURITY_PRINCIPAL, bindDn );
 
         authorizeCB.setAuthorizedID( bindDn );



Mime
View raw message