Commit Graph

17 Commits

Author SHA1 Message Date
Olivier Dony bb2c051d25 [MERGE] Forward-port of latest bugfixes from saas-3 up to cc5860fbcf 2015-07-29 14:01:17 +02:00
Olivier Dony b4de311b0c [FIX] auth_crypt: use system random number generator
Switch to system random as number generator instead of the
default PRNG, which is not recommended for generating
security-related values such as unique tokens.

(Complements parent commit)

Closes #7761
2015-07-29 13:49:11 +02:00
Wolfgang Taferner 52edf789c2 [FIX] auth_crypt: safer import of base module
Commit 856bc6f2b1
may cause an issue if the auth_crypt module
is loaded before the base module. That should never
happen in normal circumstances, but forcing an
explicit import does not hurt and makes it safer.

Closes #6742
2015-07-29 12:19:55 +02:00
Olivier Dony 856bc6f2b1 [FIX] apply same visibility rules as base 2015-04-10 17:15:50 +02:00
Olivier Dony 8d750ecdc8 [FIX] apply same visibility rules as base 2015-04-10 17:14:59 +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
Xavier Morel 82f10f4ca2 [IMP] auth_crypt: port encrypt-at-install from f29ff5e
also move utility methods to class bottom to improve reading experience
(hopefully)
2014-06-19 09:44:40 +02:00
Xavier Morel 3b39e5f2cc [IMP] auth_crypt: variables naming 2014-06-19 09:19:56 +02:00
Xavier Morel d36f605f58 [IMP] auth_crypt: simplify get_pw 2014-06-19 09:14:21 +02:00
Xavier Morel fc846655d6 [IMP] auth_crypt: automatically upgrde deprecated hashes on login 2014-06-19 09:12:17 +02:00
Xavier Morel d9d8c94412 [IMP] auth_crypt: upgrade default kdf to pbkdf2_sha512
Applies to new and yet-to-be-encrypted users, existing already-encrypted will
keep logging in as usual, their password storage will be upgraded on next
password *change*.
2014-06-19 09:05:44 +02:00
Xavier Morel cf41752470 [IMP] auth_crypt: port to passlib instead of using embedded/hand-rolled md5crypt 2014-06-19 09:04:51 +02:00
Olivier Dony f29ff5ef70 [FIX] auth_crypt: encrypt all passwords at installation
When `base_crypt` was updated for v7, the auto-encryption
at installation was dropped, with user passwords only
encrypted on-demand whenever the user would connect.

It is important to encrypt all passwords immediately to
prevent password compromission for user who do not
login often or even for deactivated users who are not
allowed to login anymore.

Fixes https://bugs.launchpad.net/openobject-addons/+bug/1280152

Based on LP merge proposal by Nicolas Bessi (Camptocamp):
https://code.launchpad.net/~camptocamp/openobject-addons/improve_auth_crypt_3_please_launchpad_work-nbi/+merge/206476
2014-06-18 15:32:06 +02:00
Denis Ledoux b6cd0ea820 [FIX]auth_crypt: was storing password when passsing by res.users create, like auth_signup
bzr revid: dle@openerp.com-20130801162704-fbvghil7yir8zm8c
2013-08-01 18:27:04 +02:00
Denis Ledoux f551350b80 [FIX]auth_crypt: check_credentials checking if there is a password stored, if not, not trying to crypt anything and raise
bzr revid: dle@openerp.com-20130801151539-z0bes7ylx5qwa8tw
2013-08-01 17:15:39 +02:00
Antony Lesuisse e131d46932 [IMP] auth_crypt add sha256 from enhance_base_crypt_trunk (not enabled by default)
bzr revid: al@openerp.com-20121219113339-vhstwyo51jw0znqw
2012-12-19 12:33:39 +01:00
Antony Lesuisse 3f2de50afc [IMP] auth_crypt base_crypt cleanup
bzr revid: al@openerp.com-20121219112031-mtogxyq1fxsbopz0
2012-12-19 12:20:31 +01:00