By: Matthew Daubney user 29 Aug 2019 at 4 a.m. CDT

3 Responses
Matthew Daubney gravatar
Expected Behavior: When cache refresh syncs memberOf from and Active Directory server, it pulls in all groups, including those in which membership comes from a group nested in a group Actual Behavior: All groups listed in a users memberOf field are pulled in, except those that come from a membership from a group nested in a group. Apparently this a thing with AD. Is there anyway to turn use the LDAP_MATCHING_RULE_IN_CHAIN AD rule? ( https://docs.microsoft.com/en-gb/windows/win32/adsi/search-filter-syntax ) Thanks

By Aliaksandr Samuseu staff 30 Aug 2019 at 3:23 p.m. CDT

Aliaksandr Samuseu gravatar
Hi, Matthew. Cache Refresh is, by design, a rather simple tool. It will request LDAP attributes you specify in "Source attributes" list, and will craft a local user entry using them (subject to mapping rules). So if you request "memberOf", you'll get the same list of values you would get with LDAP search for this user, nothing more. For anything more complex than that, there is custom script for CR feature, where you can implement additional actions, inlcuding making additional searches for more group memberships. >Apparently this a thing with AD. Is there anyway to turn use the LDAP_MATCHING_RULE_IN_CHAIN AD rule? Interesting. I'll try to test it and let you know. Overall, I think we could make use of more flexibility in cofiguring what LDAP queries CR uses when searching for users.

By Aliaksandr Samuseu staff 30 Aug 2019 at 5:33 p.m. CDT

Aliaksandr Samuseu gravatar
I've looked into it briefly, and I'm not sure this matching rule is something that might help. In any case, I guess if you'll be able to find an LDAP filter which produces result you need, you may try to add it to "Custom LDAP filter" on the page (everything added there will be attached to auto-generated filter via `&` operator). Or you can write a custom script which will do additional searches against your AD. Not sure I can offer a better solution at the moment.

By Matthew Daubney user 02 Sep 2019 at 7:29 a.m. CDT

Matthew Daubney gravatar
Thanks. I'm on leave at the moment, but will take a look when I get back into the office next Monday and will report back. :)