3

Been looking for an example or documentation leveraging kerberos with GORM or pgx, to connect to Postgres Db.

Found some references, on pgx

import (
 "github.com/jackc/pgconn"
 "github.com/otan/gopgkrb5"
)

func init() {
  pgconn.RegisterGSSProvider(func() (pgconn.GSS, error) { return gopgkrb5.NewGSS() })
}

Thank you, Bob

Been surfing for a bit, but cant seem to find anything that really explains what needs to be done to get the connection set.

0 Answers0