Bug in htpasswd.exe

I tried to configure basic authentication under an apache 2.4.4 and could not find out why my password didn’t match. Just got the following line in the log though my password was correct:

[…] [auth_basic:error] [pid …:tid …] [client ::…] AH01617: user ___: authentication failure for “/asd/”: Password Mismatch, referer: http://localhost/

So I found the following bug description https://issues.apache.org/bugzilla/show_bug.cgi?id=54735. To come over this I just had to use httpasswd with the -b flag to provide the password from command line instead of prompting for it.

htpasswd -b passwdfile username password

Leave a Comment