http.auth: Add new function to verify passwords
authorMichael Hanselmann <hansmi@google.com>
Wed, 28 Oct 2009 17:07:53 +0000 (18:07 +0100)
committerMichael Hanselmann <hansmi@google.com>
Thu, 29 Oct 2009 09:33:39 +0000 (10:33 +0100)
commitbf9bd8ddac35fbfda34c47867ba440227aa27ce4
tree144b124c34cb25c97eadcfa35a55a8afc1f33aaa
parentc6aa0c4241ab80bc6e8339c516b7ce85277d4fb0
http.auth: Add new function to verify passwords

This new function supports two schemes for passwords:
- Old-style cleartext passwords
- Hashed passwords according to RFC2617 (H(A1))

Schemes are differentiated by their prefix, a concept also
used in OpenLDAP. Cleartext passwords can no longer start
with an opening brace ("{") unless they're prefixed with
"{cleartext}" (case insensitive).

Currently there's no documentation for rapi_users at all.
It'll be in a consecutive patch.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/http/auth.py
test/ganeti.http_unittest.py