LP#1468422 Real-time / per-user password migration
authorBill Erickson <berickxx@gmail.com>
Tue, 21 Jul 2015 16:45:51 +0000 (12:45 -0400)
committerBill Erickson <berickxx@gmail.com>
Mon, 23 Nov 2015 16:17:04 +0000 (11:17 -0500)
commit3cd1553d65c296dd22c39ea1b419158e87e3918a
treea512314857d4f6c3d7e06ec75d90346cd68a8889
parentac14333a8ee2adc556019bec776aa14f61dec79b
LP#1468422 Real-time / per-user password migration

Don't rely on mass password migration, since it would take a very long
time.  Instead, migrate users on demand.

Raise work factor (iteration count) from 10 to 14.

Current flow:

1. Application requests a salt to use as the CHAP-style seed
2. If new-style password exists, salt is returned.
3. Else, old password is migrated and the new salt is returned.
4. App finalizes login by checking verify_passwd.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.password-storage.sql