Setting up HTTP Basic Authorisation

Igor Sysoev is at rambler-co.ru
Wed Dec 6 16:40:30 MSK 2006


On Wed, 6 Dec 2006, T Gillett wrote:

> Igor Sysoev <is at ...> writes:
>
>> It seems I found the bug. If the "test:cgsk91HyOZHGE" is the single
>> line in th efile and has no the carridge return or the line feed
>> characters (if you edit file in the joe editor), then nginx does
>> not understand the hash.
>
> This doesn't appear to be the problem in this case.
>
> The htpassword file actually has two lines as follows:
> admin:cgwvsHpJSf6XU
> test:cgsk91HyOZHGE
>
> followed by two empty lines (carriage returns).
> I copied the admin line from etc/passwd and checked the password encryption
> with the perl script.
> Authorisation fails for both admin and test logins.

May crypt() using another salt ?

What does
perl -le 'print crypt("test", "cgsk91HyOZHGE")'
show ?


Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list