Make filter configurable

This commit is contained in:
Morre 2020-07-10 14:19:22 +02:00
parent b820cc001d
commit d2b051f2dd
No known key found for this signature in database
GPG key ID: 5D9B9B1B8F424BBC
2 changed files with 2 additions and 2 deletions

View file

@ -26,7 +26,7 @@ postfix:
bind_dn: "" bind_dn: ""
bind_pw: "" bind_pw: ""
search_base: ou=users,dc=example,dc=com search_base: ou=users,dc=example,dc=com
query_filter: "" filter: "uid=%u"
result_attributes: result_attributes:
aliases: mailForwardingAddress aliases: mailForwardingAddress
mailboxes: mailMessageStore mailboxes: mailMessageStore

View file

@ -8,7 +8,7 @@ ldap_bind_dn: {{ postfix.ldap.bind_dn }}
ldap_bind_pw: {{ postfix.ldap.bind_pw }} ldap_bind_pw: {{ postfix.ldap.bind_pw }}
ldap_search_base: {{ postfix.ldap.search_base }} ldap_search_base: {{ postfix.ldap.search_base }}
ldap_scope: sub ldap_scope: sub
ldap_filter: uid=%u ldap_filter: {{ postfix.ldap.filter }}
ldap_auth_method: bind ldap_auth_method: bind
{% else %} {% else %}
# LDAP is not configured for this server. # LDAP is not configured for this server.