carbon-kernel icon indicating copy to clipboard operation
carbon-kernel copied to clipboard

Subtree scope is not set when retrieving display names from LDAP user store

Open vihanga-liyanage opened this issue 6 years ago • 0 comments

Moved from https://wso2.org/jira/browse/IDENTITY-7266

Please check here [1] inside "doGetDisplayNamesForInternalRole" method. We are not setting the scope as subtree. It is needed to set it search inside multiple tree

By default it is set to one level scope [2]

[1] https://github.com/wso2/carbon-kernel/blob/4.4.x/core/org.wso2.carbon.user.core/src/main/java/org/wso2/carbon/user/core/ldap/ReadOnlyLDAPUserStoreManager.java#L1039

[2] https://docs.oracle.com/javase/8/docs/api/javax/naming/directory/SearchControls.html

vihanga-liyanage avatar Jun 13 '19 03:06 vihanga-liyanage