Interesting, on a machine where I installed smbclient and heimdal-clients, smbclient -L -N does grab the cifs/ kerberos ticket, even though I didn't supply -k:
ubuntu@focal-heimdal-client:~$ klist
klist: No ticket file: /tmp/krb5cc_1000
Sharename Type Comment
--------- ---- -------
print$ Disk Printer Drivers
storage Disk
IPC$ IPC IPC Service (focal-smbclient-kerberos server (Samba, Ubuntu))
ubuntu Disk Home directory of ubuntu
SMB1 disabled -- no workgroup available
Interesting, on a machine where I installed smbclient and heimdal-clients, smbclient -L -N does grab the cifs/ kerberos ticket, even though I didn't supply -k:
ubuntu@ focal-heimdal- client: ~$ klist
klist: No ticket file: /tmp/krb5cc_1000
ubuntu@ focal-heimdal- client: ~$ kinit
<email address hidden>'s Password:
ubuntu@ focal-heimdal- client: ~$ smbclient -L focal-smbclient -kerberos. lxd -N
Sharename Type Comment smbclient- kerberos server (Samba, Ubuntu))
--------- ---- -------
print$ Disk Printer Drivers
storage Disk
IPC$ IPC IPC Service (focal-
ubuntu Disk Home directory of ubuntu
SMB1 disabled -- no workgroup available
ubuntu@ focal-heimdal- client: ~$ klist krb5cc_ 1000
Credentials cache: FILE:/tmp/
Principal: <email address hidden>
Issued Expires Principal
Aug 31 17:26:04 2020 Sep 1 03:26:04 2020 <email address hidden>
Aug 31 17:26:06 2020 Sep 1 03:26:04 2020 <email address hidden>
That is not the behavior when I'm using kinit from krb5-user (MIT).