From 86323ee1474fc64b489bed6255a8f4705266555d Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Tue, 22 Jan 2013 14:41:12 +0000 Subject: [PATCH] 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 --- .../archiva/redback/configuration/UserConfigurationKeys.java | 2 ++ .../integration/checks/security/GuestUserEnvironmentCheck.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/redback-configuration/src/main/java/org/apache/archiva/redback/configuration/UserConfigurationKeys.java b/redback-configuration/src/main/java/org/apache/archiva/redback/configuration/UserConfigurationKeys.java index 30aea21c..1ee21b03 100644 --- a/redback-configuration/src/main/java/org/apache/archiva/redback/configuration/UserConfigurationKeys.java +++ b/redback-configuration/src/main/java/org/apache/archiva/redback/configuration/UserConfigurationKeys.java @@ -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"; diff --git a/redback-integrations/redback-common-integrations/src/main/java/org/apache/archiva/redback/integration/checks/security/GuestUserEnvironmentCheck.java b/redback-integrations/redback-common-integrations/src/main/java/org/apache/archiva/redback/integration/checks/security/GuestUserEnvironmentCheck.java index c004ebcc..6c3e04e4 100644 --- a/redback-integrations/redback-common-integrations/src/main/java/org/apache/archiva/redback/integration/checks/security/GuestUserEnvironmentCheck.java +++ b/redback-integrations/redback-common-integrations/src/main/java/org/apache/archiva/redback/integration/checks/security/GuestUserEnvironmentCheck.java @@ -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 )