pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Magnus Hagander <magnus@hagander.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add new clientcert hba option verify-full
Date: Sat, 09 Mar 2019 20:22:42 +0000
Message-ID: <E1h2iUU-0007fE-7W@gemulon.postgresql.org> (raw)

Add new clientcert hba option verify-full

This allows a login to require both that the cn of the certificate
matches (like authentication type cert) *and* that another
authentication method (such as password or kerberos) succeeds as well.

The old value of clientcert=1 maps to the new clientcert=verify-ca,
clientcert=0 maps to the new clientcert=no-verify, and the new option
erify-full will add the validation of the CN.

Author: Julian Markwort, Marius Timmer
Reviewed by: Magnus Hagander, Thomas Munro

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0516c61b756e39ed6eb7a6bb54311a841002211a

Modified Files
--------------
doc/src/sgml/client-auth.sgml  | 25 ++++++++++++-------
doc/src/sgml/runtime.sgml      | 54 ++++++++++++++++++++++++++++++++----------
src/backend/libpq/auth.c       | 47 +++++++++++++++++++++++++++---------
src/backend/libpq/hba.c        | 33 +++++++++++++++++++-------
src/include/libpq/hba.h        |  9 ++++++-
src/test/ssl/t/001_ssltests.pl | 23 +++++++++++++++++-
src/test/ssl/t/SSLServer.pm    | 10 +++++++-
7 files changed, 156 insertions(+), 45 deletions(-)



Message-ID: <E1h2iUU-0007fE-7W@gemulon.postgresql.org>
Permalink:  ../E1h2iUU-0007fE-7W@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1h2iUU-0007fE-7W@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: magnus@hagander.net
  Subject: Re: pgsql: Add new clientcert hba option verify-full
  In-Reply-To: <E1h2iUU-0007fE-7W@gemulon.postgresql.org>
  References: <E1h2iUU-0007fE-7W@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox