This commit is contained in:
root
2023-10-08 23:18:25 +03:00
parent a94c0c0a46
commit d9ca3f4de2
19 changed files with 35 additions and 35 deletions

View File

@ -22,7 +22,7 @@ apt install ldap-utils -y
## Правка ldap конфига
В файл `/etc/ldap/ldap.conf` необходимо добавить следующие строки:
```sh
```config
TLS_CACERT /etc/ldap/<ad>.pem
BASE dc=<domain>,dc=<local>
URI ldaps://<dc>.<domain>.<local>:636
@ -35,7 +35,7 @@ ldapsearch -x -b "dc=<domain>,dc=<local>" -H ldaps://<dc>.<domain>.<local>:636 -
## Правка pg_hba.conf
С ldapprefix/ldapsuffix в файле `/var/lib/pgpro/std-14/data/pg_hba.conf`, возможно, придётся поколдовать. Стоит попробовать их оставить пустыми (="").
```sh
```config
host <database> <user> <ip>/<mask> ldap ldapserver=<dc>.<domain>.<local> ldapscheme=ldaps ldapprefix="cn=" ldapsuffix=",cn=users,dc=<domain>,dc=<local>"
```