Skip to content

Commit

Permalink
Allow complex expressions in external authentication LDAP search filt…
Browse files Browse the repository at this point in the history
…ters

Add option for complex LDAP search filters. 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))). This example would handle the IPA group search filter for ECS 1.5.x

Signed-off-by: Chuck Levesque <clevesque@cloudera.com>
  • Loading branch information
clevesque committed Dec 7, 2023
1 parent b5b5c88 commit 1d75be0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ LDAP_URL: {{ auth_provider.ldap_url | default(None) }}
LDAP_USER_SEARCH_BASE: {{ auth_provider.ldap_search_base.user | default(None) }}
{% if auth_provider.ldap_search_filter.user is defined %}
LDAP_USER_SEARCH_FILTER: "{{ auth_provider.ldap_search_filter.user }}"
{% else % }
{% else %}
LDAP_USER_SEARCH_FILTER: "({{ auth_provider.ldap_attribute.user | default('sAMAccountName') }}={0})"
{% endif %}
NT_DOMAIN: {{ auth_provider.domain | default(None) }}
Expand Down

0 comments on commit 1d75be0

Please sign in to comment.