Commit Graph

927 Commits

Author SHA1 Message Date
Olivier Lamy 4408f7816c spring 3.2.1
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1438762 13f79535-47bb-0310-9956-ffa450edef68
2013-01-25 23:32:41 +00:00
Olivier Lamy 0392abb261 remove duplicate code
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1437806 13f79535-47bb-0310-9956-ffa450edef68
2013-01-23 23:51:59 +00:00
Olivier Lamy e8c9121897 honor useDefaultRoleName when searching all roles/groups from ldap
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1437805 13f79535-47bb-0310-9956-ffa450edef68
2013-01-23 23:51:43 +00:00
Olivier Lamy 54c5daeba3 add more caching for ldap roles
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1437804 13f79535-47bb-0310-9956-ffa450edef68
2013-01-23 23:51:18 +00:00
Olivier Lamy f11ba97b41 add some caching for userAssignement in LdapRbacManager
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1437326 13f79535-47bb-0310-9956-ffa450edef68
2013-01-23 10:31:19 +00:00
Olivier Lamy 0e3020b8b0 clear cache when erase is called
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1437325 13f79535-47bb-0310-9956-ffa450edef68
2013-01-23 10:31:01 +00:00
Olivier Lamy df0a55dab7 if using useDefaultRoleName we must check role really exists
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1437035 13f79535-47bb-0310-9956-ffa450edef68
2013-01-22 16:36:38 +00:00
Olivier Lamy 078b26ba3c do not add group as role
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1437034 13f79535-47bb-0310-9956-ffa450edef68
2013-01-22 16:36:08 +00:00
Olivier Lamy 50515a3daf bad idea :-(
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1436967 13f79535-47bb-0310-9956-ffa450edef68
2013-01-22 14:41:34 +00:00
Olivier Lamy 86323ee147 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
2013-01-22 14:41:12 +00:00
Olivier Lamy 26afe7802f ensure using default role names when configured
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1436685 13f79535-47bb-0310-9956-ffa450edef68
2013-01-21 23:11:33 +00:00
Olivier Lamy 931c1cd295 fix user dn when adding user to a group
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1436674 13f79535-47bb-0310-9956-ffa450edef68
2013-01-21 22:44:00 +00:00
Olivier Lamy a30eb5b561 fix user dn when adding user to a group
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1436673 13f79535-47bb-0310-9956-ffa450edef68
2013-01-21 22:43:45 +00:00
Olivier Lamy 273b8f6ff0 use warn rather than debug to show more informations in log
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1436672 13f79535-47bb-0310-9956-ffa450edef68
2013-01-21 22:43:30 +00:00
Olivier Lamy a7c4bd1d97 LdapUserManagr can be not readOnly depending on configuration
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1436671 13f79535-47bb-0310-9956-ffa450edef68
2013-01-21 22:43:14 +00:00
Olivier Lamy 8e61f56f9d prevent NPE
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1436670 13f79535-47bb-0310-9956-ffa450edef68
2013-01-21 22:42:59 +00:00
Olivier Lamy e12772a856 make start user dn configurable
some use cn= or uid= or sn= etc..
so it's now configurable with default uid=

git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1436669 13f79535-47bb-0310-9956-ffa450edef68
2013-01-21 22:42:42 +00:00
Olivier Lamy bdb8a22269 implements those methods with ldap call
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1436466 13f79535-47bb-0310-9956-ffa450edef68
2013-01-21 16:36:10 +00:00
Olivier Lamy aa0cbd265e use cache for ldap roles
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1435593 13f79535-47bb-0310-9956-ffa450edef68
2013-01-19 16:38:38 +00:00
Olivier Lamy c40d920036 use faster method to check existence of a role
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1435284 13f79535-47bb-0310-9956-ffa450edef68
2013-01-18 18:19:12 +00:00
Olivier Lamy 8c1281d905 remove non used field
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1435279 13f79535-47bb-0310-9956-ffa450edef68
2013-01-18 17:59:19 +00:00
Olivier Lamy ad11bd30a0 last ehcache 2.5.7
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1435210 13f79535-47bb-0310-9956-ffa450edef68
2013-01-18 16:02:20 +00:00
Olivier Lamy 51eeaee59e osgi my love
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1435206 13f79535-47bb-0310-9956-ffa450edef68
2013-01-18 15:55:17 +00:00
Olivier Lamy cf426b9c63 add timing here
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1435205 13f79535-47bb-0310-9956-ffa450edef68
2013-01-18 15:55:06 +00:00
Olivier Lamy c95acb2ed6 optimize a bit to not ask roles in the loop
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1435204 13f79535-47bb-0310-9956-ffa450edef68
2013-01-18 15:54:50 +00:00
Olivier Lamy 83928256b5 take care of already existing group so do not fail
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1434059 13f79535-47bb-0310-9956-ffa450edef68
2013-01-16 17:29:39 +00:00
Olivier Lamy 8ca421a01e tomcat 7.0.35
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1434043 13f79535-47bb-0310-9956-ffa450edef68
2013-01-16 17:12:20 +00:00
Olivier Lamy 0c104fb59a typo
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1433979 13f79535-47bb-0310-9956-ffa450edef68
2013-01-16 15:20:38 +00:00
Olivier Lamy 0b09f58b18 add unit test for hasRole
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1433978 13f79535-47bb-0310-9956-ffa450edef68
2013-01-16 15:16:43 +00:00
Olivier Lamy 1222b2b217 catch NameNotFoundException to return false as we check a group existence
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1433977 13f79535-47bb-0310-9956-ffa450edef68
2013-01-16 15:16:28 +00:00
Olivier Lamy a02fa42251 map a ldap group to n roles
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1433962 13f79535-47bb-0310-9956-ffa450edef68
2013-01-16 14:48:58 +00:00
Olivier Lamy 911538263c more detail in exception
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1433743 13f79535-47bb-0310-9956-ffa450edef68
2013-01-15 23:48:15 +00:00
Olivier Lamy 50dde95a6a remove non needed cast
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1433723 13f79535-47bb-0310-9956-ffa450edef68
2013-01-15 22:50:58 +00:00
Olivier Lamy 383a176278 reuse context when possible
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1433712 13f79535-47bb-0310-9956-ffa450edef68
2013-01-15 22:32:09 +00:00
Olivier Lamy 1d6f00d786 methods already defined in parent
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1433711 13f79535-47bb-0310-9956-ffa450edef68
2013-01-15 22:31:39 +00:00
Olivier Lamy a9f22f9180 prevent stackoverflow with archiva
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1433552 13f79535-47bb-0310-9956-ffa450edef68
2013-01-15 17:51:00 +00:00
Olivier Lamy 0a77938f85 fix compilation
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1433493 13f79535-47bb-0310-9956-ffa450edef68
2013-01-15 16:23:38 +00:00
Olivier Lamy 1fc195783e move initialize method to the interface
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1433480 13f79535-47bb-0310-9956-ffa450edef68
2013-01-15 16:03:53 +00:00
Olivier Lamy 30bc1f3ad8 use getUsername rather than getPrincipal
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1433465 13f79535-47bb-0310-9956-ffa450edef68
2013-01-15 15:43:29 +00:00
Olivier Lamy 17f4210d6c use userManager#configurable rather than userManager#cached
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1433462 13f79535-47bb-0310-9956-ffa450edef68
2013-01-15 15:40:02 +00:00
Olivier Lamy 843977e157 use a rbacManager#default rather than hardcoded impl to ease alias usage
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1433460 13f79535-47bb-0310-9956-ffa450edef68
2013-01-15 15:39:45 +00:00
Olivier Lamy 4d82b78fc1 svn:ignore
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1433436 13f79535-47bb-0310-9956-ffa450edef68
2013-01-15 14:27:27 +00:00
Olivier Lamy 2bf7b343ee remove empty directories
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1433435 13f79535-47bb-0310-9956-ffa450edef68
2013-01-15 14:26:59 +00:00
Olivier Lamy 0a6be89ea5 remove redback-authorization-ldap module
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1433422 13f79535-47bb-0310-9956-ffa450edef68
2013-01-15 14:05:15 +00:00
Olivier Lamy eacd24413f we use now dynamic rbac manager
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1433420 13f79535-47bb-0310-9956-ffa450edef68
2013-01-15 14:02:16 +00:00
Olivier Lamy abefbdb136 fix compilation issues
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1433402 13f79535-47bb-0310-9956-ffa450edef68
2013-01-15 13:24:14 +00:00
Olivier Lamy aa677e08c9 cxf 2.6.5
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1433401 13f79535-47bb-0310-9956-ffa450edef68
2013-01-15 13:23:58 +00:00
Olivier Lamy 18dbda5efb ldap rbacmanager pass tck
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1433400 13f79535-47bb-0310-9956-ffa450edef68
2013-01-15 13:23:50 +00:00
Olivier Lamy fe2ebb0961 ldap rbacmanager still 2 issues to fix
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1433399 13f79535-47bb-0310-9956-ffa450edef68
2013-01-15 13:23:25 +00:00
Olivier Lamy 631814268a fix more unit tests
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1433398 13f79535-47bb-0310-9956-ffa450edef68
2013-01-15 13:22:52 +00:00