[
http://opencast.jira.com/browse/MH-7805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=26999#comment-26999
]
Collene Hansen commented on MH-7805:
------------------------------------
In order to get LDAP roles loaded from our LDAP server, which requires
authentication, I had to make two small changes to LDAPUserProvider.java (in
the updated method):
if (StringUtils.isNotBlank(userDn)) {
contextSource.setPassword(password);
contextSource.setUserDn(userDn);
contextSource.setAnonymousReadOnly(false); // must be set to false for our
ldap, which doesn't allow anonymous access
} else {
contextSource.setAnonymousReadOnly(true);
}
Our LDAP also will not return the attribute we wanted to use to load roles
(memberOf) unless it is explicitly during the search. Also in the updated
method, to only return the attributes requested in the ROLE_ATTRIBUTES_KEY:
userSearch.setReturningAttributes(roleAttributesGlob.split(","));
> Enable authenticated LDAP searches in LDAPUserProvider
> ------------------------------------------------------
>
> Key: MH-7805
> URL: http://opencast.jira.com/browse/MH-7805
> Project: Matterhorn Project
> Issue Type: Task
> Components: Architecture & Services
> Affects Versions: 1.2
> Reporter: Josh Holtzman
> Assignee: Josh Holtzman
> Fix For: 1.2
>
> Attachments: federated_roles.png
>
>
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
Matterhorn mailing list
[email protected]
http://lists.opencastproject.org/mailman/listinfo/matterhorn
To unsubscribe please email
[email protected]
_______________________________________________