diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2021-11-28 00:41:50 -0500 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2021-11-28 03:12:00 -0500 |
commit | 71175df1c98b5c58702c4a3a2155d5ed965e7561 (patch) | |
tree | f3f08e115f5aaf3dd723c4dd02ecd3841e119c82 /src/mod_auth_api.h | |
parent | 3bd733c27e4f4dd96d2d7c081d9af537851d0544 (diff) | |
download | lighttpd-git-71175df1c98b5c58702c4a3a2155d5ed965e7561.tar.gz |
[mod_auth] RFC7616 HTTP Digest username* userhash
RFC7616 HTTP Digest username* and userhash support (if configured)
userhash support must be configured to enable:
auth.require = ( "/" => ( "userhash" => "enable", ... ) )
and one of
auth.backend = "htdigest" # mod_authn_file
or
auth.backend = "dbi" # mod_authn_dbi
and appropriate modification to add userhash into htdigest or db table
along with adding "sql-userhash" => "..." SQL query for mod_authn_dbi
Note: open issue with curl preventing userhash from working with curl:
https://github.com/curl/curl/pull/8066
Diffstat (limited to 'src/mod_auth_api.h')
-rw-r--r-- | src/mod_auth_api.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mod_auth_api.h b/src/mod_auth_api.h index 58b108f0..7285fa74 100644 --- a/src/mod_auth_api.h +++ b/src/mod_auth_api.h @@ -39,7 +39,8 @@ typedef struct http_auth_require_t { const struct http_auth_scheme_t *scheme; const buffer *realm; const buffer *nonce_secret; - int valid_user; + uint8_t valid_user; + uint8_t userhash; int algorithm; array user; array group; @@ -63,8 +64,10 @@ typedef struct http_auth_info_t { size_t ulen; const char *realm; size_t rlen; + int userhash; /*(must be >= largest binary digest length accepted above)*/ unsigned char digest[32]; + char userbuf[256]; } http_auth_info_t; typedef struct http_auth_backend_t { |