]> source.dussan.org Git - archiva.git/commitdiff
guest role is Guest: ldap is case sensitive !
authorOlivier Lamy <olamy@apache.org>
Tue, 22 Jan 2013 14:41:12 +0000 (14:41 +0000)
committerOlivier Lamy <olamy@apache.org>
Tue, 22 Jan 2013 14:41:12 +0000 (14:41 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1436966 13f79535-47bb-0310-9956-ffa450edef68

redback-configuration/src/main/java/org/apache/archiva/redback/configuration/UserConfigurationKeys.java
redback-integrations/redback-common-integrations/src/main/java/org/apache/archiva/redback/integration/checks/security/GuestUserEnvironmentCheck.java

index 30aea21cbe7fc45a272cc9e4505adbe1ffc172e9..1ee21b036c1066e0c0ec336d717c4f542d0b5264 100644 (file)
@@ -32,6 +32,8 @@ public interface UserConfigurationKeys
 
     String DEFAULT_GUEST = "redback.default.guest";
 
+    String DEFAULT_GUEST_ROLE = "redback.default.role.guest";
+
     String EMAIL_FROM_ADDRESS = "email.from.address";
 
     String EMAIL_FROM_NAME = "email.from.name";
index c004ebcc6a9420c2388b80adad83a832f78cf9c2..6c3e04e41a242b88b94fddc47f8da85ca29abb46 100644 (file)
@@ -97,7 +97,7 @@ public class GuestUserEnvironmentCheck
 
                 try
                 {
-                    roleManager.assignRole( config.getString( UserConfigurationKeys.DEFAULT_GUEST ),
+                    roleManager.assignRole( config.getString( UserConfigurationKeys.DEFAULT_GUEST_ROLE, "Guest" ),
                                             guest.getUsername() );
                 }
                 catch ( RoleManagerException rpe )