guest role is Guest: ldap is case sensitive !

git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1436966 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2013-01-22 14:41:12 +00:00
parent 26afe7802f
commit 86323ee147
2 changed files with 3 additions and 1 deletions

View 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";

View 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 )