node-pg-native icon indicating copy to clipboard operation
node-pg-native copied to clipboard

How to enable Kerberos authenticating?

Open WilixLead opened this issue 8 years ago • 5 comments

Hello!

I found in module docs "params is optional and is in any format accepted by libpq. The connection string is passed as is to libpq, so any format supported by libpq will be supported here. Likewise, any format unsupported by libpq will not work. If no parameters are supplied libpq will use environment variables to connect." libpq support: PGKRBSRVNAME PGREALM

for support kerberos authantication. I try use this envs, also I try use connection string like "postgresql://myuser@localhost:5432/mydbname?krbsrvname=some/[email protected]"

But all not work. In most tries I got "fe_sendauth: no password supplied" What I doing wrong?

Thanks!

WilixLead avatar Sep 04 '17 14:09 WilixLead

Kerberos isn't supported in node-postgres yet. I'm happy to review a PR for the functionality if you build it. Also If your company needs this feature I am happy to engage with you on a contract basis to add it myself.

If you or your company benefit from node-postgres and have the means, please consider supporting my work on Patreon.

brianc avatar Sep 05 '17 16:09 brianc

@brianc Is Kerberos still unsupported in node-postgres?

vy-ton avatar Jun 30 '20 13:06 vy-ton

@charmander any progress here?

vy-ton avatar Sep 09 '20 17:09 vy-ton

@charmander Do you still have plans to work on adding GSSAPI authentication?

vy-ton avatar Oct 20 '20 17:10 vy-ton

@brianc Can you please contact me regarding this issue? Thanks!

dpalmetzvbg avatar Feb 23 '21 08:02 dpalmetzvbg