'Filtering LDAP-entries with Groovy does not work for Member attribute

I built a search filter in my groovy script (Jira Scriptrunner), which works perfectly except of the part when it comes to filtering the member-attribute:

getSearchFilter = { AndFilter currentFilter, Issue issue, String searchValue ->
    
new AndFilter() & new EqualsFilter('objectClass', 'group') & new LikeFilter('name', "EN.*") & (new OrFilter() & new LikeFilter('member', "*.TI") & | new LikeFilter('cn', "*$searchValue*") | new LikeFilter('description', "*$searchValue*"))
}

I want to see only Ldap-Entries, which have a member, which ends with ".TI".

Is the LikeFilter the appropriate method to do this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source