Auth user with postgresql

Piotr Sikora piotr.sikora at frickle.com
Fri Feb 17 19:27:40 UTC 2012


Hi,

> The login and password is okay, but in my database passwords are
> stored in MD5, while the password is passed in the clear as I can
> solve the problem?

You can use "set_md5" directive from ngx_set_misc module [1]:

    set_md5 $remote_passwd; /* must be before postgres escape */
    postgres_escape $pass $remote_passwd;

[1] https://github.com/agentzh/set-misc-nginx-module

Best regards,
Piotr Sikora < piotr.sikora at frickle.com >



More information about the nginx mailing list