Auth user with postgresql

Piotr Sikora piotr.sikora at
Sat Feb 18 19:11:29 UTC 2012


> Hi reason, the password is not in MD5, but rather in DES (PHP -->
> crypt($verpas, CRYPT_STD_DES)
> What should I use instead of set_md5 ?
> DES on this page
> is never mentioned

I'm not aware of any module that would offer crypt() hashing for variables 
in nginx.conf.

On the bright side, PostgreSQL's crypt() [1] should help you. Could you 
please try:

    postgres_query   "SELECT user FROM usertable
                     "WHERE user=$user AND pwd=crypt($pass, pwd)";


Best regards,
Piotr Sikora < piotr.sikora at >

More information about the nginx mailing list