This recipe shows how to set up your PostgreSQL system so that it uses LDAP (lightweight Directory Access Protocol) for authentication.
Ensure that the usernames in database and your LDAP server match, as this method works for user authentication checks for users already defined in the database.
In PostgreSQL's authentication file,
pg_hba.conf, define some of address ranges to use LDAP as an authentication method, and configure the LDAP server for this addess range.
host all all 10.10.0.1/16 ldap \ ldapserver=ldap.our.net ldapprefix="cn=" ldapsuffix=", dc=our, dc=net"
This setup makes postgresql server check passwords from the configured LDAP server.
User rights are not queried from ...