Antoine Nguyen
1827bce52d
Run doveadm command as vmail user.
...
see #2084
2021-02-11 17:16:21 +01:00
Antoine Nguyen and GitHub
a40d46db94
Feature/tfa ( #2037 )
...
* WIP: two-factor authentication.
* Added support for 2FA using TOTP devices.
see #1760 #1672 #1455
* Added documentation.
* Updated documentation.
* Added missing qrcode requirement.
* Fixed unit tests.
2020-10-21 10:42:56 +02:00
Antoine Nguyen
83809c2536
Enable policyd for new deployments.
2020-10-02 19:53:21 +02:00
Antoine Nguyen and GitHub
3df446f657
Moving back the stats module to the core. ( #2011 )
...
* Moving back the stats module to the core.
* Added system packages to build RRDtool.
* Fixed unit tests.
* Improved coverage.
2020-09-17 16:02:39 +02:00
Antoine Nguyen and GitHub
44d5e80aee
Added alarms for domain/mailboxes. ( #2009 )
...
* Added alarms for domain/mailboxes.
* Try to close connections in thread.
* Make sure to close database connections in threads.
* Use TransactionTestCase for policyd because we use threads.
* Added unit test.
2020-09-11 17:27:41 +02:00
Antoine Nguyen
2aab127a4b
Added logging configuration for new policy daemon.
2020-06-18 14:41:25 +02:00
Antoine Nguyen
57d68390c5
Added greenlet support for coverage.
2020-06-17 12:03:12 +02:00
Antoine Nguyen
49017ac374
Fixed pep8 issues.
2020-05-05 21:50:12 +02:00
Antoine Nguyen
5497930244
Merge branch 'master' of github.com:modoboa/modoboa
2020-05-05 21:36:54 +02:00
Clément Rivière and GitHub
8fa842d92c
LDAP Authentication - Webmail / Dovecot ( #1876 )
...
* Adding settings options for dovecot ldap sync
* Creating update_dovecot_conf command
* Adding async command to update dovecot ldap conf
* Adding unit tests
* Adding port to dovecot generated uris & unit tests
* Code improvement & doc update & tests update
2020-05-05 21:36:29 +02:00
Antoine Nguyen
09fb2201a8
Fixed error.
2020-05-05 08:11:47 +02:00
Antoine Nguyen
9a13121fde
Improved coverage.
2020-04-21 13:58:31 +02:00
Antoine Nguyen
161ddb460a
Improved coverage.
2020-04-21 12:49:07 +02:00
Antoine Nguyen
64ba1990f7
Added unit tests.
2020-04-21 11:56:18 +02:00
Antoine Nguyen
cb0197c609
Retrieve password by SMS.
...
see #1877
2020-04-21 11:34:29 +02:00
ClemRiviere
e2492a08b0
Code improvements
2020-04-15 15:05:57 +02:00
ClemRiviere
613cf1546a
Adding unit tests
2020-04-15 13:32:50 +02:00
root and ClemRiviere
ac431f77e8
Added setting to bypass dashboard RSS timeout
2020-04-15 13:32:50 +02:00
Antoine Nguyen
8e5dfd67ad
Added clean method for ldap_search_filter.
...
see #1872
2020-04-07 17:31:42 +02:00
Antoine Nguyen
5b9b494593
ldap auth: fixed unit test.
2020-03-30 12:33:08 +02:00
Antoine Nguyen
1e12ccad20
LDAP auth: fixed wrong setting name.
2020-03-30 09:44:24 +02:00
Antoine Nguyen
9af5fa2b48
ldapauth: fixed wrong setting names.
2020-03-26 11:19:22 +01:00
jeromelebleu and GitHub
916b4a2367
Update settings template and test_project's one ( #1830 )
2020-02-27 10:27:22 +01:00
Antoine Nguyen and GitHub
cb9bd8b2e8
Added setting to define external password url. ( #1849 )
...
* Added setting to define external password url.
see #1848
* Fixed tests.
2020-02-27 10:24:51 +01:00
Antoine Nguyen and GitHub
a086a1b81c
New management command to import LDAP accounts. ( #1845 )
...
* New management command to import LDAP accounts.
see #1844
2020-02-24 09:14:03 +01:00
Antoine Nguyen
9e328a3c2a
Retrieve LDAP groups with AD.
2020-02-20 17:26:09 +01:00
Antoine Nguyen
a9b56dde07
Fixed tests.
2020-02-17 18:03:27 +01:00
Antoine Nguyen
4f5f8ba3fa
Added support for a secondary LDAP server.
...
see #1842
2020-02-17 17:27:25 +01:00
Antoine Nguyen
9c85cba068
Fixed test.
2020-02-17 16:45:09 +01:00
Antoine Nguyen
f8d5f072f8
Fixed migration conflict.
2020-01-22 09:48:06 +01:00
Antoine Nguyen and GitHub
fac80445e4
Merge pull request #1829 from modoboa/feature/mail_notif_when_update_avail
...
Send email notification when new update is available.
2020-01-22 09:34:45 +01:00
Antoine Nguyen and GitHub
7356d065d9
Merge pull request #1822 from jeromelebleu/django22
...
Bump Django to 2.2
2020-01-22 09:33:11 +01:00
Antoine Nguyen
e056a99311
Send email notification when new update is available.
...
see #1402
2020-01-21 17:16:27 +01:00
Antoine Nguyen
fe1845cd62
Better fix.
2020-01-14 14:14:15 +01:00
Antoine Nguyen
8c0d9516c3
Remove domain permissions when role is SimpleUsers.
...
see #1815
2020-01-14 12:22:18 +01:00
Jérôme Lebleu
8d1f1e58ae
Bump Django to 2.1 and rename view permissions
...
See: https://docs.djangoproject.com/en/stable/releases/2.1/
The main change is the addition of a view permission. To prevent
redundancy, the custom and current `view_` permissions are renamed to
use the new ones - e.g. `view_aliases` is renamed to `view_alias`. Only
`view_domain` is used to check permissions and `view_domains` is not
deleted in case customizations have been made by user - in such case
a manual squash is needed.
2020-01-13 14:24:25 +01:00
Jérôme Lebleu
40e6dc838f
core: use class-based views for auth
2020-01-13 14:24:25 +01:00
Jérôme Lebleu
817015688d
Bump Django to 2.0 and simplify URL routing syntax
...
See: https://docs.djangoproject.com/en/stable/releases/2.0/
The only required changes are - as reported in #1466 - the addition of
`app_name` in `urls.py` for URL namespaces.
2020-01-13 09:55:17 +01:00
Jérôme Lebleu
e0c7305149
Bump djangorestframework to 3.11 and move to OpenAPI
...
See: https://www.django-rest-framework.org/community/3.10-announcement/
CoreAPI is being deprecated and since 3.10, settings must be modified to
keep using CoreAPI schemas. This is especially required for the
documentation generation.
To prevent settings modification while upgrading Modoboa and to follow
the standard for modeling Web APIs, CoreAPI is removed. Instead, OpenAPI
is used to generate the schema and Swagger UI is used to render the
documentation as described here:
https://www.django-rest-framework.org/topics/documenting-your-api/
2020-01-13 09:55:17 +01:00
Antoine Nguyen and GitHub
4fb614756c
Merge pull request #1812 from jeromelebleu/drop-python2
...
Remove Python 2 support
2020-01-13 09:52:18 +01:00
Jérôme Lebleu
c30bc3174b
core: catch errors in load_initial_data command
2020-01-07 18:19:15 +01:00
Jérôme Lebleu
a9ef9b7e5d
Remove usage of codecs.open
2020-01-07 10:16:54 +01:00
Jérôme Lebleu
09434afd9e
Remove usage of six
2020-01-07 10:16:54 +01:00
Jérôme Lebleu
369d05e1c3
Remove the UTF-8 coding header
2020-01-07 10:16:54 +01:00
Jérôme Lebleu
74d66c00a0
Update imports for Python 3.4+
2020-01-07 10:16:54 +01:00
Jérôme Lebleu and Antoine Nguyen
c0aedd04d5
core: mark dbpath as safe for Postfix maps
...
When tests are using SQLite as database backend, the database name can
contain '&' which is escaped if `dbname` is unsafe.
2020-01-07 09:34:39 +01:00
Arvedui
672a702673
Fix exception handling in argon2 for mismatching passwords
2019-12-02 23:43:28 +01:00
Antoine Nguyen and GitHub
1d430ba96e
Changed message field type to TextField. ( #1754 )
...
fix #1743
2019-07-05 14:51:28 +02:00
Antoine Nguyen
f80eff16db
ldap auth direct bind fix
...
set AUTH_LDAP_BIND_AS_AUTHENTICATING_USER to True when direct bind auth
is enabled because we need to access user attributes.
See https://django-auth-ldap.readthedocs.io/en/latest/authentication.html#customizing-authentication
2019-06-13 12:13:26 +02:00
Antoine Nguyen
032b370a68
Updated locales.
2019-06-07 11:00:22 +02:00