Commit Graph

95 Commits

Author SHA1 Message Date
Sascha Vogt d0bc52fff1 Fix for MRM-1873 which broke AD group assignments
Escaping only needed in the LDAP filter string
2015-05-28 12:00:34 +02:00
Olivier Lamy 80931e6476 [maven-release-plugin] prepare for next development iteration 2015-02-22 22:20:24 +11:00
Olivier Lamy 7cc90a66af [maven-release-plugin] prepare release redback-2.3 2015-02-22 22:20:15 +11:00
Chris Heyne 221aa62c8f Escape user DN used to build group filter. Fixes MRM-1873 2015-02-12 10:57:02 -06:00
Olivier Lamy 694e1be55e format code 2014-10-14 17:12:33 +11:00
Jeroen Hoek 1e5c5675a7 Work with users defined in LDAP posixGroups.
Add a configuration key LDAP_DN_ATTRIBUTE
2014-10-07 13:18:41 +02:00
Olivier Lamy e15dad3592 [MRM-1486] ldap.config.mapper.attribute.user.filter using ldap not working correctly with commas. 2014-06-20 14:48:01 +10:00
Olivier Lamy 95dfab2b56 cleanup 2014-06-20 11:08:57 +10:00
Olivier Lamy 4cb59feb27 use assertj as fest-assert is not maintained anymore
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1581245 13f79535-47bb-0310-9956-ffa450edef68
2014-03-25 05:59:39 +00:00
Olivier Lamy b524b55203 [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1558685 13f79535-47bb-0310-9956-ffa450edef68
2014-01-16 03:25:47 +00:00
Olivier Lamy 6cdf2e135b [maven-release-plugin] prepare release redback-2.2
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1558683 13f79535-47bb-0310-9956-ffa450edef68
2014-01-16 03:25:16 +00:00
Olivier Lamy eadb1849d7 add a method to find user without using caching: jdo update need the object detach from database not a cached one
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1551098 13f79535-47bb-0310-9956-ffa450edef68
2013-12-16 01:26:26 +00:00
Olivier Lamy 7c8d917eca use last fest-assert version
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1547789 13f79535-47bb-0310-9956-ffa450edef68
2013-12-04 12:37:19 +00:00
Olivier Lamy a26bbf6561 formatting
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1539895 13f79535-47bb-0310-9956-ffa450edef68
2013-11-08 01:22:36 +00:00
Olivier Lamy 21834d0808 [MRM-1791] ldap group mapping support for active directory
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1539894 13f79535-47bb-0310-9956-ffa450edef68
2013-11-08 01:22:14 +00:00
Olivier Lamy 48c2af9ccd [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1479458 13f79535-47bb-0310-9956-ffa450edef68
2013-05-06 02:31:43 +00:00
Olivier Lamy 2ed2373b1e [maven-release-plugin] prepare release redback-2.1
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1479456 13f79535-47bb-0310-9956-ffa450edef68
2013-05-06 02:30:46 +00:00
Olivier Lamy 6eb88862d0 remove unused import
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1479090 13f79535-47bb-0310-9956-ffa450edef68
2013-05-04 12:42:35 +00:00
Olivier Lamy 4a57b05074 move LdapConnection to an interface
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1477971 13f79535-47bb-0310-9956-ffa450edef68
2013-05-01 12:19:20 +00:00
Olivier Lamy d1b77ab248 rename to default to have an interface
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1477970 13f79535-47bb-0310-9956-ffa450edef68
2013-05-01 12:17:49 +00:00
Olivier Lamy 4ecba94f20 rename to default to have an interface
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1477968 13f79535-47bb-0310-9956-ffa450edef68
2013-05-01 12:17:23 +00:00
Olivier Lamy 29ab886c64 ensure we use ssl and ldaps is deprecated
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1477967 13f79535-47bb-0310-9956-ffa450edef68
2013-05-01 12:15:54 +00:00
Olivier Lamy 88610b6e15 add some debug
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1476566 13f79535-47bb-0310-9956-ffa450edef68
2013-04-27 12:53:19 +00:00
Olivier Lamy 9d2ddec92b fix javadoc
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1460518 13f79535-47bb-0310-9956-ffa450edef68
2013-03-25 03:27:34 +00:00
Olivier Lamy e48423276c removed non needed commented code
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1460501 13f79535-47bb-0310-9956-ffa450edef68
2013-03-25 01:18:55 +00:00
Olivier Lamy ee90856b84 remove non needed method
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1460500 13f79535-47bb-0310-9956-ffa450edef68
2013-03-25 01:10:27 +00:00
Olivier Lamy a8f651e8a6 better logging
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1451780 13f79535-47bb-0310-9956-ffa450edef68
2013-03-01 23:44:13 +00:00
Olivier Lamy 490f1f5656 fix typo
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1445541 13f79535-47bb-0310-9956-ffa450edef68
2013-02-13 10:19:24 +00:00
Olivier Lamy 7ba48cf494 ensure a named bean is used
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1441828 13f79535-47bb-0310-9956-ffa450edef68
2013-02-02 23:06:40 +00:00
Olivier Lamy 69006984c4 add javadoc
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1440556 13f79535-47bb-0310-9956-ffa450edef68
2013-01-30 17:49:01 +00:00
Olivier Lamy 9340fb401e add default in memory implementation for testing purpose
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1440552 13f79535-47bb-0310-9956-ffa450edef68
2013-01-30 17:46:43 +00:00
Olivier Lamy 93b6a7718d cleanup interface and add default implementation
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1440551 13f79535-47bb-0310-9956-ffa450edef68
2013-01-30 17:46:05 +00:00
Olivier Lamy b10b504562 change signatures to ease ui
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1440547 13f79535-47bb-0310-9956-ffa450edef68
2013-01-30 17:42:14 +00:00
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