karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kurt Westerfeld (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (KARAF-606) JAAS: Allow LDAPLoginModule to supply role "DN" from LDAP group search
Date Mon, 02 May 2011 04:14:03 GMT

     [ https://issues.apache.org/jira/browse/KARAF-606?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Kurt Westerfeld updated KARAF-606:

    Attachment: KARAF-606.patch

Patch to handle non-default attributes by using SearchControls.setReturningAttributes() and
supplying "roleNameAttribute" explicitly.

This allows any non-default (ie. computed, synthetic) LDAP attribute to be retrieved. 

Previous version depended on the attribute being sent back as a result of the query.  This
change makes the attribute requirement explicit.

To retrieve the distinguished name, the configuration must specify "entryDN" or "distinguishedName",
depending on the directory implementation.

> JAAS: Allow LDAPLoginModule to supply role "DN" from LDAP group search
> ----------------------------------------------------------------------
>                 Key: KARAF-606
>                 URL: https://issues.apache.org/jira/browse/KARAF-606
>             Project: Karaf
>          Issue Type: Improvement
>          Components: runtime
>    Affects Versions: 2.2.0
>         Environment: Windows/any
>            Reporter: Kurt Westerfeld
>         Attachments: KARAF-606.patch
> The LDAPLoginModule has the ability to supply a configuration variable (role.name.attribute)
to use when creating a role.  This value can be changed from "cn" to any of a number LDAP
attributes.  However it cannot access the actual distinguished name of the queried groups
while processing a login, as "dn" or "distinguishedName", "entryDN", etc., are not universally
supported across LDAP implementations as an attribute.  
> Proposal to special case "dn" and use javax.naming.directory.SearchResult.getNameInNamespace(),
which returns the dn of the found groups when converting to a role.
> This is a very small change; will provide a patch.

This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message