Re: multiple Kerberos Server Principals from 1 instance of pgadmin

Stephen Frost <[email protected]> Thu, 15 Aug 2019 19:54:02 -0400
Newsgroups gmane.comp.db.postgresql.pgadmin
Message-ID <[email protected]>
Greetings,

* Ivan Novick ([email protected]) wrote:
> We have a user that is working with postgres and greenplum and they said
> that pgadmin4 only allows one Kerberos Server Principal per pgAdmin
> instance because it takes the value of the environment variable
> PGKRBSRVNAME. Kerberos Server Principal value is the name of the user
> running Greenplum or Postgres database.
> 
> The user is trying to connect to multiple databases and they have different
> user names in the installation like gpadmin. pgqa pgprod, etc. So they can
> not connect to both from one PGADMIN because the environment variable would
> need to be reset when starting pgadmin.

PGKRBSRVNAME is typically either 'postgres' or 'POSTGRES', depending on
if you are dealing with Active Directory clients or not.  I agree that
it's theoretically possible that you might need to be able to configure
PGKRBSRVNAME on a per-server/cluster basis, but you definitely don't
need to be able to do so on a per-database basis and the PGKRBSRVNAME
has absolutely nothing to do with the user's username, nor the unix user
that the server actually runs as.

What, exactly, are you thinking that value would be set to?

Can you show what klist -k /path/to/keytab on the PG server returns?

Thanks,

Stephen
signature.asc (application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCgAGBQJdVfCaAAoJEO1sijiDR2RVISUP/jAS7jU48xvOrikjSXRQQFmw
lz8mODcjvPVFKs6/rWmreuS4Ntop9iqP13NbvhAiFTy/Zk6a1HJNRkf680Wk6UEF
8XJit5kSJbgwANur6BLyZYvPJ016b6/G/fVSrN+yTiBggRligtXGxEli7fAu/3zl
3YAy1Sq8xszl9tkqZFi/iLpLVG1YvyxJUXc0dc+aY6f6F+VHwHOZAA5gbEyfrL6h
8onL9s598/2h/ZM0bSXDmkFXjJkxfxFolB0LiVHw36rOrBDRJ9Kkc+PGo/IglRIS
d1SkQQq/Y+/0sa6NHvItRXFpwytrcgvNwUVPBZwGYrSjqA8GgTjlfthEeyup+Fr3
SCxE2le7k3cUdys28Fdgich3fn/fSptk80MO2IbUmutOFdbZDNpmjhY19lj8JuG8
jcW9ZZinsPmSoyN5TnbLjtO1jbDPs6g3IkirVvb6NB/MLwkzuTUng/zxV/dxVo9X
SHynq4upeT4sbU2oryEuRMd4C3Mxrr4v6FUv0faZIkpQJiZgv8Arn4mp7g0CB9pe
aNqmEvIRm7Q5eZLKNtboYqiE0nhZa08q2h/OBBAXsFGh0BgKMyl59w0J9J9IFrYe
427omWRfCDYP5EGPIz2ofq/lqArUSJeV4mLC4rd/NYWeC0W3Av3pLaWtXar5eoEz
CLn8scdOSE9FYm2o4EQs
=EET2
-----END PGP SIGNATURE-----