]> source.dussan.org Git - archiva.git/commitdiff
use warn rather than debug to show more informations in log
authorOlivier Lamy <olamy@apache.org>
Mon, 21 Jan 2013 22:43:30 +0000 (22:43 +0000)
committerOlivier Lamy <olamy@apache.org>
Mon, 21 Jan 2013 22:43:30 +0000 (22:43 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1436672 13f79535-47bb-0310-9956-ffa450edef68

redback-users/redback-users-providers/redback-users-ldap/src/main/java/org/apache/archiva/redback/users/ldap/LdapUserManager.java
redback-users/redback-users-providers/redback-users-ldap/src/main/java/org/apache/archiva/redback/users/ldap/ctl/DefaultLdapController.java

index 0438919eb4e19e01c774d9fbabc721a0b87ca321..854b7a31cb18dbb201b1fd34d82d0903588e8b68 100644 (file)
@@ -124,7 +124,7 @@ public class LdapUserManager
             return null;
         }
 
-        if ( GUEST_USERNAME.equals( user.getUsername() ) )
+        if ( isReadOnly() && GUEST_USERNAME.equals( user.getUsername() ) )
         {
             guestUser = user;
             return guestUser;
index 740bf541db439075e2942c151212651227d8c0d8..dfa96617eb78ee1c7034d56e521cc45142f3ecc9 100644 (file)
@@ -290,7 +290,7 @@ public class DefaultLdapController
         }
         if ( user.getUsername().equals( UserManager.GUEST_USERNAME ) )
         {
-            log.debug( "skip user '{}' creation" );
+            log.warn( "skip user '{}' creation" );
             //We don't store guest
             return;
         }