-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Postfix LDAP - Add logic to provide custom configs at /tmp/docker-mailserver/ and Add global variable to specify the query_filter #503
Comments
Ok, i investigated this a little bit. While restructuring the start-mailserver.sh an important part has been dropped (not on purpose): for i in 'users' 'groups' 'aliases'; do |
Thanks for the feedback @alinmear, we should add more tests and doc on LDAP. |
@alinmear, could you submit a PR for that? |
yes, will. had no time so far. I will do my best, to make a pr! |
…container provisioning within /tmp/docker-mailserver
* 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 docker-mailserver#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
Right now we have no chance to specify the query_filter within the ldap-{user,aliases,group}.conf at /etc/postfix. I don't know why we missed to implement that. I would work on it.
I would suggest the following logic:
The text was updated successfully, but these errors were encountered: