]> granicus.if.org Git - postgresql/commit
Set include_realm=1 default in parse_hba_line
authorStephen Frost <sfrost@snowman.net>
Fri, 6 Nov 2015 16:18:27 +0000 (11:18 -0500)
committerStephen Frost <sfrost@snowman.net>
Fri, 6 Nov 2015 16:18:27 +0000 (11:18 -0500)
commit5644419b3de418f81e4461cbaa06c5d4b5da0800
tree07b27df58c65e3fa1c15836a04c81a0d9092d7e3
parent8a1fab36aba7506fcf4559c4ef95fcacdd0b439a
Set include_realm=1 default in parse_hba_line

With include_realm=1 being set down in parse_hba_auth_opt, if multiple
options are passed on the pg_hba line, such as:

host all     all    0.0.0.0/0    gss include_realm=0 krb_realm=XYZ.COM

We would mistakenly reset include_realm back to 1.  Instead, we need to
set include_realm=1 up in parse_hba_line, prior to parsing any of the
additional options.

Discovered by Jeff McCormick during testing.

Bug introduced by 9a08841.

Back-patch to 9.5
src/backend/libpq/hba.c