diff options
author | Olivier Lamy <olamy@apache.org> | 2012-04-06 09:58:14 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2012-04-06 09:58:14 +0000 |
commit | 5b06b6673ee8eaed4b46ad8e847e98fe4c90319d (patch) | |
tree | e184a7512cd005f5baaf82a94e13fd67646cc2ea /redback-common/redback-common-test-resources | |
parent | be9e1800fdcb3c37c566220c1b2b79650d375000 (diff) | |
download | archiva-5b06b6673ee8eaed4b46ad8e847e98fe4c90319d.tar.gz archiva-5b06b6673ee8eaed4b46ad8e847e98fe4c90319d.zip |
import of redback core sources
http://svn.codehaus.org/redback/redback/trunk/ r1724
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1310268 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'redback-common/redback-common-test-resources')
3 files changed, 387 insertions, 0 deletions
diff --git a/redback-common/redback-common-test-resources/pom.xml b/redback-common/redback-common-test-resources/pom.xml new file mode 100644 index 000000000..c81257c8f --- /dev/null +++ b/redback-common/redback-common-test-resources/pom.xml @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + ~ Copyright 2011 The Codehaus. + ~ + ~ Licensed under the Apache License, Version 2.0 (the "License"); + ~ you may not use this file except in compliance with the License. + ~ You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, software + ~ distributed under the License is distributed on an "AS IS" BASIS, + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + ~ See the License for the specific language governing permissions and + ~ limitations under the License. + --> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>org.codehaus.redback</groupId> + <artifactId>redback-common</artifactId> + <version>1.5-SNAPSHOT</version> + </parent> + + <artifactId>redback-common-test-resources</artifactId> + <version>1.5-SNAPSHOT</version> + <name>Redback :: Common TestResources</name> + +</project> diff --git a/redback-common/redback-common-test-resources/src/main/resources/META-INF/redback/redback-core.xml b/redback-common/redback-common-test-resources/src/main/resources/META-INF/redback/redback-core.xml new file mode 100644 index 000000000..975b9329e --- /dev/null +++ b/redback-common/redback-common-test-resources/src/main/resources/META-INF/redback/redback-core.xml @@ -0,0 +1,228 @@ +<redback-role-model> + <modelVersion>1.0.0</modelVersion> + <applications> + <application> + <id>System</id> + <description>Roles that apply system-wide, across all of the applications</description> + <version>1.0.0</version> + <resources> + <resource> + <id>global</id> + <name>*</name> + <permanent>true</permanent> + <description>global resource implies full access for authorization</description> + </resource> + <resource> + <id>username</id> + <name>${username}</name> + <permanent>true</permanent> + <description>replaced with the username of the principal at authorization check time</description> + </resource> + </resources> + <operations> + <operation> + <id>configuration-edit</id> + <name>configuration-edit</name> + <description>edit configuration</description> + <permanent>true</permanent> + </operation> + <operation> + <id>user-management-user-create</id> + <name>user-management-user-create</name> + <description>create user</description> + <permanent>true</permanent> + </operation> + <operation> + <id>user-management-user-edit</id> + <name>user-management-user-edit</name> + <description>edit user</description> + <permanent>true</permanent> + </operation> + <operation> + <id>user-management-user-role</id> + <name>user-management-user-role</name> + <description>user roles</description> + <permanent>true</permanent> + </operation> + <operation> + <id>user-management-user-delete</id> + <name>user-management-user-delete</name> + <description>delete user</description> + <permanent>true</permanent> + </operation> + <operation> + <id>user-management-user-list</id> + <name>user-management-user-list</name> + <description>list users</description> + <permanent>true</permanent> + </operation> + <operation> + <id>user-management-role-grant</id> + <name>user-management-role-grant</name> + <description>grant role</description> + <permanent>true</permanent> + </operation> + <operation> + <id>user-management-role-drop</id> + <name>user-management-role-drop</name> + <description>drop role</description> + <permanent>true</permanent> + </operation> + <operation> + <id>user-management-rbac-admin</id> + <name>user-management-rbac-admin</name> + <description>administer rbac</description> + <permanent>true</permanent> + </operation> + <operation> + <id>guest-access</id> + <name>guest-access</name> + <description>access guest</description> + <permanent>true</permanent> + </operation> + <operation> + <id>user-management-manage-data</id> + <name>user-management-manage-data</name> + <description>manage data</description> + <permanent>true</permanent> + </operation> + </operations> + <roles> + <role> + <id>system-administrator</id> + <name>System Administrator</name> + <permanent>true</permanent> + <assignable>true</assignable> + <permissions> + <permission> + <id>edit-redback-configuration</id> + <name>Edit Redback Configuration</name> + <operation>configuration-edit</operation> + <resource>global</resource> + <permanent>true</permanent> + </permission> + <permission> + <id>manage-rbac-setup</id> + <name>User RBAC Management</name> + <operation>user-management-rbac-admin</operation> + <resource>global</resource> + <permanent>true</permanent> + </permission> + <permission> + <id>manage-rbac-data</id> + <name>RBAC Manage Data</name> + <operation>user-management-manage-data</operation> + <resource>global</resource> + <permanent>true</permanent> + </permission> + </permissions> + <childRoles> + <childRole>user-administrator</childRole> + </childRoles> + </role> + <role> + <id>user-administrator</id> + <name>User Administrator</name> + <permanent>true</permanent> + <assignable>true</assignable> + <permissions> + <permission> + <id>drop-roles-for-anyone</id> + <name>Drop Roles for Anyone</name> + <operation>user-management-role-drop</operation> + <resource>global</resource> + <permanent>true</permanent> + </permission> + <permission> + <id>grant-roles-for-anyone</id> + <name>Grant Roles for Anyone</name> + <operation>user-management-role-grant</operation> + <resource>global</resource> + <permanent>true</permanent> + </permission> + <permission> + <id>user-create</id> + <name>Create Users</name> + <operation>user-management-user-create</operation> + <resource>global</resource> + <permanent>true</permanent> + </permission> + <permission> + <id>user-delete</id> + <name>Delete Users</name> + <operation>user-management-user-delete</operation> + <resource>global</resource> + <permanent>true</permanent> + </permission> + <permission> + <id>user-edit</id> + <name>Edit Users</name> + <operation>user-management-user-edit</operation> + <resource>global</resource> + <permanent>true</permanent> + </permission> + <permission> + <id>access-users-roles</id> + <name>Access Users Roles</name> + <operation>user-management-user-role</operation> + <resource>global</resource> + <permanent>true</permanent> + </permission> + <permission> + <id>access-user-list</id> + <name>Access User List</name> + <operation>user-management-user-list</operation> + <resource>global</resource> + <permanent>true</permanent> + </permission> + </permissions> + </role> + <role> + <id>edit-users-list</id> + <name>edit users list</name> + <permanent>true</permanent> + <assignable>true</assignable> + <permissions> + <permission> + <id>access-user-list</id> + <name>Access User List</name> + <operation>user-management-user-list</operation> + <resource>global</resource> + <permanent>true</permanent> + </permission> + </permissions> + </role> + <role> + <id>registered-user</id> + <name>Registered User</name> + <permanent>true</permanent> + <assignable>true</assignable> + <permissions> + <permission> + <id>edit-user-by-username</id> + <name>Edit User Data by Username</name> + <operation>user-management-user-edit</operation> + <resource>username</resource> + <permanent>true</permanent> + </permission> + </permissions> + </role> + <role> + <id>guest</id> + <name>Guest</name> + <permanent>true</permanent> + <assignable>true</assignable> + <permissions> + <permission> + <id>guest-permission</id> + <name>Guest Permission</name> + <operation>guest-access</operation> + <resource>global</resource> + <permanent>true</permanent> + </permission> + </permissions> + </role> + </roles> + </application> + </applications> +</redback-role-model>
\ No newline at end of file diff --git a/redback-common/redback-common-test-resources/src/main/resources/org/codehaus/plexus/redback/config-defaults.properties b/redback-common/redback-common-test-resources/src/main/resources/org/codehaus/plexus/redback/config-defaults.properties new file mode 100644 index 000000000..f4c3dd0ca --- /dev/null +++ b/redback-common/redback-common-test-resources/src/main/resources/org/codehaus/plexus/redback/config-defaults.properties @@ -0,0 +1,130 @@ +# +# Copyright 2006 The Codehaus. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +# -------------------------------------------------------------------- +# Application Configuration + +application.timestamp=EEE d MMM yyyy HH:mm:ss Z + +# -------------------------------------------------------------------- +# JDBC Setup + +#jdbc.driver.name=org.hsqldb.jdbcDriver +jdbc.driver.name=org.apache.derby.jdbc.EmbeddedDriver +#jdbc.url=jdbc:hsqldb:mem:redback-users-tests +#jdbc.url=jdbc:derby:memory:users-test;create=true +jdbc.url=jdbc:derby:users-test;create=true +jdbc.username=sa +jdbc.password= + +# -------------------------------------------------------------------- +# Email Settings + +email.jndiSessionName=java:comp/env/mail/Session +email.smtp.host=localhost +email.smtp.port=25 +email.smtp.ssl.enabled=false +email.smtp.tls.enabled=false +email.smtp.username= +email.smtp.password= + +#TODO: move description elsewhere, remove bad default +# All emails sent by the system will be from the following address +#email.from.address=${user.name}@localhost +# All emails sent by the system will be from the following user name (used in conjunction with address) +#email.from.name=Unconfigured Username + +# If all email addresses (from new user registration) require an account validation email. +email.validation.required=true +# Timeout (in minutes) for the key generated for an email validation to remain valid. +# 2880 minutes = 48 hours +email.validation.timeout=2880 +# The subject line for the email message. +email.validation.subject=Welcome + +#TODO: move description elsewhere, remove bad default +# Get the Feedback to use for any outgoing emails. +# NOTE: if feedback.path starts with a "/" it is appended to the end of the value provided in application.url +# This value can be in the format/syntax of "/feedback.action" or even "mailto:feedback@application.com" +#email.feedback.path=/feedback.action + +#Set the application base URL. The default is to derive it from the HTTP request +#application.url=http://myurl.mycompany.com + +# -------------------------------------------------------------------- +# Auto Login Settings + +security.rememberme.enabled=true +# Timeout in minutes ( 525600 minutes = 1 year ) +security.rememberme.timeout=525600 + +# Single Sign On +# Timeout in minutes +security.signon.timeout=30 + +# -------------------------------------------------------------------- +# Default Username Values +redback.default.admin=admin + +# -------------------------------------------------------------------- +# Security Policies + +#security.policy.password.encoder= +security.policy.password.previous.count=6 +security.policy.password.expiration.enabled=true +security.policy.password.expiration.days=90 +security.policy.password.expiration.notify.days=10 +security.policy.allowed.login.attempt=10 + +# turn off the perclick enforcement of various security policies, slightly +# more heavyweight since it will ensure that the User object on each click +# is up to date +security.policy.strict.enforcement.enabled=true +security.policy.strict.force.password.change.enabled=true + +# -------------------------------------------------------------------- +# Password Rules +security.policy.password.rule.alphanumeric.enabled=false +security.policy.password.rule.alphacount.enabled=true +security.policy.password.rule.alphacount.minimum=1 +security.policy.password.rule.characterlength.enabled=true +security.policy.password.rule.characterlength.minimum=1 +security.policy.password.rule.characterlength.maximum=24 +security.policy.password.rule.musthave.enabled=true +security.policy.password.rule.numericalcount.enabled=true +security.policy.password.rule.numericalcount.minimum=1 +security.policy.password.rule.reuse.enabled=true +security.policy.password.rule.nowhitespace.enabled=true + +# -------------------------------------------------------------------- +# ldap settings +# +ldap.bind.authenticator.enabled=false + +# ldap options for configuration via properties file +#ldap.config.hostname= +#ldap.config.port= +#ldap.config.base.dn= +#ldap.config.context.factory= +#ldap.config.bind.dn= +#ldap.config.password= +#ldap.config.authentication.method= + +# config parameter for the ConfigurableUserManager +user.manager.impl=cached + + + |