Issue with LDAP specified in ldap2pg.yml #671
-
|
Hi, I've a PostgreSQL v16.4 server running on Windows server. My ldap2pg.yml file contains ldap section.... localhost is not specified in any part of the ldap2pg.yml file. On the same cluster, I'm able to successfully use the same LDAP server via pg_hba.conf to authenticate some users. I've tested with version 6.1 which produces the same problem, localhost is displayed. However, with version 6.2 if you use environment variables it works.... Does anyone know why it goes straight to localhost and ignores my LDAP declaration in ldap2pg.yml ? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Hi @JBHighHair , I dropped See reference configuration: https://ldap2pg.readthedocs.io/en/latest/config/ Configure ldap2pg with libldap files and .env file. See https://ldap2pg.readthedocs.io/en/latest/cli/#environment-variables Regards. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you. |
Beta Was this translation helpful? Give feedback.
Hi @JBHighHair , I dropped
ldap:top level section as of 6.0. This way config file has no secret and we have less confusion between top levelldap:andldap:rules (renamed asldapsearch:).See reference configuration: https://ldap2pg.readthedocs.io/en/latest/config/
Configure ldap2pg with libldap files and .env file. See https://ldap2pg.readthedocs.io/en/latest/cli/#environment-variables
Regards.