postgresql - 如何在 PostgreSQL LDAP 身份验证中隐藏 ldapbindpasswd?
问题描述
我已将以下内容添加到pg_hba.conf
LDAP 身份验证工作。
host all all 0.0.0.0/0 ldap ldapserver=ldap.p***ad.com ldapbasedn="ou=US,ou=NA,dc=p***ad,dc=com" ldapbinddn="cn=LOEM,OU=Some Accounts,OU=Enterprise Mgmt,OU=NA,dc=p***ad,dc=com" ldapbindpasswd="*****" ldapsearchattribute=sAMAccountName
但我不想以纯文本形式留下密码。有没有办法不包括ldapbindpasswd
在内pg_hba.conf
?
解决方案
你不能这样做。
我建议您将 LDAP 服务器配置为匿名绑定以搜索此信息,然后您不需要密码。
推荐阅读
- reactjs - 如何获取 google-maps-react 地图和 panto 到 latlng 的参考
- html - 链接中出现CSS奇怪的颜色
- java - PostAdapter 为帖子返回不正确的 postid
- r - 如何在 Rstudio 的 Riverplot 脚本中编辑节点到节点的布局和 y 值?
- javascript - e.target 并不总是触发元素
- python - 将 tensorflow .pb 模型转换为 .mlmodel 时出错
- oracle11g - 11 g 客户端 SQL*loader:插入日期时间不起作用
- c# - 没有给出与“Person.Person(string, string, int)”所需的形式参数“name”相对应的参数
- react-native - 当 url 在本机反应中受密码保护时,如何执行 axios.get?
- python - 如何使用 python 将文本文件转换为列表: