-
Notifications
You must be signed in to change notification settings - Fork 1.2k
LDAP: honour nested groups for MSAD #11696
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -63,7 +63,7 @@ protected LdapUser createUser(final SearchResult result, Long domainId) throws N | |
| final String firstname = LdapUtils.getAttributeValue(attributes, _ldapConfiguration.getFirstnameAttribute(domainId)); | ||
| final String lastname = LdapUtils.getAttributeValue(attributes, _ldapConfiguration.getLastnameAttribute(domainId)); | ||
| final String principal = result.getNameInNamespace(); | ||
| final List<String> memberships = LdapUtils.getAttributeValues(attributes, _ldapConfiguration.getUserMemberOfAttribute(domainId)); | ||
| final List<String> memberships = LdapUtils.getAttributeValues(attributes, getMemberOfAttribute(domainId)); | ||
|
|
||
| String domain = principal.replace("cn=" + LdapUtils.getAttributeValue(attributes, _ldapConfiguration.getCommonNameAttribute()) + ",", ""); | ||
| domain = domain.replace("," + _ldapConfiguration.getBaseDn(domainId), ""); | ||
|
|
@@ -87,7 +87,7 @@ private String generateSearchFilter(final String username, Long domainId) { | |
| usernameFilter.append((username == null ? "*" : LdapUtils.escapeLDAPSearchFilter(username))); | ||
| usernameFilter.append(")"); | ||
|
|
||
| String memberOfAttribute = _ldapConfiguration.getUserMemberOfAttribute(domainId); | ||
| String memberOfAttribute = getMemberOfAttribute(domainId); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @DaanHoogland which is used only once is it correct ?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, but it is overloaded in the AD user manager, so at this point it is not known which one will be called. |
||
| StringBuilder ldapGroupsFilter = new StringBuilder(); | ||
| // this should get the trustmaps for this domain | ||
| List<String> ldapGroups = getMappedLdapGroups(domainId); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.