Discussion:
[Samba] smbclient & NT_STATUS_LOGON_FAILURE
Jiann-Ming Su
2005-08-27 03:47:34 UTC
Permalink
I'm running smbclient 3.0.14a-Debian. I'm trying to view shares on a
Windows server on a Active Directory domain:

$ smbclient //fileserver/
Password:
session setup failed: NT_STATUS_LOGON_FAILURE

I'm pretty sure the username and password is correct since it works
when I use a Windows client to connect to the fileserver. What does
the NT_STATUS_LOGON_FAILURE mean in this context? Is there something
obvious I'm missing? I apologize if there isn't enough detail.
Thanks for any tips.
--
Jiann-Ming Su
"I have to decide between two equally frightening options.
If I wanted to do that, I'd vote." --Duckman
Michel van der Klei
2005-08-27 04:08:52 UTC
Permalink
X-Mitch IT-MailScanner: Found to be clean
I'm running smbclient 3.0.14a-Debian. I'm trying to view shares on a
$ smbclient //fileserver/
session setup failed: NT_STATUS_LOGON_FAILURE
Hi,

IIRC you should use mount.cifs instead of smbclient on a ADS

Greetz,

Michel
Jiann-Ming Su
2005-08-27 08:44:54 UTC
Permalink
Post by Michel van der Klei
Hi,
IIRC you should use mount.cifs instead of smbclient on a ADS
How do I get a more verbose output?

mount.cifs //fileserver/ /mountpoint -o credentials=auth_file
mount error 13 = Permission denied
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)

Also, are you saying it's not possible to simply view what shares are
available like I was able to with smbclient?
--
Jiann-Ming Su
"I have to decide between two equally frightening options.
If I wanted to do that, I'd vote." --Duckman
Andrew Bartlett
2005-08-27 14:50:41 UTC
Permalink
Post by Michel van der Klei
X-Mitch IT-MailScanner: Found to be clean
I'm running smbclient 3.0.14a-Debian. I'm trying to view shares on a
$ smbclient //fileserver/
session setup failed: NT_STATUS_LOGON_FAILURE
Hi,
IIRC you should use mount.cifs instead of smbclient on a ADS
mount.cifs is a kernel level filesystem on Linux, while smbclient is a
portable ftp-like client. smbclient tends to implement the most, as it
is just a userspace utility, but it's not a filesystem :-)

(Are you thinking of smbfs?)

Andrew Bartlett
--
Andrew Bartlett http://samba.org/~abartlet/
Samba Developer, SuSE Labs, Novell Inc. http://suse.de
Authentication Developer, Samba Team http://samba.org
Student Network Administrator, Hawker College http://hawkerc.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba/attachments/20050827/544fd9b3/attachment.bin
Andrew Bartlett
2005-08-27 14:50:49 UTC
Permalink
Post by Jiann-Ming Su
I'm running smbclient 3.0.14a-Debian. I'm trying to view shares on a
$ smbclient //fileserver/
session setup failed: NT_STATUS_LOGON_FAILURE
I'm pretty sure the username and password is correct since it works
when I use a Windows client to connect to the fileserver. What does
the NT_STATUS_LOGON_FAILURE mean in this context? Is there something
obvious I'm missing? I apologize if there isn't enough detail.
Logon failure means wrong username or password.

Andrew Bartlett
--
Andrew Bartlett http://samba.org/~abartlet/
Samba Developer, SuSE Labs, Novell Inc. http://suse.de
Authentication Developer, Samba Team http://samba.org
Student Network Administrator, Hawker College http://hawkerc.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba/attachments/20050827/5685d913/attachment.bin
Jiann-Ming Su
2005-08-28 00:06:34 UTC
Permalink
are you using fancy (i.e. non-7bit-ascii) characters in the password?
i had this problem once with a user that used german umlauts in his
password, and it turned out they mapped to different chars in windows
and linux... (ah, the blessings of unicode - problem solved!)
No, I'm using regular characters. I'm pretty sure the username and
password is correct since it works on a Windows client. And, with
smbclient, I use -A to read the auth info from a file.
--
Jiann-Ming Su
"I have to decide between two equally frightening options.
If I wanted to do that, I'd vote." --Duckman
Loading...