Issue with LDAP specified in ldap2pg.yml #671
Unanswered
JBHighHair
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I've a PostgreSQL v16.4 server running on Windows server.
SSPI is configured correctly in pg_hba.config and works as I can use pgAdmin to connect to the server from a remote PC.
I'm using Windows version of ldap2pg version 6.2 (ldap2pg_6.2_windows_amd64.tar) to try to synch specific Active Directory group members.
When performing a dry run, the LDAP server is localhost rather than somedomain.com...
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....
set LDAPURI=ldap://somedomain.com
set LDAPBASE=DC=somedomain,DC=com
set LDAPBINDDN=CN=ldaplookupacct,OU=Delegation,OU=Users,DC=somedomain,DC=com
set LDAPPASSWORD=password
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.
All reactions