OS/2, eCS & ArcaOS - Technical > Networking
Samba 4.4.x Netdrive plugin for OS/2
Paul Smedley:
Hi All,
As many would be aware, I've been working on a Netdrive Samba plugin for OS/2 for a while now. After my presentation at Warpstock last weekend (Youtube video at https://www.youtube.com/watch?v=WfGoCsvSovQ&feature=youtu.be&a - slides at http://www.warpstock.org/filemgmt/visit.php?lid=240) I thought I should finally make some binaries more widely available.
Note that installation currently requires some manual copying of files, and an existing installation of the Netdrive plugin from http://trac.netlabs.org/samba#Clients
Firstly, download the following:
ndpsmb.dll - http://smedley.id.au/tmp/ndpsmb-3.0-20160930.zip
smbcln44.dll - http://smedley.id.au/tmp/smbcln44-4.4.7-20161028.zip
ldap.dll - http://smedley.id.au/tmp/openldap-2.4.44-os2-20160503.zip
heimdal DLL's - http://smedley.id.au/tmp/heimdal-1.5.3-os2-20160723.zip
mmap.dll - http://rpm.netlabs.org/release/00/zip/mmap-0_5-1_oc00.zip or install via rpm
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)
ndpsmb.dll needs to go in x:\ndfs\ndplugs - I suggest smbcln44.dll goes in the same directory.
Other dll's need to be available in the libpath. Note that for heimdal, unless you're using a kerberos enabled share, you only need the DLL's from /heimdal/bin
To connect to a kerberos enabled server (ie Windows Server), you'll also need kinit.exe from /heimdal/bin and potentially some of the other executables
At this point, restarting ndctl.exe should result in a working Samba.
Before rebooting, it is *VERY* important that you remove the line that loads ndctl.exe from config.sys, ie 'RUN=C:\NDFS\NDCTL.EXE' and add 'detach ndctl.exe' to startup.cmd. If you don't do this, it's VERY likely you'll get system hangs as the WPS is starting up. The causes of this are being investigated.
If problems are found, please either email me details - or raise a ticket against Client 3.0.x at http://trac.netlabs.org/samba/newticket
In particular, logs are useful - see my presentation slide 24 for details on creating logs.
Feedback appreciated.
Thanks to Lewis Rosenthal for his support for this project.
Cheers,
Paul
Paul Smedley:
Note that EVFS should in theory also work, but it's not tested.
Also, this has been tested against the following servers (off the top of my head)
* Samba server v3.3.x running on OS/2
* Samba Server v3.5.x, 4.2.x, 4.3.x, 4.4.x, 4.5.x running on linux/debian
* Netware
* Windows 10
* Windows Server 2008r2 and 2012 using kerberos authentication
David McKenna:
Thanks, Paul! I had a little trouble getting it to work at first - copied all the files as you described and then rebooted. Boot stopped with a blinking cursor right where the desktop should appear. CAD and booted to command line and renamed ndpsmb.dll to ndpsmb.dlx. Then I could boot to the desktop again. Did that 3 or 4 times, each time I got a popuplog:
11-13-2016 08:25:49 SYS3175 PID 0023 TID 0001 Slot 0008
C:\OS2\PMSHELL.EXE
c0000005
1dfc07a1
P1=00000002 P2=1dfd899e P3=XXXXXXXX P4=XXXXXXXX
EAX=00000044 EBX=1dfd899e ECX=00000000 EDX=0005079c
ESI=0005079c EDI=1dfd899e
DS=0053 DSACC=d0f3 DSLIM=9fffffff
ES=0053 ESACC=d0f3 ESLIM=9fffffff
FS=150b FSACC=00f3 FSLIM=00000030
GS=0000 GSACC=**** GSLIM=********
CS:EIP=005b:1dfc07a1 CSACC=d0df CSLIM=9fffffff
SS:ESP=0053:0004f158 SSACC=d0f3 SSLIM=9fffffff
EBP=0004f1a4 FLG=00010206
VBE2GRAD.DLL 0001:000007a1
I finally read your instructions again and tried stopping the NDFS control program, then renaming ndpsmb.dlx to *.dll, then restart the control program. Now it works! I can attach to my OS/2 SAMBA 3.6 server. Crossed my fingers and rebooted, and now it reboots to the desktop with no trouble.
Not sure what the issue was, but it seems OK now...
Paul Smedley:
Ok I managed to leave out a very important step.
For reasons still unknown, with this plugin, if ndctl.exe is started from config.sys, hangs can occur.
So, it's necessary to comment out the line that loads ndctl.exe from config.sys and add something like 'detach ndctl.exe' to startup.cmd
Apologies for missing this in the original write-up, I'll go modify the original post to reflect this as well.
Cheers,
Paul
David McKenna:
Paul - I've been running ndctl.exe from CONFIG.SYS without any problem ever since I stopped the control program, added the new ndpsmb.dll, then started it that one time from the WPS. Maybe that is all that is needed to prevent hangs?
Navigation
[0] Message Index
[#] Next page
Go to full version