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

Appearance settings

Commit 366d302

Browse filesBrowse files
committed
Don't clobber the calling user's credentials cache in Kerberos test.
Embarrassing oversight in this test script, which fortunately is not run by default. Report and patch by Jacob Champion. Discussion: https://postgr.es/m/1fcb175bafef6560f47a8c31229fa7c938486b8d.camel@vmware.com
1 parent a26194f commit 366d302
Copy full SHA for 366d302

File tree

Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed

‎src/test/kerberos/t/001_auth.pl

Copy file name to clipboardExpand all lines: src/test/kerberos/t/001_auth.pl
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767

6868
my $krb5_conf = "${TestLib::tmp_check}/krb5.conf";
6969
my $kdc_conf = "${TestLib::tmp_check}/kdc.conf";
70+
my $krb5_cache = "${TestLib::tmp_check}/krb5cc";
7071
my $krb5_log = "${TestLib::log_path}/krb5libs.log";
7172
my $kdc_log = "${TestLib::log_path}/krb5kdc.log";
7273
my $kdc_port = get_free_port();
@@ -134,8 +135,10 @@
134135

135136
mkdir $kdc_datadir or die;
136137

138+
# Ensure that we use test's config and cache files, not global ones.
137139
$ENV{'KRB5_CONFIG'} = $krb5_conf;
138140
$ENV{'KRB5_KDC_PROFILE'} = $kdc_conf;
141+
$ENV{'KRB5CCNAME'} = $krb5_cache;
139142

140143
my $service_principal = "$ENV{with_krb_srvnam}/$host";
141144

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.