/[Apache-SVN]
ViewVC logotype

Revision 1427548


Jump to revision: Previous Next
Author: sf
Date: Tue Jan 1 20:16:30 2013 UTC (11 years, 4 months ago)
Changed paths: 8
Log Message:
Add some caching for password hash validation.

Password hash functions must be expensive in order to be secure. But
if they have to be re-evaluated for every request, performance
suffers.

As a minimal remedy, cache the most recent result for every
connection. This gives a great performance boost if a web browser
does many requests on the same connection with the same
user+password.  In principle, this may keep the plain text password
around longer than before. But in practice, there won't be much
difference since user+password can already remain in some unused
data bucket for longer than the request duration.

A proper solution still needs to be found for connections from
proxies which may carry requests for many different users.

While it currently only requires the conn_rec, the new
ap_password_validate() function takes username and request_rec to
allow future extensions, like detection of brute-force attempts.



Changed paths

Path Details
Directoryhttpd/httpd/trunk/CHANGES modified , text changed
Directoryhttpd/httpd/trunk/include/ap_mmn.h modified , text changed
Directoryhttpd/httpd/trunk/include/httpd.h modified , text changed
Directoryhttpd/httpd/trunk/modules/aaa/mod_authn_dbd.c modified , text changed
Directoryhttpd/httpd/trunk/modules/aaa/mod_authn_dbm.c modified , text changed
Directoryhttpd/httpd/trunk/modules/aaa/mod_authn_file.c modified , text changed
Directoryhttpd/httpd/trunk/modules/aaa/mod_authn_socache.c modified , text changed
Directoryhttpd/httpd/trunk/server/util.c modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26