s3:libsmb: explicitly use the default krb5 ccache in cli_session_creds_init() without...
authorStefan Metzmacher <metze@samba.org>
Wed, 6 Mar 2024 22:05:00 +0000 (23:05 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 14 May 2024 10:18:31 +0000 (10:18 +0000)
commitfb7e19826afab4fce33769eb7aef16a1c650b23a
tree240282537d0c3559082124a739eedf0b9ee6dcb7
parent2dc76cc84c1d2edde7eea3d39412e3b41b631137
s3:libsmb: explicitly use the default krb5 ccache in cli_session_creds_init() without a password

This happened implicitly as the gse_krb5 module always used the default
krb5 ccache, but that will change soon.

If kerberos is requested without a fallback to ntlm AND
the caller doesn't provide a password we'll use the
default ccache. This will keep our the following tests
happy once the gse_krb5 module changes the behavior:

 samba3.blackbox.krbsmbspool
 samba3.blackbox.smbget

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/libsmb/cliconnect.c