Commit Graph

56 Commits

Author SHA1 Message Date
Tim Donohue
229870175a Merge pull request #9148 from wwuck/bugfix/ldap-operational-attributes
Return both user and operational LDAP attributes
2023-11-08 16:40:29 -06:00
wwuck
bb6498ed5e Add a null check when assigning ldap groups
Prevent NullReferenceException by checking if the group list is null

Fixes #8920
2023-10-28 00:32:54 +11:00
wwuck
56b7cbf4db Return both user and operational LDAP attributes
Explicitly request both user and operation attributes
for LDAP group search as the default searching does not
include operational attributes.

This is required to fetch the memberOf attribute when checking
LDAP group membership.

Fixes #9151
2023-10-27 22:52:23 +11:00
Michael Plate
c919df81fb LDAP Auth extended for many groups 2023-04-28 17:09:55 +02:00
Luca Giamminonni
f2eb9c55b4 [CST-6152] Renamed challenge to currentPassword 2022-09-20 15:29:20 +02:00
Luca Giamminonni
bfb0736ab7 [CST-6152] Password add operation refactoring to include challenge in the value 2022-08-03 17:09:09 +02:00
eskander
aafa2c7d25 [CST-6152] allow password change only if a challenge is resolved. 2022-07-01 14:04:23 +02:00
Yana De Pauw
19371747aa 86163: Feedback on Shibboleth changes 2021-12-22 17:44:54 +01:00
Yana De Pauw
16e704a285 85276: Store and retrieve the Authentication method in the JWT 2021-12-01 15:33:13 +01:00
Mark H. Wood
b43e5dfdd8 [DS-4548] Rename DSpace's LogManager to LogHelper. 2021-08-04 11:41:18 -04:00
Tim Donohue
d2386bc4ab Merge pull request #3208 from tubhh/LDAP_bugfix_groups
Corrects reading of configuration options in LDAPAuthentication
2021-03-29 11:29:27 -05:00
Oliver Goldschmidt
2d069b019a fixes #3207: corrects reading of configuration options 2021-03-25 12:37:22 +01:00
Oliver Goldschmidt
68d311ddd0 fixes style issue 2021-03-25 11:22:17 +01:00
Oliver Goldschmidt
e4349db70c return to SQLException catch and testing for Nullpointers manually 2021-03-25 10:55:54 +01:00
Oliver Goldschmidt
ede3f11073 use generic exception instead of special SQLException 2021-03-24 14:24:48 +01:00
Mark H. Wood
e94911ba19 Replace deprecated setMetadata() that uses removed field names. #2956
Once upon a time, DSOs had dedicated fields for some metadata.  These were
moved into the Metadatavalue table long ago, but there were still methods
which used the old field names instead of proper MetadataField triplets.
2020-11-17 15:37:53 -05:00
Mark H. Wood
95d0a2bf57 Remove long-deprecated ConfigurationManager. 2020-11-17 13:30:00 -05:00
Patrick Trottier
7f4b4e9f8a Convert getLogger() and Log4J imports for Log4J 2 2018-11-09 08:41:42 -05:00
Tim Donohue
200cede397 Upgrade to commons-lang3 to avoid dependency conv issues. 2018-11-08 20:35:57 +00:00
Raf Ponsaerts
8ffbec58ca [DS-3782] Upgrade Commons Collections to version 4 2018-07-18 15:53:11 +02:00
Tom Desair
55f5571e1d [DS-3819] Revert back to 401 status and move login URL to WWW-Authenticate header 2018-06-28 13:21:57 +02:00
Tim Donohue
8a48f782ea Fix dspace-api module per new code style 2018-02-21 15:23:58 -06:00
Terry W Brady
fe3a7722d1 remove methods that are not applicable 2018-01-25 15:29:45 -08:00
Terry W Brady
96bb5eeca7 Update the description for loginPageURL 2018-01-24 10:22:56 -08:00
Terry W Brady
235b85e201 use loginPageURL 2018-01-24 09:16:22 -08:00
Luigi Andrea Pascarelli
f577074e69 DS-3346 change and remove deprecated setIgnoreAuthorization in favour of turnOff/restore 2016-09-28 23:39:24 +02:00
Dan Scott
063085741b Initialize LDAP context object for anonymous searching
In commit 7cf90d3db2 we added support for StartTLS in LDAP, but
opened up a path for a NullPointerException when anonymous searching of
the LDAP directory is in use.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
2016-07-29 15:47:16 -04:00
Tim Donohue
f92fa6605d DS-3154: more dspace-api fixes, alphabetically through org.dspace.core 2016-04-29 13:00:13 -05:00
Christian Scheible
7cf90d3db2 [DS-1518] Support of StartTLS in LDAPAuthentication. 2016-02-10 16:50:19 +01:00
KevinVdV
54222f3c1d DSpace refactored service api 2015-08-19 11:54:32 +02:00
Tim Donohue
b3647121cb Fix for DS-1781. Also, log a warning if email cannot be determined, but still set to netid. 2014-09-26 14:54:46 -05:00
Tim Donohue
0a4ec51717 Merge pull request #366 from helix84/DS-1739-ldap-null-in-username
DS-1739 fix LDAP auth appending "null" to username
2013-12-04 11:54:44 -08:00
Ivan Masár
6877ab67a6 fix a bunch of typos 2013-11-13 23:01:50 +01:00
Ivan Masár
88b9d8fe78 DS-1739 fix LDAP auth appending "null" to username 2013-10-29 23:03:11 +01:00
Ivan Masár
e41d5818df DS-1690 assign DSpace group based on LDAP attribute value 2013-10-07 16:33:21 +02:00
LifeH2O
803f70342f DS-1576 fix names of LDAP configuration properties 2013-06-17 13:00:26 +02:00
Ivan Masár
03f0ed903e fix whitespace in LDAPAuthentication.java 2012-09-17 10:39:29 +02:00
Ivan Masár
8c4341357b fix the special case of anonymous LDAP search
Hierarchical LDAP originally assumed that when search.user is not
set, anonymous search is performed. We now assume that if it's
not set, simple LDAP authentication is performed. That retains
configuration backward comaptibility for the two most common cases.
The special case of anonymous search now requires search.anonymous
to be set to true, which means old installations using this setup
will have to add this config property.
2012-09-17 10:29:40 +02:00
Ivan Masár
3c45c1bc67 consolidate LDAP and LDAPHierarchical auth
Thanks to the previously merged DS-1180, the LDAPHierarchicalAuthentication
method gaind the capabilities of LDAPAuthentication. This commit renames
LDAPHierarchicalAuthentication to LDAPAuthentication and removes the
original LDAPAuthentication.
2012-09-17 10:29:40 +02:00
Ivan Masár
c671278070 remove executable attr from regular files 2012-06-21 11:13:54 +02:00
Stuart Lewis
ebc67a4ae8 New modules/authenticate-ldap.cfg
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@6568 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2011-08-19 04:13:44 +00:00
Stuart Lewis
63949a16cb [DS-827] - Autoregister in LDAPHierarchicalAuthentication is incompatible with ldap.netid_email_domain option + patch to fix tabindex in LDAP login form
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@6455 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2011-07-07 07:13:02 +00:00
Mark Diggory
0d30c67d9e Updated Licenses
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@5844 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2010-11-12 05:29:14 +00:00
Graham Triggs
cb80f0cad4 [DS-707] Remove useless methods
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@5664 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2010-10-26 21:31:29 +00:00
Graham Triggs
6f9d4e28ab [DS-707] Style / readability fixes
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@5579 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2010-10-24 09:06:59 +00:00
Graham Triggs
d032c565e0 [DS-707] Style / readability improvements
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@5565 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2010-10-22 23:19:13 +00:00
Graham Triggs
e279dcbe3d [DS-707] Remove unused local variables
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@5535 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2010-10-21 23:46:13 +00:00
Graham Triggs
4c3928d6b5 [DS-707] Make inner classes static
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@5471 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2010-10-19 20:53:55 +00:00
Stuart Lewis
827c639926 Update code licence to The DSpace Foundation
git-svn-id: http://scm.dspace.org/svn/repo/trunk@3735 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2009-04-24 04:05:53 +00:00
Andrea Bollini
e3f9025213 [DS-60] netid.toLowerCase() in different classes and methods - ID: 2458187
git-svn-id: http://scm.dspace.org/svn/repo/branches/dspace-1_5_x@3575 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2009-03-11 14:33:44 +00:00