Author Topic: Samba Server v4.11.9  (Read 3956 times)

Paul Smedley

  • Hero Member
  • *****
  • Thank You
  • -Given: 59
  • -Receive: 116
  • Posts: 851
  • Karma: +65/-0
    • View Profile
Samba Server v4.11.9
« on: June 21, 2020, 10:34:56 am »
Hi All,

I'm now at a point in Samba Server development where i'm prepared to publicly share some binaries based on Samba v4.11.9

Client tools/DLLs:
http://smedley.id.au/tmp/smbcl411-4.11.9-20200621.zip

Server executables:
http://smedley.id.au/tmp/smbd-4.11.9-20200621.zip

Note: no installer is available yet, and I have no real idea what's involved in upgrading a Server running v3.6.x to v4.11.9

Note: by default Samba v4.11 only accepts SMB2+ connections - you can enable SMB1, but you need to be aware of the security implications.

This has now had a reasonable amount of testing from linux, Windows and OS/2 (using the Samba 4.x client).

I'm not aware of any significant bugs - known issues are the log file being created as log.smbd.exe not log.smbd - but this is a low priority to fix right now.

Feedback appreciated.

Cheers,

Paul.

Paul Smedley

  • Hero Member
  • *****
  • Thank You
  • -Given: 59
  • -Receive: 116
  • Posts: 851
  • Karma: +65/-0
    • View Profile
Re: Samba Server v4.11.9
« Reply #1 on: June 22, 2020, 10:38:55 am »
Hi All,

I'm now at a point in Samba Server development where i'm prepared to publicly share some binaries based on Samba v4.11.9

Client tools/DLLs:
http://smedley.id.au/tmp/smbcl411-4.11.9-20200621.zip

Server executables:
http://smedley.id.au/tmp/smbd-4.11.9-20200621.zip

Note: no installer is available yet, and I have no real idea what's involved in upgrading a Server running v3.6.x to v4.11.9

Note: by default Samba v4.11 only accepts SMB2+ connections - you can enable SMB1, but you need to be aware of the security implications.

This has now had a reasonable amount of testing from linux, Windows and OS/2 (using the Samba 4.x client).

I'm not aware of any significant bugs - known issues are the log file being created as log.smbd.exe not log.smbd - but this is a low priority to fix right now.

Feedback appreciated.


At least 10 unique downloads, and not a single comment?

Mike Kölling

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 5
  • Posts: 73
  • Karma: +3/-0
    • View Profile
Re: Samba Server v4.11.9
« Reply #2 on: June 22, 2020, 02:19:13 pm »
Hi Paul,

I am going to download it this week and give it a try. But I do need some time to do it. I will keep you updated once I have done the test.
Thanks again for your ongoing support. It is very appreciated.

Greetings from Potsdam / Germany,
Mike

Ian Manners

  • Global Moderator
  • Sr. Member
  • *****
  • Thank You
  • -Given: 51
  • -Receive: 32
  • Posts: 403
  • Karma: +5/-0
  • I am the computer, it is me.
    • View Profile
    • ComKal Networks Australia
Re: Samba Server v4.11.9
« Reply #3 on: June 22, 2020, 05:37:37 pm »
Hi Paul,

I've downloaded it but will take a few days to set it up, never used Samba before but hoping it will make my life easier to update os2site.com via a linux laptop. So.. it all takes time but ignoring the newbie stuff, will let you know :)
Cheers
Ian B Manners

Mike Kölling

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 5
  • Posts: 73
  • Karma: +3/-0
    • View Profile
Re: Samba Server v4.11.9
« Reply #4 on: June 23, 2020, 02:06:39 pm »
Hi All,

I'm now at a point in Samba Server development where i'm prepared to publicly share some binaries based on Samba v4.11.9

Server executables:
http://smedley.id.au/tmp/smbd-4.11.9-20200621.zip


Hi Paul,

I tried the server today, but couldn't get it running. I replaced all the files in my working 3.6.25 samba server.
SMBD is starting as usual. NMBD fails. Error: SYS1041: The name nmbd is not recognized as an internal or external command, operable program or batch file.
Could you share which additional prerequisites might be necessary to start your build.

Replacing your server progs with the original ones brings the working Samba server 3.6.25 back.

Greetings,
Mike

Paul Smedley

  • Hero Member
  • *****
  • Thank You
  • -Given: 59
  • -Receive: 116
  • Posts: 851
  • Karma: +65/-0
    • View Profile
Re: Samba Server v4.11.9
« Reply #5 on: June 23, 2020, 11:30:37 pm »
Hi Mike,

The only 'unusual' dependency should be GTLS30.DLL from komh's GNUTLS 3.5.8 package http://hobbes.nmsu.edu/download/pub/os2/dev/unix/gnutls-3.5.8.zip

If nmbd isn't starting, is there anything in popuplog.os2 or x:\mptn\etc\samba\log\log.nmbd ?

It would also be worth checking dependency DLL's with pmdll.exe

Cheers,

Paul

Dave Yeo

  • Hero Member
  • *****
  • Thank You
  • -Given: 13
  • -Receive: 215
  • Posts: 3031
  • Karma: +46/-0
    • View Profile
Re: Samba Server v4.11.9
« Reply #6 on: June 24, 2020, 02:49:59 am »
ArcaOS 5.0.5 may have installed GTLS30.DLL into @unixroot\usr\lib.

Paul Smedley

  • Hero Member
  • *****
  • Thank You
  • -Given: 59
  • -Receive: 116
  • Posts: 851
  • Karma: +65/-0
    • View Profile
Re: Samba Server v4.11.9
« Reply #7 on: June 24, 2020, 04:35:29 am »
ArcaOS 5.0.5 may have installed GTLS30.DLL into @unixroot\usr\lib.

Makes sense - ArcaOS 5.0.5 includes the Samba v4.11.x client...

Andy Willis

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 11
  • Posts: 221
  • Karma: +0/-0
    • View Profile
Re: Samba Server v4.11.9
« Reply #8 on: June 24, 2020, 05:11:34 am »
At least 10 unique downloads, and not a single comment?
I had a broken 3.6 install, I am getting further with the 4.11 while trying to fix it but at this point I am assuming the problems I have are related to the original issues, thus nothing to report until I get it sorted out.  I am seeing a bunch or assertions in libcx pwrite but I assume those are from Samba tools that were written for 3.6 (making it harder to sort this all out).

Paul Smedley

  • Hero Member
  • *****
  • Thank You
  • -Given: 59
  • -Receive: 116
  • Posts: 851
  • Karma: +65/-0
    • View Profile
Re: Samba Server v4.11.9
« Reply #9 on: June 24, 2020, 05:21:01 am »
Hi Andy,
At least 10 unique downloads, and not a single comment?
I had a broken 3.6 install, I am getting further with the 4.11 while trying to fix it but at this point I am assuming the problems I have are related to the original issues, thus nothing to report until I get it sorted out.  I am seeing a bunch or assertions in libcx pwrite but I assume those are from Samba tools that were written for 3.6 (making it harder to sort this all out).

I was seeing pwrite assertion failures in earlier builds of 4.11 - make sure you're using the latest smbcl411.dll. For whatever reason, the replacement pwrite in libcx started causing issues, so I have a custom import lib to revert to using the libc version. This seemed to only impact smbd here.

Also - I'd suggest cleaning out your %ETC%\samba and starting with a fresh smb.conf

I've attached a minimal smb.conf to this post

Mike Kölling

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 5
  • Posts: 73
  • Karma: +3/-0
    • View Profile
Re: Samba Server v4.11.9
« Reply #10 on: June 24, 2020, 01:21:50 pm »
Hi Mike,

The only 'unusual' dependency should be GTLS30.DLL from komh's GNUTLS 3.5.8 package http://hobbes.nmsu.edu/download/pub/os2/dev/unix/gnutls-3.5.8.zip

If nmbd isn't starting, is there anything in popuplog.os2 or x:\mptn\etc\samba\log\log.nmbd ?

It would also be worth checking dependency DLL's with pmdll.exe

Cheers,

Paul

Dear Paul,

I just gave it another try and placed your files again in my working environment.
pmDLL.exe showed no missing DLLs.
GNUTL is already installed with ANPM.
So I tried to start the Samba server again and now it is working, no failure message any longer. I have absolutely no clue what happened yesterday.
Accessing files on the Samba server from Win7 is working fine.
Win10 sees the Samba server but tells me that the password to access the files is wrong.
Going back to 3.6.25 =>W10 is working fine as well.

Greetings,
Mike
« Last Edit: June 24, 2020, 01:26:57 pm by Mike Kölling »

Paul Smedley

  • Hero Member
  • *****
  • Thank You
  • -Given: 59
  • -Receive: 116
  • Posts: 851
  • Karma: +65/-0
    • View Profile
Re: Samba Server v4.11.9
« Reply #11 on: June 24, 2020, 11:06:50 pm »
Hi Mike,

The only 'unusual' dependency should be GTLS30.DLL from komh's GNUTLS 3.5.8 package http://hobbes.nmsu.edu/download/pub/os2/dev/unix/gnutls-3.5.8.zip

If nmbd isn't starting, is there anything in popuplog.os2 or x:\mptn\etc\samba\log\log.nmbd ?

It would also be worth checking dependency DLL's with pmdll.exe


I just gave it another try and placed your files again in my working environment.
pmDLL.exe showed no missing DLLs.
GNUTL is already installed with ANPM.
So I tried to start the Samba server again and now it is working, no failure message any longer. I have absolutely no clue what happened yesterday.
Accessing files on the Samba server from Win7 is working fine.
Win10 sees the Samba server but tells me that the password to access the files is wrong.
Going back to 3.6.25 =>W10 is working fine as well.

Glad to see the servers are starting for you now.

For Win 10 - I'm going to suspect that at some time you had to 'modify' things to work with the old Samba 3.6 - something like https://centosfaq.org/centos/samba-issues-with-win-10/

This may have set security settings in Win10 that are now not allowed by Samba 4.11.x. For example - you may have forced SMB1 to be used by Win10 - this protocol is disabled by default in Samba 4.11 - but can be enabled by adding 'client min protocol=NT1' to the [global] section of smb.conf

Cheers,

Paul

Mike Kölling

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 5
  • Posts: 73
  • Karma: +3/-0
    • View Profile
Re: Samba Server v4.11.9
« Reply #12 on: June 25, 2020, 09:50:24 am »
Hi Paul,


Glad to see the servers are starting for you now.

For Win 10 - I'm going to suspect that at some time you had to 'modify' things to work with the old Samba 3.6 - something like https://centosfaq.org/centos/samba-issues-with-win-10/

This may have set security settings in Win10 that are now not allowed by Samba 4.11.x. For example - you may have forced SMB1 to be used by Win10 - this protocol is disabled by default in Samba 4.11 - but can be enabled by adding 'client min protocol=NT1' to the [global] section of smb.conf


I have the 'client min protocol=NT1' in my global section.

Please see here:

# Samba config file created using SSCC ver. 1.1.3
# from Mike@PC25_AOS
# Date: 14 Jun 2020 13:15:10
[global]
workgroup = xxx
server string = %h Samba Server
null passwords = Yes
guest account = guest
username map = C:\MPTN\ETC\samba\private\smbusermap
log file = C:\MPTN\ETC\samba\log\log.smbd.%U.%M
max protocol = SMB2
time server = Yes
load printers = No
printcap name = F:\etc\printcap
enumports command = F:\Programs\Samba\enumports.cmd
add user script = F:\Programs\Samba\usermod.cmd -a "%u"
rename user script = F:\Programs\Samba\usermod.cmd -r "%uold" "%unew"
delete user script = F:\Programs\Samba\usermod.cmd -x "%u"
add group script = F:\Programs\Samba\groupmod.cmd -a "%g"
delete group script = F:\Programs\Samba\groupmod.cmd -x "%g"
add user to group script = F:\Programs\Samba\groupmod.cmd -j "%g" "%u"
delete user from group script = F:\Programs\Samba\groupmod.cmd -l "%g" "%u"
set primary group script = F:\Programs\Samba\usermod.cmd -p "%u" "%g"
add machine script = F:\Programs\Samba\usermod.cmd -a "%u"
lm announce = Yes
wins support = Yes
add share command = F:\Programs\Samba\addshare.cmd
change share command = F:\Programs\Samba\changeshare.cmd
delete share command = F:\Programs\Samba\delshare.cmd
lock directory = C:\MPTN\ETC\samba\lock
nmbd bind explicit broadcast = No
comment = X250 mit OS/2
create mask = 0777
ea support = Yes
store dos attributes = Yes
client min protocol = NT1
name resolve order = lmhosts wins host bcast
wins server =
log level = 2

Greetings,
Mike

Paul Smedley

  • Hero Member
  • *****
  • Thank You
  • -Given: 59
  • -Receive: 116
  • Posts: 851
  • Karma: +65/-0
    • View Profile
Re: Samba Server v4.11.9
« Reply #13 on: June 25, 2020, 11:24:10 am »
Most useful would be a log.smbd.exe with debuglevel of 3 and an attempt to connect from win10...

Mike Kölling

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 5
  • Posts: 73
  • Karma: +3/-0
    • View Profile
Re: Samba Server v4.11.9
« Reply #14 on: June 25, 2020, 04:23:53 pm »
Most useful would be a log.smbd.exe with debuglevel of 3 and an attempt to connect from win10...

Here you are.

Greetings,
Mike