auth_basic password problems
Igor Sysoev
is at rambler-co.ru
Sat Jul 18 13:26:03 MSD 2009
On Tue, Jul 14, 2009 at 10:47:04PM +0100, nginx at tomvalentine.net wrote:
> Hi
>
> The authentication on windows now seems to work, to an extent. No more
> 500 errors! --> thanks!
>
> However, I can not seem to get it to recognise the password supplied by
> the user unless the user supplies the hashed password.
>
> The attached htpasswd file was created by htpasswd in Linux (htpasswd in
> Windows doesn't do crypt); and nginx 0.6.32 running in Linux has no
> problems with it. But nginx 0.8.5 in Vista wont accept 'password' as the
> password, it will only accept 'xGtGE5iXWkYCI'
>
> E.g.
> htpasswd -db /var/www/.htpasswd nginx2 password
> produced
> nginx2:xGtGE5iXWkYCI
> and nginx accepts not 'password' but 'xGtGE5iXWkYCI' in Windows.
>
> Sorry, couldn't be bothered compiling nginx for Linux (I need sleep now)
> to see if it was Windows specific or version specific.
>
> Any ideas?
> Tom
This is Windows only issue: since Windows has no Unix style crypt(3).
I will probably add Apache compatible SHA1 "{SHA}" or MD5 "$apr1$" password:
http://httpd.apache.org/docs/2.2/misc/password_encryptions.html
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list