1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-04 00:17:06 +00:00
mailinabox/tests
downtownallday 1f0d2ddb92 Issue #1340 - LDAP backend for accounts
This commit will:

1. Change the user account database from sqlite to OpenLDAP
2. Add policyd-spf to postfix for SPF validation
3. Add a test runner with some automated test suites

Notes:

User account password hashes are preserved.

There is a new Roundcube contact list called "Directory" that lists the users in LDAP (MiaB users), similar to what Google Suite does.

Users can still change their password in Roundcube.

OpenLDAP is configured with TLS, but all remote access is blocked by firewall rules. Manual changes are required to open it for remote access (eg. "ufw allow proto tcp from <HOST> to any port ldaps").

The test runner is started by executing tests/runner.sh. Be aware that it will make changes to your system, including adding new users, domains, mailboxes, start/stop services, etc. It is highly unadvised to run it on a production system!

The LDAP schema that supports mail delivery with postfix and dovecot is located in conf/postfix.schema. This file is copied verbatim from the LdapAdmin project (GPL, ldapadmin.org). Instead of including the file in git, it could be referenced by URL and downloaded by the setup script if GPL is an issue or apply for a PEN from IANA.

Mangement console and other services should not appear or behave any differently than before.
2020-01-17 17:03:21 -05:00
..
suites Issue #1340 - LDAP backend for accounts 2020-01-17 17:03:21 -05:00
.gitignore Issue #1340 - LDAP backend for accounts 2020-01-17 17:03:21 -05:00
fail2ban.py add a test for fail2ban monitoring managesieve 2019-08-31 09:15:41 -04:00
pip-requirements.txt in the DNS test, use dnspython3 rather than dig 2014-04-23 18:27:50 -04:00
prep_vm.sh Issue #1340 - LDAP backend for accounts 2020-01-17 17:03:21 -05:00
runner.sh Issue #1340 - LDAP backend for accounts 2020-01-17 17:03:21 -05:00
test_dns.py update test_dns 2014-06-21 12:32:20 -04:00
test_mail.py Issue #1340 - LDAP backend for accounts 2020-01-17 17:03:21 -05:00
test_smtp_server.py fix shebang lines in the tests to take advantage of any activated python environment 2014-06-08 17:31:12 -04:00
tls_results.txt update list of tls ciphers supported 2019-01-09 08:52:51 -05:00
tls.py update list of tls ciphers supported 2019-01-09 08:52:51 -05:00