1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

selftest: Use selftest's TMPDIR to store the krb5 ccache in pam_winbind tests

Using /tmp directly can lead to errors if multiple autobuilds are
running at the same time. Using tempfile.gettempdir() will look for
$TMPDIR environment variable.

Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Samuel Cabrero 2022-04-13 13:20:27 +02:00 committed by Andreas Schneider
parent a6d6ae3cfc
commit db7e296f9c

View File

@ -235,7 +235,7 @@ if with_pam:
options = [
{
"description": "krb5",
"pam_options": "krb5_auth krb5_ccache_type=FILE",
"pam_options": "krb5_auth krb5_ccache_type=FILE:%s/krb5cc_pam_test_%%u" % (tempfile.gettempdir()),
},
{
"description": "default",