Project

General

Profile

[Solved] htdigest authentication is not working for me

Added by anuplpatil about 9 years ago

I am using the lighttpd-1.4.30.
My lighttpd.conf file entry for the authentication process look like -
@server.modules = (
"mod_auth",
"mod_access",
"mod_cgi",
)

auth.debug = 2
auth.backend = "htdigest"
auth.backend.plain.userfile = "/tmp/lighttpd.user"

auth.require = (
"" => (
"method" => "digest",
"realm" => "anup",
"require" => "user=anup"
)
)
@

And my lighttpd.user file entry is -
anup:anup:2eba4b58b0abba9975b2f8ff31e26b9e

When I try to access the web page using this lighttpd server i am getting the username and password prompt, the password authentication is not working.
username: anup
password: anup

The log messages says -
1970-01-02 18:21:21: (log.c.166) server started
1970-01-02 18:21:21: (server.c.968) WARNING: unknown config-key: alias.url (ignored)
1970-01-02 18:21:45: (http_auth.c.1015) username anup
1970-01-02 18:21:45: (http_auth.c.1016) realm anup
1970-01-02 18:21:45: (http_auth.c.1017) nonce 41f231ae1bf70bf054d6b4abd419c5b9
1970-01-02 18:21:45: (http_auth.c.1018) uri /
1970-01-02 18:21:45: (http_auth.c.1019) algorigthm
1970-01-02 18:21:45: (http_auth.c.1020) qop auth
1970-01-02 18:21:45: (http_auth.c.1021) cnonce 71049ce49deea555
1970-01-02 18:21:45: (http_auth.c.1022) nc 00000001
1970-01-02 18:21:45: (http_auth.c.1023) response 9266bc991b1b36571d5e4ae206dd2874

Is there something missing in the configuration file or somewhere ?


Replies (2)

RE: htdigest authentication is not working for me - Added by nitrox about 9 years ago

tried "auth.backend.htdigest.userfile"?

RE: htdigest authentication is not working for me - Added by anuplpatil about 9 years ago

Thanks for the reply. It worked !!

    (1-2/2)