Change By: Pedro Igor (25/Oct/13 3:26 PM)
Description: Currently the LDAP store supports mapping the hierarchy for a specific type as follows:

{code}
.mapping(Group.class)
    .objectClasses("group").attribute("name", "cn", true)
    .readOnlyAttribute("createdDate", "whenCreated")
    .parentMembershipAttributeName("member") // hierarchy configuration, using the member attribute to hold a reference to child entries
{code}

Given that some LDAP trees have deep hierarchies, we need a configuration that allows to specify the search depth when returning the type and its parents:

{code}
.mapping(Group.class)
    .objectClasses("group").attribute("name", "cn", true)
    .readOnlyAttribute("createdDate", "whenCreated")
    .parentMembershipAttributeName("member") // hierarchy configuration, using the member attribute to hold a reference to child entries
    .hierarchySearchDepth(4) // only for levels will be retrieved.
{code}

We can make this option defaults to 3.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira