Commit Graph
3357 Commits
Author SHA1 Message Date
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
Antoine Nguyen 1e228ab608 Removed Python 3.4 from test matrix. 2019-12-02 15:07:17 +01:00
Tobias Hachmer 7ae977d78d doc: fix ldapsync parameters table. 2019-09-24 21:35:42 +02:00
Antoine Nguyen 9fcd133bc8 doc: fixed label syntax. 2019-07-09 09:55:01 +02:00
Antoine NguyenandGitHub 1d430ba96e Changed message field type to TextField. (#1754)
fix #1743
2019-07-05 14:51:28 +02:00
Tom HendrikxandAntoine Nguyen bb78d6b5e2 Remove lots of dead and/or unreliable DNSBLs from the default list. (#1748) 2019-06-25 15:02:24 +02:00
Antoine Nguyen 115dab7a6c Try to upgrade postgres version. 2019-06-13 12:32:02 +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 da24e2c877 ldapsync: do not sync empty passwords. 2019-06-07 17:21:48 +02:00
Antoine Nguyen 032b370a68 Updated locales. 2019-06-07 11:00:22 +02:00
Antoine Nguyen e38d173d40 Merge branch 'master' of github.com:modoboa/modoboa 2019-06-07 10:23:50 +02:00
Antoine Nguyen 98a400293c ldap: deactivate password update when sync is enabled. 2019-06-07 10:23:17 +02:00
jeromelebleuandAntoine Nguyen 793dba96cb Make dependency to argon2 optional (#1701) 2019-05-17 09:29:06 +02:00
Antoine Nguyen 1af015c6c6 Do not activate ldapsync app by default. 2019-05-07 12:35:44 +02:00
Antoine Nguyen 657b88882f Updated documentation. 2019-05-07 12:31:27 +02:00
Antoine Nguyen e74a45095f Updated translations. 2019-05-07 11:30:30 +02:00
Antoine NguyenandGitHub ab592c3d02 LDAP synchronization process (#1732)
* Initial commit for LDAP sync process.

* Fixed unit tests.

* Added doc and run ldapsync tests on travis.

* Removed server address.

* Force bytes when calling ldap methods.

* Fixed tests compat with python2.

* Do not force bytes here.

* Force bytes.

* Force bytes for attribute names too.

* Disable bytes mode in PY2.

* Handle account removals.

* Fixed unit tests.

* Limit sync to simple users.

* Fixed unit test.

* Fixed unit test.
2019-05-07 10:48:00 +02:00
Antoine Nguyen 76109337aa Fixed doc. 2019-04-29 12:15:53 +02:00
Antoine NguyenandGitHub 6d934435f5 Merge pull request #1722 from Eveley/remove-bad-dnsbl
Removed bad DNSBL bad.psky.me - see issue #1721.
2019-04-24 16:33:10 +02:00
Chris Eveley 24efdf16e3 Removed bad DNSBL bad.psky.me - see issue #1721. 2019-04-22 09:41:52 +02:00
Antoine NguyenandGitHub 3e2ddc001d Merge pull request #1690 from Arvedui/argon2
Argon2 support
2019-03-19 09:08:20 +01:00
Arvedui bd2ad0ce3f fixup! add test for rehash on login for parameter update 2019-03-13 22:20:10 +01:00
Arvedui 0a7a7a10bb fixup! Implement support for the argon2 password hash 2019-03-13 22:19:20 +01:00