Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2dbb7b9

Browse files
committed
Fix pg_hba_file_rules for authentication method cert
For authentication method cert, clientcert=verify-full is implied. Butthe pg_hba_file_rules entry would incorrectly show clientcert=verify-ca.Per bug #17354Reported-By: Feike SteenbergenReviewed-By: Jonathan KatzBackpatch-through: 12
1 parentbd233bd commit2dbb7b9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎src/backend/libpq/hba.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1684,7 +1684,11 @@ parse_hba_line(TokenizedLine *tok_line, int elevel)
16841684
*/
16851685
if (parsedline->auth_method==uaCert)
16861686
{
1687-
parsedline->clientcert=clientCertCA;
1687+
/*
1688+
* For auth method cert, client certificate validation is mandatory, and it implies
1689+
* the level of verify-full.
1690+
*/
1691+
parsedline->clientcert=clientCertFull;
16881692
}
16891693

16901694
returnparsedline;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp