Commit Graph

1588 Commits

Author SHA1 Message Date
Benjamin Dauvergne b475f6b7df ldap: encode string before using urlparse.quote() on them (#31273)
quote() only handle byte strings or ASCII only unicode strings with Python3,
to be compatible with both python versions the best is to encode string before
quoting them.
2019-03-11 20:49:28 +01:00
Benjamin Dauvergne 0f0c0790d0 ldap: only wrap LDAPObject.result4 (#31273)
result4() is the only function in python-ldap really handling results from LDAP requests,
all other methods calls it; if we encode attributes from other function we
duplicate work.
2019-03-11 20:47:17 +01:00
Benjamin Dauvergne 2bb6f8aab3 ldap: do not return referrals in _convert_results_to_unicode (#31273)
Wrong indentation kept referrals.
2019-03-11 20:45:43 +01:00
Benjamin Dauvergne ebab175401 ldap: do not hardcode bytes_mode argument (#31273) 2019-03-11 20:44:14 +01:00
Benjamin Dauvergne 9ec79b6d24 ldap: ignore undecodable attribute values (fixes #31232)
Tests augmented with a jpegPhot binary attribute.
2019-03-08 22:22:08 +01:00
Benjamin Dauvergne 8a68af0e48 ldap: do not retrieve any attribute when looking for user DNs (#31232) 2019-03-08 22:12:10 +01:00
Paul Marillonnet 3f02579dc3 solve migration conflit (#31214) 2019-03-08 11:23:25 +01:00
Paul Marillonnet 595d05ad7a add missing translation strings (#31213) 2019-03-08 11:10:08 +01:00
Paul Marillonnet 934d619f6b python3: use django.utils.six url-parsing functions (#31139) 2019-03-08 10:35:55 +01:00
Emmanuel Cazenave 9768e8fe3e OU attribute to hide username on user add (#25669) 2019-03-08 10:25:19 +01:00
Paul Marillonnet 6bb479d44e python3: remove call parameters for 'int' initializer (#31144) 2019-03-07 17:28:49 +01:00
Paul Marillonnet 20bcf5ac0c python3: fix implicit relative submodule imports (#31143) 2019-03-07 14:11:55 +01:00
Paul Marillonnet f6fa7f7c56 python3: adapt exception raising and handling (#31137) 2019-03-07 13:58:28 +01:00
Paul Marillonnet 54d01cf903 python3: use __future__.print_function (#31140) 2019-03-07 13:55:29 +01:00
Paul Marillonnet 4a5311543f idp cas: adapt migration to changes in the service model (#30959) 2019-03-07 12:02:14 +01:00
Paul Marillonnet 97c12bdbc9 manager: add settings for password section options on user add (#25666) 2019-03-06 15:58:12 +01:00
Emmanuel Cazenave 2741961ead access context through table object (#31092) 2019-03-05 13:34:32 +01:00
Benjamin Dauvergne a486586bed idp_oidc: set default frontchannel_timeout to 300ms (fixes #30939) 2019-03-01 19:48:30 +01:00
Benjamin Dauvergne fae901f5a2 support ou selector in backends and forms (fixes #30252) 2019-03-01 17:30:36 +01:00
Benjamin Dauvergne fdc2959104 forms: add ou selector to login form (#30252) 2019-03-01 17:30:00 +01:00
Benjamin Dauvergne f44735179f utils: add a lazy_label helper (#30252)
It allows giving a default value for a label with a getter function to
allow customization.
2019-03-01 17:30:00 +01:00
Benjamin Dauvergne 34f42d271a backends: PEP8ness, style (#30252) 2019-03-01 17:30:00 +01:00
Benjamin Dauvergne f29496c5f1 forms: PEP8ness, style (#30252) 2019-03-01 17:30:00 +01:00
Benjamin Dauvergne bc6892289e ldap: subclass LDAPObject to provide uniform unicode support (fixes #30577) 2019-03-01 16:10:05 +01:00
Benjamin Dauvergne 93a0935e49 ldap: use current password if we already know it (#30577)
No need to look it in the session.
2019-03-01 16:09:18 +01:00
Benjamin Dauvergne 75025ab544 ldap: use PASSWD command if old password is known (#30577)
If we do not know the old password it's better to try a MOD_REPLACE.
2019-03-01 16:09:18 +01:00
Serghei Mihai 506df5b5ce auth_saml: remove useless credentials param and add optional request (#30543)
And so assure compliance with Django 1.11
2019-02-14 09:34:04 +01:00
Benjamin Dauvergne d28a6bba25 ldap: allow provisionning of all user attributes (fixes #30535) 2019-02-12 11:49:04 +01:00
Paul Marillonnet 0861171b5b update django_rbac translations (#26156) 2019-02-06 10:22:14 +01:00
Paul Marillonnet b8209cf924 update authentic2_auth_oidc french translations (#26156) 2019-02-06 10:22:09 +01:00
Frédéric Péters 2ac3f0f99a translation update (#26156) 2019-02-05 18:20:42 +01:00
Benjamin Dauvergne 8efca74775 manager: add ous export (#29162) 2019-01-31 15:05:13 +01:00
Benjamin Dauvergne 6f2b7f63bc manager: add roles export (fixes #29162) 2019-01-31 15:05:03 +01:00
Benjamin Dauvergne 002dff7acf data_transfer: add export context (#29162) 2019-01-31 15:04:56 +01:00
Frédéric Péters 6a8eed17d2 utils: add hook to decide if user can change/set password (fixes #28848) 2019-01-31 15:00:29 +01:00
Benjamin Dauvergne c52e23b5a7 manager: use get_table_data() to get queryset in ExportMixin (fixes #9414) 2019-01-31 13:16:08 +01:00
Emmanuel Cazenave 870bc65026 user export csv : exclude disabled attributes (#30103) 2019-01-25 15:29:50 +01:00
Emmanuel Cazenave c7f80a61d2 user export csv compatiblity with tablib < 0.11 (#30091) 2019-01-25 12:00:20 +01:00
Benjamin Dauvergne 72dd3264cc apps: let router control JSON columns post migrations (fixes #29926) 2019-01-22 16:07:10 +01:00
Benjamin Dauvergne 275b7cd4db compat: ignore error on checking db vendor (fixes #29926)
compat can be loaded before initialization of db in tests, we must
ignore errors at such a time.
2019-01-22 14:31:40 +01:00
Benjamin Dauvergne a44d45fc24 data_transfer: save object in update_model (fixes #29545) 2019-01-21 12:07:21 +01:00
Benjamin Dauvergne ce72b9a24e data_transfer: fix indentation/whitespaces (#29545) 2019-01-21 12:07:21 +01:00
Benjamin Dauvergne 53b9f74ab2 data_transfer: move update_model (#29545) 2019-01-21 12:07:21 +01:00
Benjamin Dauvergne c60ed8b5ee compat: support pre 1.0 django-jsonfield (fixes #29917) 2019-01-19 15:33:10 +01:00
Benjamin Dauvergne 000f683601 compat: handle case of Django 1.11 without psycopg2 (fixes #29193) 2019-01-19 10:36:56 +01:00
Benjamin Dauvergne d730dba525 add compatibility layer for support of Django native JSONField (fixes #29193) 2019-01-18 19:30:41 +01:00
Benjamin Dauvergne b03a76dfff manager: use and operator to combine terms (fixes #28952) 2019-01-18 19:29:54 +01:00
Emmanuel Cazenave f71dfaf15d allow redirect after user edition (#28779) 2019-01-15 16:37:06 +01:00
Emmanuel Cazenave 0ad3bf4dfe cancel user add: set correct location (#29181) 2019-01-15 16:32:03 +01:00
Emmanuel Cazenave 93c52a940c custom attributes prefetching (#29531) 2019-01-15 16:11:36 +01:00