Thierry Lacoste
2011-Feb-16 11:59 UTC
[Samba] issues with smbclient 3.0.x against 3.4.x server
Hello, I'm upgrading my samba installation from 3.0.34 (FreeBSD 6.4) to 3.4.x (CentOS 5.5) from SerNet. I have LDAP based samba domain (PDC and BDC) and a homes/Profiles member server. I first upgraded my DCs to 3.4.9 with no problem. I have recently installed a new file server (samba 3.4.11 on CentOS 5.5). I have issues connecting to this server with old versions of smbclient which give 'session setup failed: NT_STATUS_LOGON_FAILURE' with the foolowing command line: smbclient //new-server/user -U user I'm having trouble determining a pattern and I don't even know where to start debugging the problem. I thought it happened when using 3.0.x smbclient as 3.4.x smbclient work but my old 3.0.34 smbclient on FreeBSD also works. I found this issue with smbclient 3.0.25b-apple on MacOSX, 3.0.9-1.3E.15 on RedHat ES3 and 3.0.33-0.17.el4 on RedHat AS4. This will probably not be a blocking problem for me but I'm just curious to know if there are some known such issues (and workaround). Regards, Thierry
Thierry Lacoste
2011-Feb-17 13:39 UTC
[Samba] issues with smbclient 3.0.x against 3.4.x server
On 16 f?vr. 11, at 12:59, Thierry Lacoste wrote:> Hello, > > I'm upgrading my samba installation from 3.0.34 (FreeBSD 6.4) > to 3.4.x (CentOS 5.5) from SerNet. > > I have LDAP based samba domain (PDC and BDC) and a homes/Profiles > member server. > > I first upgraded my DCs to 3.4.9 with no problem. > > I have recently installed a new file server (samba 3.4.11 on CentOS > 5.5). > I have issues connecting to this server with old versions of smbclient > which give 'session setup failed: NT_STATUS_LOGON_FAILURE' > with the foolowing command line: > smbclient //new-server/user -U userMy bad. This has nothing to do with clients. I just need to specify the domain. I found the answer with a log level = 3 on the homes server. On a client with the smb.conf workgroup parameter unset, smbclient //new-server/user -U user is rejected and the server's log shows: [2011/02/17 15:17:23, 3] libsmb/ntlmssp.c:745(ntlmssp_server_auth) Got user=[user] domain=[WORKGROUP] workstation=[CLIENT1] len1=24 len2=24 On a client with the workgroup set to MYGROUP (which is the case on some packaged distributions of samba), smbclient is also rejected and as one could expect we have: [2011/02/17 15:09:13, 3] libsmb/ntlmssp.c:745(ntlmssp_server_auth) Got user=[user] domain=[MYGROUP] workstation=[CLIENT2] len1=24 len2=24 On every client, specifying the domain to which the file server is joined works: smbclient //new-server/user -U user -W MYDOMAIN AFAICS it was not required to specify the domain with 3.0.x member servers Sorry for the noise. Thierry