mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
26992bb66f
* Add method overwrite_config() This method takes 2 arguments: 1.) Environment Variable Prefix 2.) String of files separated by whitespace e.g. export LDAP_SEARCH_BASE=dc=domain,dc=loc export LDAP_BIND_PW=test overwrite_config "LDAP_" "/etc/postfix/ldap-users.cf /etc/postfix/ldap-groups.cf" Logic: + all env vars will be search for vars with the prefix LDAP_ + afterwards they will be dissembled in key value pairs LDAP_BIND_PW=test --> bind_pw test + the key and value will be substituted within the provided files via sed * Fix #503 added logic for custom configs provided at container provisioning within /tmp/docker-mailserver * Add additional unit tests for postfix ldap integration * check custom configs copied * check environment variables substituted * Fix quoting problems in tests.bats * Fix missing brackets in function _fix_var_amavis_permissions() * Fix typo in _setup_ldap * Fix notify in overwrite_config * Fix typo * Fix added dovecot ldap config provisioning again and Add notify for tasks
10 lines
303 B
CFEngine3
10 lines
303 B
CFEngine3
# Testconfig for ldap integration
|
|
bind = yes
|
|
bind_dn = cn=admin,dc=domain,dc=com
|
|
bind_pw = admin
|
|
query_filter = (&(mail=%s)(mailEnabled=TRUE))
|
|
result_attribute = mail
|
|
search_base = ou=people,dc=domain,dc=com
|
|
server_host = mail.domain.com
|
|
version = 3
|