Enabling kerberos support (#1015)

* make it possible to create users without passwords
* put `krbsrvname` into the connection string if it is specified in the config
* update postgres?.yml example files to mention `krbsrvname`
This commit is contained in:
vilajit
2019-04-29 09:02:04 +02:00
committed by Alexander Kukushkin
parent f0b784fe7f
commit f6d29081c9
4 changed files with 54 additions and 12 deletions
+9
View File
@@ -49,6 +49,9 @@ bootstrap:
- data-checksums
pg_hba: # Add following lines to pg_hba.conf after running 'initdb'
# For kerberos gss based connectivity (discard @.*$)
#- host replication replicator 127.0.0.1/32 gss include_realm=0
#- host all all 0.0.0.0/0 gss include_realm=0
- host replication replicator 127.0.0.1/32 md5
- host all all 0.0.0.0/0 md5
# - hostssl all all 0.0.0.0/0 md5
@@ -62,6 +65,12 @@ bootstrap:
- createdb
postgresql:
# Fully qualified kerberos ticket file for the running user
# same as KRB5CCNAME used by the GSS
# krb_server_keyfile: /var/spool/keytabs/postgres
# Server side kerberos spn
# krbsrvname: postgres
listen: 127.0.0.1:5434
connect_address: 127.0.0.1:5434
data_dir: data/postgresql2