Bug 2930 - Smbclient fails to autenticate with '!!' in the password
Summary: Smbclient fails to autenticate with '!!' in the password
Status: RESOLVED WORKSFORME
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: smbclient (show other bugs)
Version: 3.0.14a
Hardware: All Linux
: P3 normal
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-29 14:28 UTC by Justin Maggard
Modified: 2006-04-09 10:47 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Maggard 2005-07-29 14:28:27 UTC
This one is a little weird, and a little obscure.  I couldn't find this posted
previously, so I'm sorry if it's a duplicate.  Anyways, I'm trying to access a
share on a WinXP Pro machine via smbclient.  If I have '!!' as part of my user
password, it always fails to connect.  I have a WinNT4 domain set up, but
neither the XP Pro client nor the Samba client should be using it, as I'm using
all local users.  I don't think that part matters.  The weird part is, if I
change the 'workgroup =' line in smb.conf on the Linux box running smbclient to
something other than the workgroup that the XP machine is on, it works fine.

Not working:
root@debian:~# smbclient -V
Version 3.0.14a-Debian
root@debian:~# grep workgroup /etc/samba/smb.conf
workgroup = NT4DOM
root@debian:~# smbclient -U 'justin%a!!a' "//xppro/justin"
session setup failed: NT_STATUS_LOGON_FAILURE

Working:
root@debian:~# smbclient -V
Version 3.0.14a-Debian
root@debian:~# grep workgroup /etc/samba/smb.conf
workgroup = WORKGROUP
root@debian:~# smbclient -U 'justin%a!!a' "//xppro/justin"
Domain=[NT4DOM] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
smb: \> quit

Without the !'s in the password, it works fine in either case.
Comment 1 Justin Maggard 2005-11-09 15:47:31 UTC
Has anyone taken a look at this yet?
Comment 2 Justin Maggard 2006-03-06 18:32:35 UTC
FYI, the problem still exists in 3.0.21c.
Comment 3 Volker Lendecke 2006-04-09 10:47:18 UTC
Just tried with latest trunk, works for me. I think you don't have a problem with the !! in the password, you need to make sure the XP machine tries the right account. Please try to use '-W xppro' as an argument to smbclient to force xp to use its local account. Otherwise it defaults to the domain account which probably has a different password.

Volker