1
0
mirror of https://github.com/tomav/docker-mailserver.git synced 2024-07-04 23:21:23 +02:00
docker-mailserver/test/tests/serial
Brennan Kinney 39ae101266
tests: Change OpenLDAP image to bitnami/openldap (#3494)
**TL;DR:**
- New image is actively maintained vs existing one that is over 5 years old. 
- Slight improvement to LDAP tree config via `.ldif` files.
- No more `Dockerfile` required to build, we can just rely on `docker run`.

`osixia/openldap` has not seen any activity since Feb 2021, while our `Dockerfile` was fixed to v1.1.6` (Feb 2018).

Startup time for this new image is around 5 seconds? (_The LDAP test uses a standard 20 second timeout check to wait until the server is ready before continuing with starting the DMS image_).

This commit migrates to `bitnami/openldap` which required modifying the `01_mail-tree.ldif` to also include adding the root object to start successfully. This image is actively maintained and one of the most popular OpenLDAP images on DockerHub.

The user account `.ldif` files have minimal changes:
- Lines moved around for better organization
- Additional comments for context
- Removal of inherited `objectClass` attributes (`person`, `top`) from the `orgnizationalPerson` class. Attribute `sn` changed to long form `surname` and values corrected with `givenName`. `changetype: add` was also not necessary.

Additionally the image does not support the `.schema` format, they must be converted to `.ldif` which has been done for `postfix-book.schema`.

See PR for more details.
2023-08-22 21:38:25 +12:00
..
mail_pop3.bats tests: improve _send_email (#3105) 2023-02-24 10:44:18 +01:00
mail_with_imap.bats tests: improve _send_email (#3105) 2023-02-24 10:44:18 +01:00
mail_with_ldap.bats tests: Change OpenLDAP image to bitnami/openldap (#3494) 2023-08-22 21:38:25 +12:00
mail_with_relays.bats tests: refactor POP3, IMAP (actually SASLauthd + RIMAP) & relay (#3062) 2023-02-06 23:59:01 +01:00
no_container.bats tests: refactor POP3, IMAP (actually SASLauthd + RIMAP) & relay (#3062) 2023-02-06 23:59:01 +01:00
open_dkim.bats tests(refactor): open_dkim.bats (#3060) 2023-02-10 00:18:06 +13:00
permit_docker.bats tests: refactor 4 more tests (#3018) 2023-01-24 09:21:39 +01:00
sedfile.bats ci: refactored sedfile & used _send_mail where possible (#3103) 2023-02-22 10:26:04 +01:00
test_helper.bats ci: fix ShellCheck linting for BATS tests (#3347) 2023-05-23 14:33:58 +00:00
tests.bats ci: fix ShellCheck linting for BATS tests (#3347) 2023-05-23 14:33:58 +00:00