Auth user with postgresql

Giuseppe Tofoni gt0057 at gmail.com
Fri Feb 17 23:29:32 UTC 2012


Hi
Hi,

I have no errors, nginx starts correctly, but the password  are
calculated differently:

password : pippo

created with  htpasswd       h7n37SzKs.aO6    (test with
auth_basic_user_file is ok)
created with set_md5         0c88028bf3aa6a6a143ed846f2be1ea4   error

(STATEMENT:  SELECT user FROM usertable WHERE user='donalduck' AND
pwd='0c88028bf3aa6a6a143ed846f2be1ea4')

Thanks again

Giuseppe

2012/2/17 Piotr Sikora <piotr.sikora at frickle.com>:
> Hi,
>
>> nginx: [emerg] the duplicate "remote_passwd" variable in
>> /etc/nginx/nginx.conf:60
>> (...)
>
>
> Right, "$remote_passwd" is read-only, try this instead:
>
>   set_md5                $md5_passwd $remote_passwd;
>   postgres_escape  $pass $md5_passwd;
>
>
> Best regards,
> Piotr Sikora < piotr.sikora at frickle.com >
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx



More information about the nginx mailing list