Update postgres-ldaps.md

This commit is contained in:
Руслан 2023-08-13 23:44:35 +06:00 committed by GitHub
parent 001a62ee03
commit 52d07e8544
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,8 +35,9 @@ ldapsearch -x -b "dc=<domain>,dc=<local>" \
```
## Правка pg_hba.conf
С ldapprefix/ldapsuffix, возможно, придётся поколдовать. Стоит попробовать их оставить пустыми (="").
```shell
host <database> <user> <ip>/<mask> ldap ldapserver=<dc>.<domain>.<local> ldapprefix="cn=" ldapsuffix=",cn=users,dc=<domain>,dc=<local>"
host <database> <user> <ip>/<mask> ldap ldapserver=<dc>.<domain>.<local> ldapscheme=ldaps ldapprefix="cn=" ldapsuffix=",cn=users,dc=<domain>,dc=<local>"
# /var/lib/pgpro/std-14/data/pg_hba.conf
```