Commit Graph
3379 Commits
Author SHA1 Message Date
Antoine Nguyen a9b56dde07 Fixed tests. 2020-02-17 18:03:27 +01:00
Antoine Nguyen 59dfecd801 Use a classmethod here. 2020-02-17 17:52:10 +01:00
Antoine Nguyen cfa3c0bee5 Fixed loop. 2020-02-17 17:42:54 +01:00
Antoine Nguyen 4f5f8ba3fa Added support for a secondary LDAP server.
see #1842
2020-02-17 17:27:25 +01:00
Antoine NguyenandGitHub 7f08e76e21 Merge pull request #1840 from modoboa/fix/ldap_login_with_simple_username
Allow login with username instead of email for LDAP.
2020-02-17 16:58:09 +01:00
Antoine Nguyen 9c85cba068 Fixed test. 2020-02-17 16:45:09 +01:00
Antoine Nguyen 5d9ac817b2 Allow login with username instead of email for LDAP.
see #1798
2020-02-17 15:52:32 +01:00
Antoine Nguyen f8d5f072f8 Fixed migration conflict. 2020-01-22 09:48:06 +01:00
Antoine NguyenandGitHub 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 NguyenandGitHub 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 NguyenandGitHub ef5f0eb75e Merge pull request #1824 from modoboa/fix/remove_permissions
Remove domain permissions when role is SimpleUsers.
2020-01-14 15:42:24 +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
Antoine NguyenandGitHub 8b37fcfece Merge pull request #1823 from jeromelebleu/fix-multiple-strings-record
Handle multiple strings in DNS record value
2020-01-14 09:30:26 +01:00
Jérôme Lebleu 89f54f887c dnstools: handle multiple strings in record value 2020-01-13 19:40:53 +01:00
Jérôme Lebleu 0968a1ce86 Bump Django to 2.2
See: https://docs.djangoproject.com/en/stable/releases/2.2/
2020-01-13 18:23:10 +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 2241b1a3a2 Replace django-subcommand2 by custom code 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 c4b2decff2 dnstools: fix name in apps.py 2020-01-13 09:55:17 +01:00
Jérôme Lebleu 4319205527 limits: squash old migrations to clean the creation 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 NguyenandGitHub 4fb614756c Merge pull request #1812 from jeromelebleu/drop-python2
Remove Python 2 support
2020-01-13 09:52:18 +01:00
Antoine NguyenandGitHub 5912f08eec Merge pull request #1818 from jeromelebleu/load_initial_data
Catch errors in load_initial_data command
2020-01-13 09:51:50 +01:00
Antoine NguyenandGitHub 0cc52ca38f Merge pull request #1821 from dbryar/patch-1
Update modoboa.rst
2020-01-13 09:27:25 +01:00
Daniel BryarandGitHub 0907216f82 Update modoboa.rst
You need libssl-dev to build cryptography
2020-01-11 22:51:10 +10: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 605ad1a7bc Specify the Python version in README.rst 2020-01-07 10:16:54 +01:00
Jérôme Lebleu 0823d1ae77 Remove [bdist_wheel] section from setup.cfg 2020-01-07 10:16:54 +01:00
Jérôme Lebleu b665cc442d Update setup.py and add python_requires 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 0e8c320695 Bump djangorestframework to 3.9 and adapt the code
See: https://www.django-rest-framework.org/community/3.9-announcement/

The 3.10 release begins the deprecation process for the CoreAPI based
schema generation and requires thus more changes - especially for the
documentation.
2020-01-07 10:16:54 +01:00
Jérôme Lebleu d06692e06a Bump requirements versions
Each package version is updated to use the last one if it doesn't
require code changes. Only Django REST Framework is currently stuck on
release 3.7 since breaking changes and deprecations come with newer
releases.
2020-01-07 10:16:54 +01:00
Jérôme Lebleu 4c4c08d453 Drop Python 2.7 from tests and doc 2020-01-07 10:16:54 +01:00
Jérôme LebleuandAntoine Nguyen db12a4aeef test: skip ldapsync if it is not available 2020-01-07 09:34:39 +01:00
Jérôme LebleuandAntoine 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
Jérôme LebleuandAntoine Nguyen 6868654416 Update tested modules in tox.ini 2020-01-07 09:34:39 +01:00
Jérôme LebleuandAntoine Nguyen 5eb7affc23 Update Python versions in tox.ini 2020-01-07 09:34:39 +01:00
Antoine NguyenandGitHub 7658835f93 Merge pull request #1814 from jeromelebleu/fix-domain-admins
Fix account removal from domain admins
2020-01-06 10:12:03 +01:00
Jérôme Lebleu 2b23f5a9be admin: fix account removal from domain admins 2020-01-03 15:16:36 +01:00
Antoine NguyenandGitHub a3d0de77fa Merge pull request #1807 from timgates42/bugfix/typo_detailed
Fix simple typo: detailled -> detailed
2019-12-17 09:43:18 +01:00
Tim Gates b15abab340 Fix simple typo: detailled -> detailed
Closes #1806
2019-12-17 17:08:47 +11:00
Antoine NguyenandGitHub df915f4e94 Merge pull request #1790 from Arvedui/argon2_fix_password_mismatch
Fix exception handling in argon2 for mismatching passwords
2019-12-03 10:32:00 +01:00
Arvedui 672a702673 Fix exception handling in argon2 for mismatching passwords 2019-12-02 23:43:28 +01:00
Antoine NguyenandGitHub 138c62e35a Merge pull request #1778 from kokel/fix-docs-ldapsync
doc: fix ldapsync parameters table.
2019-12-02 16:47:40 +01:00