I am wondering if postgres LDAP login is secure? Would passwords be transmitted in clear text potentially if this is not set up properly?

  • 1
    With Postgres LDAP authentication, the password stays in your LDAP server. Postgres never knows the password. Are you using TLS to connect to Postgres? Are you using TLS to connect to LDAP? Commented Jul 17, 2015 at 18:30

1 Answer 1


PostgreSQL LDAP authentication mechanism does not provide by itself security guarantee. The password used for DB is either plain text based or MD5 hashed. Your communication protocols do. But even if the communication is encrypted using SSL, it is better to hash your passwords with MD5 since you can always be sniffed or trapped using other methods.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .