smbclient command with -k (--kerberos) option fails with an error: session setup failed: NT_STATUS_INVALID_PARAMETER

Solution Verified - Updated -

Issue

  • Accessing samba share via smbclient command with -k (--kerberos) option fails with an error below though kinit was 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content