Commit Graph

30 Commits

Author SHA1 Message Date
Alexandre Fayolle 94f58d647c [FIX] auth_ldap: fix authentication with special chars
encode the filter in utf-8

This prevents a UnicodeDecode error in python-ldap when the
filter contains non ascii characters.

opw-682783
closes #10899
closes #12710
2016-09-28 12:58:32 +02:00
Christophe Simonis 7041b2589a [MERGE] forward port of branch 7.0 up to 152d9de 2016-01-08 17:01:53 +01:00
Nicolas Martinelli 8a7394a550 [FIX] auth_ldap: filter format
The LDAP method filter_format(filter_template,assertion_values) requires
that the length of assertion_values matches the count of %s in
filter_template. If not, a TypeError exception is thrown.

This fix catches the exception and displays an understandable error
message instead.

opw-608126
opw-657370
2015-12-08 14:23:28 +01:00
Marcio Mazza ecc39a95c1 [FIX] auth_ldap: Bind DB encoding
In case of unicode
Closes #6926
2015-07-13 15:50:47 +02:00
Mathieu Le Marec - Pasquet f6a4c932b0 [FIX] auth_ldap: anonymous connection
LDAP allows anonymous authentication with no password. In such case
conf['ldap_password'] is None so converting would fail.
Fixes #5763
2015-05-04 14:43:09 +02:00
Daniel Reis ccf021938d [FIX] auth_ldap login when password is unicode
python ldap library api is str based, assume utf-8 encoding for non-ascii
chars.

Closes #5376 lp:1079476
2015-03-01 02:06:54 +01:00
Holger Brunn 4c6a998c29 [FIX] auth_ldap: remove insignificant spaces in login
strip spaces from user name as they will probably be ignored by ldap's search (rfc4518)
Fixes #2865
2014-10-03 17:02:12 +02:00
Christophe Simonis e2e60bf4eb [MERGE] forward port of branch saas-3 up to fe8106f 2014-09-26 12:53:59 +02:00
Denis Ledoux c57ca80a5b [MERGE] forward port of branch 7.0 up to 9c77f79 2014-09-23 19:01:11 +02:00
Denis Ledoux 1f5c6f16d9 [FIX] auth_ldap: remove unused sql column 2014-09-22 15:00:53 +02:00
Olivier Dony e5bff82aff [MERGE] Forward-port saas-5 up to f9bcd67 2014-09-17 16:39:06 +02:00
Denis Ledoux 60a82133cc [MERGE] forward port of branch 7.0 up to f5f7609 2014-09-17 13:39:13 +02:00
Denis Ledoux 0a9c64c17d [FIX] auth_ldap: avoid to try twice the authentication to the ldap server
See #1982
2014-09-16 18:33:42 +02:00
Christophe Simonis 8046b7367d [MERGE] forward port of branch saas-5 up to 7e117b1 2014-08-28 16:51:11 +02:00
Christophe Simonis ada9724655 [MERGE] forward port of branch 7.0 up to 3509e15 2014-08-28 16:12:55 +02:00
Denis Ledoux 3f7f2a51fa [FIX] security: remove read access on company critical fields 2014-08-26 15:35:47 +02:00
rlu-odoo 8b67a7202d [REF] OpenERP --> Odoo in various UI texts
Rebranding has been done in:
- data/demo files
- html templates
- help notices
- comments
- logger messages
- and other various messages

(Commit taken from odoo-dev:8.0-improve-openerp-odoo-rlu at rev 7deaa08)

Closes #1260
2014-07-18 13:45:41 +02:00
Raphael Collet cbe2dbb672 [MERGE] new v8 api by rco
A squashed merge is required as the conversion of the apiculture branch from
bzr to git was not correctly done. The git history contains irrelevant blobs
and commits. This branch brings a lot of changes and fixes, too many to list
exhaustively.

- New orm api, objects are now used instead of ids
- Environements to encapsulates cr uid context while maintaining backward compatibility
- Field compute attribute is a new object oriented way to define function fields
- Shared browse record cache
- New onchange protocol
- Optional copy flag on fields
- Documentation update
- Dead code cleanup
- Lots of fixes
2014-07-06 17:05:41 +02:00
Jaydeep Barot 026e38b48f [REM] Unnecessary `size` parameters on char fields 2014-06-25 17:13:43 +02:00
Denis Ledoux cbba7eb4da [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9796 revid:launchpad_translations_on_behalf_of_openerp-20140128070310-721zmkmw0ocyz6im
bzr revid: dle@openerp.com-20140128100949-mfa2geyx6rklwtcg
2014-01-28 11:09:49 +01:00
Martin Trigaux d43002c14b [FIX] users_ldap: forward port of rev 7301 from 6.1, get rid of results without DN for searchResultReference, courtesy of Patrick Monnerat
lp bug: https://launchpad.net/bugs/983123 fixed

bzr revid: mat@openerp.com-20140127140009-o50fhhs5z0vjklwc
2014-01-27 15:00:09 +01:00
Denis Ledoux a99b5786d1 [MERGE] Forward-port of 7.0 bugfixes up to rev. 9337 (dle@openerp.com-20130731153129-8hmqrgsg3e9d533f)
bzr revid: mat@openerp.com-20130726073123-6buqe3rg321gj5rw
bzr revid: odo@openerp.com-20130730110536-a74ea14pwb2y03ay
bzr revid: dle@openerp.com-20130801123703-frjhpeqwocsjo7ge
2013-08-01 14:37:03 +02:00
Denis Ledoux a9718bec29 [FIX]auth_ldap: now using check_credentials instead of check
bzr revid: dle@openerp.com-20130731152018-fln3urf0expd9ps7
2013-07-31 17:20:18 +02:00
Vo Minh Thu e69326ee3b [REF] removed explicit model instanciations.
bzr revid: vmt@openerp.com-20130415102349-vgcrfok2k5y10cwz
2013-04-15 12:23:49 +02:00
Vo Minh Thu 4acfd6ae82 [REF] auth_ldap: removed openerp.pooler imports.
bzr revid: vmt@openerp.com-20130327115733-0hsqtwasjgcnu28x
2013-03-27 12:57:33 +01:00
Vo Minh Thu e7f4891d46 [IMP] use the openerp namespace.
bzr revid: vmt@openerp.com-20121206145632-0h1coh5aaem65wsy
2012-12-06 15:56:32 +01:00
Olivier Dony c0f15c2bca [IMP] auth_ldap: minor wording changes in field labels/help tooltips
bzr revid: odo@openerp.com-20121124001900-x5cuz98mrm0m0i0i
2012-11-24 01:19:00 +01:00
Fabien Pinckaers 10f3abf619 [MERGE] ldap uid is case insensitive
bzr revid: fp@tinyerp.com-20120930121907-9dq0zs3mlhx1o6ri
2012-09-30 14:19:07 +02:00
Thibault Delavallée 7657aedc4e [IMP] auth_ldap, auth_openid, base_crypt: update login_date instead of date on res.users.
bzr revid: tde@openerp.com-20120810141219-qa0howq34k03ynxh
2012-08-10 16:12:19 +02:00
Christophe Simonis 8797892235 [IMP] rename module "users_ldap" to "auth_ldap"
bzr revid: chs@openerp.com-20120802161655-nzm3o36nqq817py1
2012-08-02 18:16:55 +02:00