Bug 1269826 - [QE](6.4.z) Option roleRecursion does not work in LdapRolesMappingProvider
Summary: [QE](6.4.z) Option roleRecursion does not work in LdapRolesMappingProvider
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Security
Version: 6.4.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: CR1
: EAP 6.4.12
Assignee: Ryan Emerson
QA Contact: Ondrej Lukas
URL:
Whiteboard:
Depends On:
Blocks: 1274287 eap6412-payload
TreeView+ depends on / blocked
 
Reported: 2015-10-08 09:56 UTC by Ondrej Lukas
Modified: 2017-01-17 13:11 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-17 13:11:21 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker WFLY-5491 0 Major Resolved Option roleRecursion does not work in LdapRolesMappingProvider 2017-08-04 11:50:37 UTC

Description Ondrej Lukas 2015-10-08 09:56:28 UTC
Option roleRecursion does not work in org.jboss.security.mapping.providers.role.LdapRolesMappingProvider. Only entries without recursion are found. No recursive search is done by LdapRolesMappingProvider since LdapRolesMappingProvider.rolesSearch method tries to make a recursive search with same parameters.

Use security domain configuration as following for reproducing:
<security-domain name="test">
    <authentication>
        <login-module code="UsersRoles" flag="required">
            <module-option name="rolesProperties" value="roles.properties"/>
            <module-option name="usersProperties" value="users.properties"/>
        </login-module>
    </authentication>
    <mapping>
        <mapping-module code="LdapRoles" type="role">
            <module-option name="bindDN" value="uid=admin,ou=system"/>
            <module-option name="bindCredential" value="secret"/>
            <module-option name="java.naming.provider.url" value="ldap://localhost:10389"/>
            <module-option name="roleFilter" value="member=uid\={0},ou\=People,dc\=jboss,dc\=org"/>
            <module-option name="rolesCtxDN" value="ou=Roles,dc=jboss,dc=org"/>
            <module-option name="roleAttributeID" value="cn"/>
            <module-option name="roleRecursion" value="2"/>
        </mapping-module>
    </mapping>
</security-domain>

Comment 3 Mike McCune 2016-03-28 23:25:37 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 4 Ivo Hradek 2016-11-22 07:46:26 UTC
Verified with EAP 6.4.12.CP.CR1;

Comment 5 Petr Penicka 2017-01-17 13:11:21 UTC
Retroactively bulk-closing issues from released EAP 6.4 cummulative patches.


Note You need to log in before you can comment on or make changes to this bug.