[Samba] XP error code 1326 on share (but smbclient works)

Rowland Penny rpenny at samba.org
Fri Jun 9 17:55:40 UTC 2017


On Fri, 09 Jun 2017 19:35:08 +0200
Andrea Vai via samba <samba at lists.samba.org> wrote:

> Hi all,
>   I am new to this list and I am not an expert, so please be patient
> with me :-)
> 
> I am trying to make a samba share working, between a samba standalone
> server v.4.5.10 (Fedora 25) and a winXP SP3 client.
> 
> The share should be writable by an authenticated user.
> 
> The share used to work fine in the past, but upgrading to 4.5.10
> (presumably from 4.4.14, on Fedora 24) broke something.
> 
> At the moment I am trying some simple configuration as:
> 
> # cat /etc/samba/smb.conf
> [global]
>         workgroup = WORKGROUP
>         log file = /var/log/samba/%m
>         log level = 3
> 
> [demo]
>         # This share requires authentication to access
>         path = /tmp/samba/demo/
>         read only = no
>         guest ok = no
> ----------------------------------
> I have followed
> https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Standalone_Server
> to add a test user to my system and to samba (username demoUser and
> same password on both).
> 
> The linux client test (invoked from the server itself) works:
> 
> $ smbclient -U demoUser //SERVER_IP_ADDRESS/demo
> Enter demoUser's password: 
> Domain=[WORKGROUP] OS=[Windows 6.1] Server=[Samba 4.5.10]
> smb: \> ls
>   .                                   D        0  Fri Jun  9 17:55:57
> 2017 ..                                  D        0  Fri Jun  9
> 17:37:07 2017 demo.txt                            N        8  Fri
> Jun  9 17:55:57 2017
> 
> 		12297452 blocks of size 1024. 12296844 blocks
> available smb: \> quit
> ----------------------------------
> 
> ...but the test from winXP fails:
> C:\Documents and Settings\demoUser>net use
> \\SERVER_IP_ADDRESS\demo /user:demoUser Invalid username or password
> for \\SERVER_IP_ADDRESS\demo.
> 
> Enter the password for 'demoUser' to connect to 'SERVER_IP_ADDRESS':
> Enter the password for 'demoUser' to connect to 'SERVER_IP_ADDRESS':
> System error 1326.
> 
> Error during access: unknown username or invalid password.
> 
> (Note that some translations are mine from Italian to English and
> could not be perfectly correct). (Note that it asks me two times for
> the password, is this normal?)
> -------------------------------------------------------------------
> 
> I was about to think about some network related problems, but it used
> to work before the upgrade and the network config is not changed in
> the meantime, as far as I know.
> 
> I get two logs (why? I would expect one, instead of two different
> logs... maybe this is the point I don't understand): one's name is
> the client ip address, the second's name is the Win computer name.
> 
> I attach part of the logs (which seems relevant to me), let me know
> if I have to provide the complete one or use a higher debug level.
> 
> Linux firewall is disabled.
> Linux SE Policy is disabled.
> Win antivirus is disabled.
> 
> I have found something similar on the list:
> https://lists.samba.org/archive/samba/2005-September/110693.html
> ...but didn't help me.
> 
> Can anybody please help me, even by simply giving me some hints to
> point me in the right direction to do a deeper investigation?
> 
> Thank you very, very much in advance,
> best regards
> 
> Andrea

Try adding 'ntlm auth = yes' to smb.conf and restart Samba.
It was changed from 'yes' to 'no' with 4.5.0

Rowland



More information about the samba mailing list