Author Topic: Samba 4.4.x Netdrive plugin for OS/2  (Read 50473 times)

Doug Bissett

  • Hero Member
  • *****
  • Posts: 1593
  • Karma: +4/-2
    • View Profile
Re: Samba 4.4.x Netdrive plugin for OS/2
« Reply #30 on: November 22, 2016, 09:33:42 pm »
Quote
Something I forgot to ask earlier - do you have any entries in popuplog.os2 relating to evfs? potentially entries for evfsctl.exe?

No. I do see the odd entry for PMSHELL (usually at system shutdown), but not at the time of the hangs.

Dariusz Piatkowski

  • Hero Member
  • *****
  • Posts: 1316
  • Karma: +26/-0
    • View Profile
Re: Samba 4.4.x Netdrive plugin for OS/2
« Reply #31 on: December 11, 2016, 03:23:57 am »
Hi All,

As many would be aware, I've been working on a Netdrive Samba plugin for OS/2 for a while now.
...
heimdal DLL's - http://smedley.id.au/tmp/heimdal-1.5.3-os2-20160723.zip

That package is pretty sizeable...can you recommend what to and what NOT to install? I did grab all the DLLs and the kinit.exe file...but since I'm only connecting to a WinXP and Win7Pro box I do not even know if I need these?

libcx0.dll - http://smedley.id.au/tmp/libcx0.zip (Note this is a self built version of libcx0.dll - rpm version may work as well)

Happy to report that the latest available YUM/RPM release of libcx seems to be doing fine as well.

As always, Thanks Paul for the great stuff you keep on bringing us!
« Last Edit: December 11, 2016, 03:27:14 am by Dariusz Piatkowski »

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2089
  • Karma: +159/-0
    • View Profile
Re: Samba 4.4.x Netdrive plugin for OS/2
« Reply #32 on: December 11, 2016, 09:20:47 am »
Hi Dariusz,

Hi All,

As many would be aware, I've been working on a Netdrive Samba plugin for OS/2 for a while now.
...
heimdal DLL's - http://smedley.id.au/tmp/heimdal-1.5.3-os2-20160723.zip

That package is pretty sizeable...can you recommend what to and what NOT to install? I did grab all the DLLs and the kinit.exe file...but since I'm only connecting to a WinXP and Win7Pro box I do not even know if I need these?

libcx0.dll - http://smedley.id.au/tmp/libcx0.zip (Note this is a self built version of libcx0.dll - rpm version may work as well)

Happy to report that the latest available YUM/RPM release of libcx seems to be doing fine as well.

As always, Thanks Paul for the great stuff you keep on bringing us!

From the heimdal package, all that's needed is the DLL's. At some point, I'll get the Samba provided heimdal working, but that won't be until https://github.com/bitwiseworks/libcx/issues/23 is fixed. 

Thanks for the feedback :)

Cheers,

Paul

Greggory Shaw

  • Sr. Member
  • ****
  • Posts: 442
  • Karma: +0/-0
    • View Profile
Re: Samba 4.4.x Netdrive plugin for OS/2
« Reply #33 on: December 14, 2016, 06:10:23 pm »
Any luck on getting EVFS connecting to Win 10 ? I got NetDrive working.

The commandline syntax for EVFS would be great !!!

Update: I got EVFS working wrong libcx0.dll

So, I'm seeing a different result Paul with libcx0.dll needed the one you provided.


Thank you Paul

Greggory
« Last Edit: December 14, 2016, 08:29:14 pm by Greggory Shaw »

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2089
  • Karma: +159/-0
    • View Profile
Re: Samba 4.4.x Netdrive plugin for OS/2
« Reply #34 on: December 21, 2016, 09:56:14 am »
Hi All,

Anyone using the updated Samba 4.x plugin on shares that use SMB2 or above should read https://trac.netlabs.org/samba/ticket/279

There is a test fix in that ticket.

Whilst the bug has only been discovered using the MED editor, I'm sure there must be other OS/2 software that could induce the same bug.

Cheers,

Paul

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2089
  • Karma: +159/-0
    • View Profile
Re: Samba 4.4.x Netdrive plugin for OS/2
« Reply #35 on: December 21, 2016, 09:58:08 am »
Hi Greggory,

Any luck on getting EVFS connecting to Win 10 ? I got NetDrive working.

The commandline syntax for EVFS would be great !!!

Update: I got EVFS working wrong libcx0.dll

So, I'm seeing a different result Paul with libcx0.dll needed the one you provided.


Thank you Paul

Greggory

Any chance of a writeup on how to get this working with evfs?

Cheers,

Paul

Greggory Shaw

  • Sr. Member
  • ****
  • Posts: 442
  • Karma: +0/-0
    • View Profile
Re: Samba 4.4.x Netdrive plugin for OS/2
« Reply #36 on: December 21, 2016, 04:17:44 pm »

Any chance of a writeup on how to get this working with evfs?

Cheers,

Paul

Sure, I have about 5 or 6 going now but I'll put this out first (both server & client).  But, going on a cruise next week so could be a couple weeks.

If someone could post their command line syntax for EVFS that would be great !  I would like to add that section to the article.


Greggory

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2089
  • Karma: +159/-0
    • View Profile
Re: Samba 4.4.x Netdrive plugin for OS/2
« Reply #37 on: December 22, 2016, 05:03:03 am »
Hi All,

Anyone using the updated Samba 4.x plugin on shares that use SMB2 or above should read https://trac.netlabs.org/samba/ticket/279

There is a test fix in that ticket.

Whilst the bug has only been discovered using the MED editor, I'm sure there must be other OS/2 software that could induce the same bug.

A better fix to this is contained in an updated Samba support DLL, based on Samba 4.4.8 level - with the additional inclusion of a fix for cli_ftruncate() when running on SMB2+ (https://bugzilla.samba.org/show_bug.cgi?id=12479) at http://smedley.id.au/tmp/smbcln44-4.4.8-20161222.zip

Cheers,

Paul

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2089
  • Karma: +159/-0
    • View Profile
Re: Samba 4.4.x Netdrive plugin for OS/2
« Reply #38 on: January 14, 2017, 11:05:16 am »
Hi All,

Anyone using the updated Samba 4.x plugin on shares that use SMB2 or above should read https://trac.netlabs.org/samba/ticket/279

There is a test fix in that ticket.

Whilst the bug has only been discovered using the MED editor, I'm sure there must be other OS/2 software that could induce the same bug.

A better fix to this is contained in an updated Samba support DLL, based on Samba 4.4.8 level - with the additional inclusion of a fix for cli_ftruncate() when running on SMB2+ (https://bugzilla.samba.org/show_bug.cgi?id=12479) at http://smedley.id.au/tmp/smbcln44-4.4.8-20161222.zip

Cheers,

Paul

Hi All,

OS/2 build of smbcln44.dll based on Samba 4.4.9 is now available from:

http://smedley.id.au/tmp/smbcln44-4.4.9-20170114.zip (DLL & map file included).

As well as the changes in 4.4.9, a patch for https://bugzilla.samba.org/show_bug.cgi?id=12479 is also included - this patch will be part of Samba 4.4.10, but is critical for the OS/2 client with SMB2+ connections.

This build also minimises usage of mmap() from mmap.dll to help with Lewis's crash with locatedb

Feedback appreciated.

Cheers,

Paul

Greggory Shaw

  • Sr. Member
  • ****
  • Posts: 442
  • Karma: +0/-0
    • View Profile
Re: Samba 4.4.x Netdrive plugin for OS/2
« Reply #39 on: March 05, 2017, 10:55:10 pm »
Posted new article on installing the Samba 4 plugin /w NetDrive

http://os2notes.net

Also, I'm looking for the command line syntax that you use with EVFS for the next part of the article.


Greggory

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2089
  • Karma: +159/-0
    • View Profile
Re: Samba 4.4.x Netdrive plugin for OS/2
« Reply #40 on: March 06, 2017, 09:12:12 am »
Hi Greggory,

Posted new article on installing the Samba 4 plugin /w NetDrive

http://os2notes.net

Also, I'm looking for the command line syntax that you use with EVFS for the next part of the article.

Thanks for posting this. I can't help with EVFS syntax - hopefully some others can.

Incidentally, I ported Samba 4.4.10 - updated plugin at: http://smedley.id.au/tmp/smbcln44-4.4.10-20170304.zip

Cheers,

Paul

Greggory Shaw

  • Sr. Member
  • ****
  • Posts: 442
  • Karma: +0/-0
    • View Profile
Re: Samba 4.4.x Netdrive plugin for OS/2
« Reply #41 on: March 06, 2017, 10:09:58 am »
Thx, updated the new link for smbcln44-4.4.10-20170304.zip !

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2089
  • Karma: +159/-0
    • View Profile
Re: Samba 4.4.x Netdrive plugin for OS/2
« Reply #42 on: March 13, 2017, 07:31:45 am »
Thx, updated the new link for smbcln44-4.4.10-20170304.zip !

Some more updates:

A Samba 4.5.6 client:
smbcln45.dll and smbclient.exe:
http://smedley.id.au/tmp/smbcln45-4.5.6-20170312.zip

ndpsmb.dll (relinked against smbcln45.dll and labelled as client 3.1:
http://smedley.id.au/tmp/ndpsmb-3.1-samba45-20170312.zip

& a Samba 4.6.0 client (this one needed more source changes that the above)
smbcln46.dll and smbclient.exe:
http://smedley.id.au/tmp/smbcln46-4.6.0-20170312.zip

ndpsmb.dll based on Samba 4.6.0 is at http://smedley.id.au/tmp/ndpsmb-3.2-samba46-20170313.zip (needs smbcln46.dll from the above)

Feedback appreciated - Samba 4.4 is security fixes only now.

Cheers,

Paul

Greggory Shaw

  • Sr. Member
  • ****
  • Posts: 442
  • Karma: +0/-0
    • View Profile
Re: Samba 4.4.x Netdrive plugin for OS/2
« Reply #43 on: March 19, 2017, 12:48:40 am »
Some more updates:

Samba 4.6.0 client (this one needed more source changes that the above)
smbcln46.dll and smbclient.exe:
http://smedley.id.au/tmp/smbcln46-4.6.0-20170312.zip

ndpsmb.dll based on Samba 4.6.0 is at http://smedley.id.au/tmp/ndpsmb-3.2-samba46-20170313.zip (needs smbcln46.dll from the above)

Feedback appreciated - Samba 4.4 is security fixes only now.

Cheers,

Paul

Updated for Samba 4.6, little testing but working with my Win10 & latest Samba/2 server so far !

http://os2notes.net/os2samba.html

Thx Paul !

David McKenna

  • Hero Member
  • *****
  • Posts: 740
  • Karma: +24/-0
    • View Profile
Re: Samba 4.4.x Netdrive plugin for OS/2
« Reply #44 on: March 19, 2017, 02:48:53 am »
 Samba 4.6 seems to work well here too with Win10 and latest Samba/2 server - thanks!