Skip to content
Snippets Groups Projects
  • Joe Conway's avatar
    51bc3dfe
    Arrange for the authentication request type to be preserved in · 51bc3dfe
    Joe Conway authored
    PGconn. Invent a new libpq connection-status function,
    PQconnectionUsedPassword() that returns true if the server
    demanded a password during authentication, false otherwise.
    This may be useful to clients in general, but is immediately
    useful to help plug a privilege escalation path in dblink.
    Per list discussion and design proposed by Tom Lane.
    51bc3dfe
    History
    Arrange for the authentication request type to be preserved in
    Joe Conway authored
    PGconn. Invent a new libpq connection-status function,
    PQconnectionUsedPassword() that returns true if the server
    demanded a password during authentication, false otherwise.
    This may be useful to clients in general, but is immediately
    useful to help plug a privilege escalation path in dblink.
    Per list discussion and design proposed by Tom Lane.