smbclient command with -k (--kerberos) option fails with an error: session setup failed: NT_STATUS_INVALID_PARAMETER
Issue
- Accessing samba share via
smbclientcommand with -k (--kerberos) option fails with an error below thoughkinitwas successful.
[root@rhel8u9 automate]# kinit linuxjoin@EXAMPLE.COM
Password for linuxjoin@EXAMPLE.COM:
[root@rhel8u9 automate]# smbclient -L `hostname` -k
WARNING: The option -k|--kerberos is deprecated!
gensec_spnego_client_negTokenInit_step: gse_krb5: creating NEG_TOKEN_INIT for cifs/rhel8u9.example.com failed (next[(null)]): NT_STATUS_INVALID_PARAMETER
session setup failed: NT_STATUS_INVALID_PARAMETER <----
Environment
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- samba
- sssd
- winbind
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.