mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 06:53:09 +00:00
Merge pull request #9148 from wwuck/bugfix/ldap-operational-attributes
Return both user and operational LDAP attributes
This commit is contained in:
@@ -494,6 +494,8 @@ public class LDAPAuthentication
|
|||||||
try {
|
try {
|
||||||
SearchControls ctrls = new SearchControls();
|
SearchControls ctrls = new SearchControls();
|
||||||
ctrls.setSearchScope(ldap_search_scope_value);
|
ctrls.setSearchScope(ldap_search_scope_value);
|
||||||
|
// Fetch both user attributes '*' (eg. uid, cn) and operational attributes '+' (eg. memberOf)
|
||||||
|
ctrls.setReturningAttributes(new String[] {"*", "+"});
|
||||||
|
|
||||||
String searchName;
|
String searchName;
|
||||||
if (useTLS) {
|
if (useTLS) {
|
||||||
@@ -700,13 +702,13 @@ public class LDAPAuthentication
|
|||||||
/*
|
/*
|
||||||
* Add authenticated users to the group defined in dspace.cfg by
|
* Add authenticated users to the group defined in dspace.cfg by
|
||||||
* the authentication-ldap.login.groupmap.* key.
|
* the authentication-ldap.login.groupmap.* key.
|
||||||
*
|
*
|
||||||
* @param dn
|
* @param dn
|
||||||
* The string containing distinguished name of the user
|
* The string containing distinguished name of the user
|
||||||
*
|
*
|
||||||
* @param group
|
* @param group
|
||||||
* List of strings with LDAP dn of groups
|
* List of strings with LDAP dn of groups
|
||||||
*
|
*
|
||||||
* @param context
|
* @param context
|
||||||
* DSpace context
|
* DSpace context
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user