diff options
author | Michael Paquier <michael@paquier.xyz> | 2022-10-11 13:57:07 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2022-10-11 13:57:07 +0900 |
commit | 8432a815feb8897aabe0c6ed59f32bc47a6b2d50 (patch) | |
tree | d7773d3ec7222b5a5ce43ef40a299e9d107ad872 /src/backend/tcop/postgres.c | |
parent | 9fcdf2c787ac6da330165ea3cd50ec5155943a2b (diff) | |
download | postgresql-8432a815feb8897aabe0c6ed59f32bc47a6b2d50.tar.gz postgresql-8432a815feb8897aabe0c6ed59f32bc47a6b2d50.zip |
Add TAP tests for role membership in pg_hba.conf
This commit expands the coverage of pg_hba.conf with checks specific to
role memberships (one "root" role combined with a member and a
non-member). Coverage is added for the database keywords "samegroup"
and "samerole", where the specified role has to be be a member of the
role with the same name as the requested database, and '+' on the user
entry, where members are allowed. These tests are plugged in the
authentication test 001_password.pl as of extra connection attempts
combined with resets of pg_hba.conf, making them rather cheap.
Author: Nathan Bossart
Reviewed-by: Tom Lane, Michael Paquier
Discussion: https://postgr.es/m/20221009211348.GB900071@nathanxps13
Diffstat (limited to 'src/backend/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions