Skip to content
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

ldap search filters - allow literal expression #163

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
ldap search filters - allow literal expression
Older implementation assumed all ldap filters end with "={0}"
This newer implementation allows the user to craft any legal filter expression, including complex compound expressions, like
((&(member={0})(objectclass=posixgroup)(!(cn=admin)))
above is example IPA group search filter for ECS 1.5.x

Signed-off-by: Chuck Levesque <[email protected]>
clevesque committed Dec 5, 2023
commit 5d2ed4722274e990d9f05b78fe42341fe3d67650
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ LDAP_BIND_PW: {{ auth_provider.ldap_bind_password | default(None) }}
LDAP_DN_PATTERN: {{ auth_provider.ldap_dn_pattern | default(None) }}
LDAP_GROUP_SEARCH_BASE: {{ auth_provider.ldap_search_base.group | default(None) }}
{% if auth_provider.ldap_search_filter.group is defined %}
LDAP_GROUP_SEARCH_FILTER: "({{ auth_provider.ldap_search_filter.group }}"
LDAP_GROUP_SEARCH_FILTER: "{{ auth_provider.ldap_search_filter.group }}"
{% else %}
LDAP_GROUP_SEARCH_FILTER: "({{ auth_provider.ldap_attribute.member | default('member') }}={0})"
{% endif %}