Commit Graph

71 Commits

Author SHA1 Message Date
Olivier Lamy 921d02c1ad add @since
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1439704 13f79535-47bb-0310-9956-ffa450edef68
2013-01-28 23:58:12 +00:00
Olivier Lamy 17c7f540f3 add classes
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1439701 13f79535-47bb-0310-9956-ffa450edef68
2013-01-28 23:55:10 +00:00
Olivier Lamy ef0cad75d3 extract to a component to ease override with Archiva
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1439700 13f79535-47bb-0310-9956-ffa450edef68
2013-01-28 23:54:54 +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 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 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 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 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 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 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 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 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 030ecf0664 fix some unit test for Ldap rbacmanager impl
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1433396 13f79535-47bb-0310-9956-ffa450edef68
2013-01-15 13:22:03 +00:00
Olivier Lamy 56f7b83925 add ldap rbac manager
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1433395 13f79535-47bb-0310-9956-ffa450edef68
2013-01-15 13:20:57 +00:00
Olivier Lamy 850575cd71 add method to get directly roles for a user
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1433392 13f79535-47bb-0310-9956-ffa450edef68
2013-01-15 13:19:24 +00:00
Olivier Lamy 710b4632d7 fix default groupdn
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1430635 13f79535-47bb-0310-9956-ffa450edef68
2013-01-08 23:55:16 +00:00
Olivier Lamy 05703e5a23 default groupsdb is basedn
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1430626 13f79535-47bb-0310-9956-ffa450edef68
2013-01-08 23:20:25 +00:00
Olivier Lamy 8dbdf40af5 get ldap mapping if existing from security.properties
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1430608 13f79535-47bb-0310-9956-ffa450edef68
2013-01-08 22:47:29 +00:00
Olivier Lamy c52ea479b3 [MRM-1736] map roles to ldap groups
remove hardcoded tests !

git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1430603 13f79535-47bb-0310-9956-ffa450edef68
2013-01-08 22:46:52 +00:00
Olivier Lamy 066e356045 [MRM-1736] map roles to ldap groups
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1430601 13f79535-47bb-0310-9956-ffa450edef68
2013-01-08 22:46:30 +00:00
Olivier Lamy e373179e34 move to correct package
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1429037 13f79535-47bb-0310-9956-ffa450edef68
2013-01-04 19:00:59 +00:00
Olivier Lamy e12526fa50 move ldap role mapper to ldap common
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1429033 13f79535-47bb-0310-9956-ffa450edef68
2013-01-04 19:00:15 +00:00
Olivier Lamy 56b338cb19 move user concerns to a specific package
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1428474 13f79535-47bb-0310-9956-ffa450edef68
2013-01-03 17:03:03 +00:00
Olivier Lamy 72e1da8091 add a ldap role mapper
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1428472 13f79535-47bb-0310-9956-ffa450edef68
2013-01-03 17:02:10 +00:00
Olivier Lamy 0fd70854be make initilialze method public for dynamic reload
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1428125 13f79535-47bb-0310-9956-ffa450edef68
2013-01-03 00:15:50 +00:00
Olivier Lamy 32df571259 use indexOf(char)
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1427141 13f79535-47bb-0310-9956-ffa450edef68
2012-12-31 14:34:49 +00:00
Olivier Lamy 55ebedebde make more sense to have this cookie expire value in days
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1424209 13f79535-47bb-0310-9956-ffa450edef68
2012-12-19 23:05:17 +00:00
Olivier Lamy 8e5d19325d remove password from toString method
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1421464 13f79535-47bb-0310-9956-ffa450edef68
2012-12-13 20:03:07 +00:00
Olivier Lamy ea77187178 add a method to be able to test a LdapConnectionConfiguration
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1421463 13f79535-47bb-0310-9956-ffa450edef68
2012-12-13 20:02:47 +00:00
Olivier Lamy 88e6fb2c2a make initialize method public to be able to re initiliaze ldap configuration
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1419886 13f79535-47bb-0310-9956-ffa450edef68
2012-12-10 23:57:34 +00:00
Olivier Lamy 5b8146ea0c oups fix compilation
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1419844 13f79535-47bb-0310-9956-ffa450edef68
2012-12-10 22:39:09 +00:00
Olivier Lamy 8e5b125dfb make that more easy to override
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1419841 13f79535-47bb-0310-9956-ffa450edef68
2012-12-10 22:33:25 +00:00
Olivier Lamy 610002ab5f user now track userManagerImpl id they come from
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1418716 13f79535-47bb-0310-9956-ffa450edef68
2012-12-08 17:40:08 +00:00
Olivier Lamy 5c55300800 userConfiguration#default bean must be know declared tru an alias to avoid duplicate bean ids
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1417908 13f79535-47bb-0310-9956-ffa450edef68
2012-12-06 14:31:05 +00:00
Olivier Lamy 2907ffa101 use a more classic name for this bean userConfiguration#default
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1417782 13f79535-47bb-0310-9956-ffa450edef68
2012-12-06 09:09:45 +00:00
Olivier Lamy f66c4d295a moving configuration keys to a constant class
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1417537 13f79535-47bb-0310-9956-ffa450edef68
2012-12-05 17:21:51 +00:00
Olivier Lamy 6818a0097e use a 'namespace' for user
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1417397 13f79535-47bb-0310-9956-ffa450edef68
2012-12-05 12:57:13 +00:00
Olivier Lamy 3c6f8dc455 moving configuration keys to a constant class
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1417396 13f79535-47bb-0310-9956-ffa450edef68
2012-12-05 12:56:48 +00:00
Olivier Lamy b776125532 remove non use constructor
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1414472 13f79535-47bb-0310-9956-ffa450edef68
2012-11-27 23:43:28 +00:00
Olivier Lamy 8bf7b14a83 extract an interface to be able to override the impl in archiva
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1414452 13f79535-47bb-0310-9956-ffa450edef68
2012-11-27 22:50:13 +00:00
Olivier Lamy b23cf34cc0 rename UserConfiguration to DefaultUserConfiguration to be able to extract an interface
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1414451 13f79535-47bb-0310-9956-ffa450edef68
2012-11-27 22:48:18 +00:00
Olivier Lamy 318e1f0ea6 remove this ugly Object getPrincipal
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1412684 13f79535-47bb-0310-9956-ffa450edef68
2012-11-22 21:55:21 +00:00
Olivier Lamy fc119b9d05 [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1390503 13f79535-47bb-0310-9956-ffa450edef68
2012-09-26 14:06:24 +00:00
Olivier Lamy 1b92f2a311 [maven-release-plugin] prepare release redback-2.0
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1390501 13f79535-47bb-0310-9956-ffa450edef68
2012-09-26 14:06:04 +00:00