| 1 | OS/2 SAMBA client
|
|---|
| 2 | _________________
|
|---|
| 3 |
|
|---|
| 4 | CONTENTS
|
|---|
| 5 | ________
|
|---|
| 6 |
|
|---|
| 7 | 1. Introduction
|
|---|
| 8 | 2. License
|
|---|
| 9 | 3. Installation
|
|---|
| 10 | 4. SMBCD.EXE usage
|
|---|
| 11 | 5. NDPSMB.DLL usage
|
|---|
| 12 | 6. Changelog
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 | 1. Introduction
|
|---|
| 16 | _______________
|
|---|
| 17 |
|
|---|
| 18 | SAMBA is a SMB/CIFS protocols file and print sharing server/client set originaly
|
|---|
| 19 | made for UNIX world to cooperate with corresponding Windows and OS/2 servers or
|
|---|
| 20 | clients. OS/2 has native implementation of SMB/CIFS server/client set - IBM LAN
|
|---|
| 21 | Manager and IBM Peer. These products haven't been updated for a long time and
|
|---|
| 22 | have some compatibility problems with modern Windows SMB/CIFS implementations.
|
|---|
| 23 |
|
|---|
| 24 | This package is the OS/2 port of SAMBA 3.0.9 client made as the plugin to
|
|---|
| 25 | NetDrive - a well known virtual file system for OS/2. OS/2 SAMBA client provides
|
|---|
| 26 | seamles access to SMB/CIFS file shares over your network using TCP/IP as the
|
|---|
| 27 | underlying transport protocol.
|
|---|
| 28 |
|
|---|
| 29 | The OS/2 SAMBA client consists of two modules:
|
|---|
| 30 | ndpsmb.dll - the NetDrive plugin itself.
|
|---|
| 31 | smbcd.exe - the SAMBA client daemon, which actually processes the requests
|
|---|
| 32 | from ndpsmb.dll.
|
|---|
| 33 |
|
|---|
| 34 |
|
|---|
| 35 | 2. License
|
|---|
| 36 | __________
|
|---|
| 37 |
|
|---|
| 38 | SAMBA is freely available under the GNU General Public License. You can get
|
|---|
| 39 | the full sourcecode from our CVS repository, please refer to the SAMBA for OS/2
|
|---|
| 40 | and eCS Homepage for details about downloading the source.
|
|---|
| 41 |
|
|---|
| 42 | The NetDrive plugin is also available with full sourcecode.
|
|---|
| 43 | However, netlabs.org hired nickk to port SAMBA to OS/2 and to create the
|
|---|
| 44 | NetDrive plugin. Future work on this plugin highly depends on the support of
|
|---|
| 45 | the OS/2 and eCS community. We also think about providing a SAMBA server
|
|---|
| 46 | implementation for OS/2 and eCS but that will cost money too.
|
|---|
| 47 |
|
|---|
| 48 | So if you are using our plugin we kindly ask you to support netlabs.org.
|
|---|
| 49 | Please refer to the SAMBA for OS/2 and eCS Homepage to learn how you can do
|
|---|
| 50 | that!
|
|---|
| 51 |
|
|---|
| 52 | NOTE: The current beta release needs NetDrive for OS/2. NetDrive is shareware
|
|---|
| 53 | but we are in contact with the developer of it, probably there will be a free
|
|---|
| 54 | stripped down SAMBA-only version of NetDrive when we release the final version.
|
|---|
| 55 | (Don't take that for granted yet, we will announce that in the future)
|
|---|
| 56 |
|
|---|
| 57 | Links:
|
|---|
| 58 |
|
|---|
| 59 | SAMBA for OS/2 and eCS Homepage: http://samba.netlabs.org/
|
|---|
| 60 | NetDrive Homepage: http://www.blueprintsoftwareworks.com/netdrive/
|
|---|
| 61 | SAMBA Homepage: http://www.samba.org/
|
|---|
| 62 |
|
|---|
| 63 |
|
|---|
| 64 | 3. Installation
|
|---|
| 65 | _______________
|
|---|
| 66 |
|
|---|
| 67 | You must have NetDrive 2.2.1 or newer installed prior to installation of this
|
|---|
| 68 | package. If you want to use 64bit file API, you should install 2.3 or newer
|
|---|
| 69 | version of NetDrive. The installation is semi-automatic and consists of two
|
|---|
| 70 | steps:
|
|---|
| 71 |
|
|---|
| 72 | - libc installation :
|
|---|
| 73 | Put libc06*.dll included into this package (the innotek gcc runtime dll)
|
|---|
| 74 | somewhere in your LIBPATH, if it is not here already.
|
|---|
| 75 |
|
|---|
| 76 | - ndpsmb.dll and smbcd.exe installation :
|
|---|
| 77 | Run instpl.cmd from this package. The installer will place smbcd.exe in
|
|---|
| 78 | the Netdrive home directory. When you will connect to CIFS share using the
|
|---|
| 79 | ndpsmb plugin, it will start the smbcd.exe automatically from this
|
|---|
| 80 | directory. However, you can start it manually, if you want.
|
|---|
| 81 |
|
|---|
| 82 | 4. SMBCD.EXE Usage
|
|---|
| 83 | __________________
|
|---|
| 84 |
|
|---|
| 85 | SMBCD.EXE has the following parameters:
|
|---|
| 86 | -d <debuglevel> (or --debug <debuglevel>) - debug level of output from 0 to 9.
|
|---|
| 87 | The more debug level provides more debugging output from SMBCD.EXE which may
|
|---|
| 88 | be used to solve the problems.
|
|---|
| 89 | -l <logfile> (or --logfile <logfile>) - the filename to write the debug info
|
|---|
| 90 | from smbcd.exe. Default is to print all debug info to STDOUT stream.
|
|---|
| 91 | -q (or --quite) - tells smbcd.exe to be absolutely quiet.
|
|---|
| 92 |
|
|---|
| 93 | 5. NDPSMB.DLL Usage
|
|---|
| 94 | ___________________
|
|---|
| 95 |
|
|---|
| 96 | NetDrive SAMBA plugin is used according to general NetDrive usage rules. Read
|
|---|
| 97 | the NetDrive documentation for more information. The SMB/CIFS resources could
|
|---|
| 98 | be mounted either using command line nd.exe utility or WPS ndpm.exe utility of
|
|---|
| 99 | NetDrive.
|
|---|
| 100 |
|
|---|
| 101 | The NetDrive SAMBA plugin parameters are:
|
|---|
| 102 |
|
|---|
| 103 | workgroup - the name of workgroup to connect to.
|
|---|
| 104 | server - the name of server to connect to.
|
|---|
| 105 | share - the name of server resource (share) to connect to.
|
|---|
| 106 | user - the name of user to login under.
|
|---|
| 107 | password - the password of selected user.
|
|---|
| 108 | master - the name of 'master' server or workgroup, used to get the list
|
|---|
| 109 | of workgroups when the concrete workgroup and server not
|
|---|
| 110 | specified.
|
|---|
| 111 | masterttype - 0 if 'master' is the name of master server, 1 if 'master' is
|
|---|
| 112 | the name of master workgroup.
|
|---|
| 113 | memlen - the size of shared memory buffer allocated for every connection
|
|---|
| 114 | to SBM/CIFS resources in size of 64k blocks. The higher values
|
|---|
| 115 | could provide better access speed, but consume more memory.
|
|---|
| 116 | logfile - file to log records from smbcd.exe. Used only in smbcd.exe
|
|---|
| 117 | is run by ndpsmb.dll plugin, not manually
|
|---|
| 118 | loglevel - level of logging (0-9) for smbcd.exe. Used only in smbcd.exe
|
|---|
| 119 | is run by ndpsmb.dll plugin, not manually
|
|---|
| 120 | easupport - 1 to support OS/2 Extended Attributes, 0 to not support it
|
|---|
| 121 |
|
|---|
| 122 | To mount the a exact server's share one need to specify both 'server' and
|
|---|
| 123 | 'share' parametres, the other parametres are optional. The root path of
|
|---|
| 124 | server's share will be mounted to the mounting path.
|
|---|
| 125 |
|
|---|
| 126 | If one want to access all servers shares, the only the 'server', not the 'share'
|
|---|
| 127 | parameter, should be specified,the other parametres are optional. The list of
|
|---|
| 128 | server's shares will be mounted to the mounting path.
|
|---|
| 129 |
|
|---|
| 130 | If one want to access all servers within the workgroup, the only the 'workgroup',
|
|---|
| 131 | not the 'server' parameter, should be specified, the other parametres are
|
|---|
| 132 | optional. The list of servers within the specified workgroup will be mounted to
|
|---|
| 133 | the mounting path.
|
|---|
| 134 |
|
|---|
| 135 | If one want to access all available workgroups within one master browser
|
|---|
| 136 | in network, the only the 'master', not the 'workgroup' or 'server' parameter,
|
|---|
| 137 | should be specified, the other parametres are optional. The list of workgroups
|
|---|
| 138 | will be mounted to the mounting path. The 'master' workgroup can be any known
|
|---|
| 139 | workgroup in the net. The 'master' server should be the master browser for
|
|---|
| 140 | workgroup[s].
|
|---|
| 141 |
|
|---|
| 142 | By default the 'guest' user with blank password is used to access selected
|
|---|
| 143 | resources. If you get access denied (5) errors, try to specify another user and
|
|---|
| 144 | password combination.
|
|---|
| 145 |
|
|---|
| 146 | 6. Changelog
|
|---|
| 147 | ____________
|
|---|
| 148 |
|
|---|
| 149 | beta3:
|
|---|
| 150 | - changelog created
|
|---|
| 151 | - fixed a bug with several network interfaces on one system
|
|---|
| 152 | - fixed a bug with broken cmd.exe builtin commands
|
|---|
| 153 | - fixed a bug with wrong dates of new and modified files
|
|---|
| 154 | - fixed a bunch of other bugs which are too small to remember ;)
|
|---|
| 155 | - smbcd.exe compiled against old tcp/ip stack interface
|
|---|
| 156 |
|
|---|
| 157 | beta4:
|
|---|
| 158 | - fixed errors on write to eCs shares
|
|---|
| 159 | - more fixes for wrong dates of files
|
|---|
| 160 |
|
|---|
| 161 | beta5:
|
|---|
| 162 | - added file locking
|
|---|
| 163 | - added 64bit file IO (when working with NDFS 2.3+)
|
|---|
| 164 | - moved to 3.0.9 samba code
|
|---|
| 165 |
|
|---|
| 166 | beta6:
|
|---|
| 167 | - fixed set attribute bug introduced in beta 5
|
|---|
| 168 | - implemented setnewfilesize function. It may work not on all CIFS servers.
|
|---|
| 169 | - added automatic smbcd.exe starting if not started when connecting to CIFS share
|
|---|
| 170 | - added 'logfile' and 'loglevel' options to ndpsmb
|
|---|
| 171 |
|
|---|
| 172 | beta7:
|
|---|
| 173 | - moved to libc06b4.dll libc.
|
|---|
| 174 |
|
|---|
| 175 | beta8:
|
|---|
| 176 | - moved back to libc custom build.
|
|---|
| 177 | - added EA support
|
|---|
| 178 | - a bunch of bugs fixed
|
|---|
| 179 |
|
|---|
| 180 | beta9:
|
|---|
| 181 | - added EA support for DosOpen which was forgotten in beta8
|
|---|
| 182 |
|
|---|
| 183 | beta10:
|
|---|
| 184 | - caching of EA size after file find request
|
|---|
| 185 | - moved to libc06b5.dll libc
|
|---|
| 186 |
|
|---|
| 187 | beta11:
|
|---|
| 188 | - moved to libc06r1.dll libc
|
|---|
| 189 |
|
|---|
| 190 | beta12:
|
|---|
| 191 | - NdpRsrcQueryFSAllocate rewritten
|
|---|
| 192 | - moved to libc06.dll from GA2 release
|
|---|
| 193 |
|
|---|
| 194 | beta13, the lucky one:
|
|---|
| 195 | - moved to libc061.dll from CSD1 release
|
|---|
| 196 |
|
|---|
| 197 | beta14:
|
|---|
| 198 | - moved to libc custom build
|
|---|