Commit Graph

5624 Commits

Author SHA1 Message Date
Benjamin Dauvergne 143decb1ef auth_saml: user default user's queryset (#51454) 2021-03-01 09:30:01 +01:00
Serghei Mihai 3cdd9e7d29 ldap: log missing group dn when mapped to a role (#50928) 2021-03-01 09:05:46 +01:00
Benjamin Dauvergne ebd152fe86 api: ignore deleted users when using update/get_or_create (#51368) 2021-02-26 16:03:48 +01:00
Benjamin Dauvergne 49233873d4 api: do not mix get_queryset() and filter_queryset() (#51368) 2021-02-26 16:03:48 +01:00
Benjamin Dauvergne 562cb43476 misc: use non-autoescaping template render for email text bodies and subjects (#51374) 2021-02-24 22:57:33 +01:00
Benjamin Dauvergne 7b500fc32c auth_oidc: use SameSite=Lax (#51252) 2021-02-18 14:28:51 +01:00
Benjamin Dauvergne 06461f1be0 Jenkinsfile: test with django 2.2 on regular runs 2021-02-18 11:34:38 +01:00
Benjamin Dauvergne 8a01e56dc4 tox.ini: test with django 2.2 on regular runs 2021-02-18 10:52:04 +01:00
Benjamin Dauvergne 5a335bc526 translation update 2021-02-18 10:50:58 +01:00
Loïc Dachary 814e0192f3 ldap: optionally collects messages from ppolicy
Enable PasswordPolicyControl[0] in authenticate() and log the
information it returns, on success or error. In the context of a
request, this information is also set as a message[1] to be displayed
to the user.

[0] https://github.com/python-ldap/python-ldap/blob/python-ldap-3.3.1/Lib/ldap/controls/ppolicy.py
[1] https://docs.djangoproject.com/en/3.1/ref/contrib/messages/

Fixes: #50959

License: MIT
2021-02-16 18:37:44 +01:00
Valentin Deniaud 8efb3ee192 journal: ignore event referencing deleted service in statistics (#50987) 2021-02-16 17:39:59 +01:00
Loïc Dachary cc02a30b14 ldap: additional tests for the keep_password function (#50931)
License: MIT
2021-02-16 17:39:16 +01:00
Loïc Dachary 882ce5d930 doc: explain how to run all the tests (#50921)
License: MIT
2021-02-16 17:38:32 +01:00
Loïc Dachary 0e2117c0aa doc: run tests with code coverage (#50921)
License: MIT
2021-02-16 17:38:32 +01:00
Loïc Dachary 27c3efc615 doc: note about tests/test_ldap.py failing because of apparmor (#50921)
License: MIT
2021-02-16 17:38:32 +01:00
Loïc Dachary a2ccc2ca89 doc: instructions to setup a development environment (#50921)
License: MIT
2021-02-16 17:38:32 +01:00
Loïc Dachary 5b4cf3e75f doc: sphinx.ext.pngmath is now sphinx.ext.imgmath (#50921)
License: MIT
2021-02-16 17:38:32 +01:00
Serghei Mihai 4aa751a710 manager: display user deactivation date (#51112) 2021-02-16 11:12:52 +01:00
Serghei Mihai 3b12836e8b manager: use dedicated method to deactivate user (#51112) 2021-02-15 11:15:21 +01:00
Valentin Deniaud d412424788 utils: do not record login if simulated (#50975) 2021-02-15 09:44:19 +01:00
Serghei Mihai 46c977d498 custom_user: add field to store user deactivation time (#50966) 2021-02-09 19:38:05 +01:00
Benjamin Dauvergne 09d8a676f9 api: do not clobber HTTP verb methods in viewsets (#50919) 2021-02-08 16:12:07 +01:00
Benjamin Dauvergne 7514632fe6 auth_oidc: enforce SameSite=Lax on the state cookie (#48347)
SameSite=Lax is needed for the cookie to be sent by the browser during
redirection chain from the provider. We could just depend on the fact
that cookie without SameSite are Lax by default, but it's better to be
explicit.
2021-02-08 16:00:04 +01:00
Benjamin Dauvergne 2eeb1c6067 ldap: removed unused setting group_dn_template (#50922) 2021-02-08 15:59:19 +01:00
Benjamin Dauvergne 8e0f0b69b0 ldap: add group_basedn to _DEFAULTS (#50922) 2021-02-08 15:59:19 +01:00
Benjamin Dauvergne 69254370cb ldap: transition to lowercase dn from case mixed in sessions (#50908) 2021-02-05 18:48:42 +01:00
Benjamin Dauvergne 19a8dfc2bd ldap: ignore case of group distinguished names (#50908) 2021-02-05 18:48:42 +01:00
Benjamin Dauvergne 2a5f5c3ef3 debian: fix typo in debian/control 2021-02-05 17:54:52 +01:00
Benjamin Dauvergne 71b3ca06c2 auth_saml: report user creation errors (#50834) 2021-02-04 11:52:00 +01:00
Benjamin Dauvergne e5f368bec9 misc: control similarity threshold for fts (#50781) 2021-02-04 11:44:05 +01:00
Benjamin Dauvergne 1c8c8117ff auth_saml: log mapping errors during user creation (#48784) 2021-02-03 20:39:39 +01:00
Frédéric Péters ab6ee43978 settings: mark laposte.net as well-known domain, not laposte.fr (#50765) 2021-02-02 14:51:32 +01:00
Benjamin Dauvergne e45f693512 custom_user: search email by subtring or trigram in FTS search (#50732) 2021-02-02 10:47:09 +01:00
Benjamin Renard 62654a29a7 ldap: make user_attributes.from_ldap case insensitive (#50528) 2021-02-01 11:04:33 +01:00
Frédéric Péters ade4c6399f registration: restore paragraph/bold style in completion message (#50700) 2021-01-30 16:42:08 +01:00
Benjamin Dauvergne 8e191dcc22 misc: add migration to fix absence of immutable_unaccent() (#50462) 2021-01-28 22:40:53 +01:00
Benjamin Dauvergne 51becec7cf api_views: order users as free_text_search() when `q` is used (#50536) 2021-01-27 11:40:37 +01:00
Benjamin Dauvergne 4c029ae062 api_views: order users as in the model (#49899) 2021-01-27 11:40:37 +01:00
Benjamin Dauvergne 9cec4cfef9 manager: remove default ordering for user's table (#50534) 2021-01-27 11:40:37 +01:00
Benjamin Dauvergne 95e35f371f manager: order link column by last_name first (#50535) 2021-01-27 11:40:37 +01:00
Frédéric Péters ab7d3db5ef manager: load jquery first (#49872) 2021-01-27 08:18:42 +01:00
Benjamin Dauvergne 1ff8790da0 settings: decrease A2_DUPLICATES_THRESHOLD to 0.2 (#50445)
The original limit of 0.7 is kept for the find-duplicates web-service API.
2021-01-25 12:04:33 +01:00
Paul Marillonnet e306d5afbf add missing string in previous translation update 2021-01-23 10:46:25 +01:00
Paul Marillonnet 04224c478a translation update 2021-01-22 12:19:54 +01:00
Benjamin Dauvergne 961403a666 use honeypot field to detect robots on registration form (#50108) 2021-01-22 11:10:03 +01:00
Benjamin Dauvergne ab66385315 custom_user: specialize free_text_search for common search terms (#49957) 2021-01-19 15:21:07 +01:00
Benjamin Dauvergne f4908a01f4 tests: use pytest style (#49957) 2021-01-19 15:21:07 +01:00
Benjamin Dauvergne c98b0f2347 authentic2: add full text search to AttributeValue (#49957) 2021-01-19 15:21:07 +01:00
Benjamin Dauvergne 3cb60a412f custom_user: index User.username and User.email (#49957) 2021-01-19 15:21:07 +01:00
Valentin Deniaud 511d1d222e api_views: prevent crash with statistics and old DRF (#49447) 2021-01-19 14:39:23 +01:00