Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am successfully able to list the Samba 4.0.3 shares by using

smbclient -L myhostname -k command.

However I am unable to do the same by using

smbclient -L -k

and I get the session setup failed: NT_STATUS_LOGON_FAILURE error.

However it does work when I try to do the same by using the IP and a username like this:

smbclient -L -U administrator.

Is it possible to perform this task using the IP and Kerberos authentication?

share|improve this question

I got almost instant answer from Andrew Bartlett from the Samba Developer Team. It is simple and straightforward:

No. Kerberos requires the server's name to obtain the correct ticket.

Andrew Bartlett

If anyone has more detailed explanation exactly why is it so, please let me know.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.