It is not possible anymore to connect anonymously to a Samba server, if there is a Kerberos environment. It does not matter if there is a valid Kerberos ticket or not. I'm using FreeIPA.
This is with smbclient 2:4.11.6+dfsg-0ubuntu1.4
For example,
On Ubuntu 18.04, with smbclient 2:4.7.6+dfsg~ubuntu-0ubuntu2.18 it works as expected (albeit with many messages about failing krb5_init_context and smb_krb5_context_init_basic)
The combination Samba + FreeIPA + Ubuntu has never worked since I started using FreeIPA a few years ago. But anonymous access to a Samba server did work, until I switched to Ubuntu 20.04.
It is not possible anymore to connect anonymously to a Samba server, if there is a Kerberos environment. It does not matter if there is a valid Kerberos ticket or not. I'm using FreeIPA.
This is with smbclient 2:4.11. 6+dfsg- 0ubuntu1. 4
For example,
$ smbclient -L '//dist. ghs.nl/ space' -N persistent: 60001'! (Unknown credential cache type)
Failed to resolve credential cache 'KEYRING:
free(): double free detected in tcache 2
Aborted (core dumped)
On Ubuntu 18.04, with smbclient 2:4.7.6+ dfsg~ubuntu- 0ubuntu2. 18 it works as expected (albeit with many messages about failing krb5_init_context and smb_krb5_ context_ init_basic)
The combination Samba + FreeIPA + Ubuntu has never worked since I started using FreeIPA a few years ago. But anonymous access to a Samba server did work, until I switched to Ubuntu 20.04.