【发布时间】:2022-01-07 06:58:35
【问题描述】:
在尝试多种方法为 PostgreSQL 实现 LDAPS 时运气不佳。
pg_hba.conf
hostssl all +test_ldap 0.0.0.0/0 ldap ldapserver=dc2.ad.foobar.com ldapport=636 ldapscheme=ldaps ldaptls=0 ldapbinddn="CN=ldap,OU=Helpers,OU=Foobar,DC=ad,DC=foobar,DC=com" ldapbindpasswd=*** ldapsearchattribute=mail ldapbasedn="OU=Users,OU=Foobar,DC=ad,DC=foobar,DC=com"
research,我发现下面的参数要改了。
postgresql.conf
ssl = on
ssl_cert_file = 'server.crt'
ssl_key_file = 'server.key'
问题是我如何从我已经拥有的 .pem 证书(由 LDAP 团队共享)中获得 .crt 和 .key。除了这些之外,还需要做些什么才能使其与 LDAPS (SSL/TLS) 一起使用。
【问题讨论】:
标签: postgresql ssl ldap