| 1 |                       Samba Client Plugin for eCS (OS/2)
 | 
|---|
| 2 |                       Version _VERSION_
 | 
|---|
| 3 |                       Build _BUILD_
 | 
|---|
| 4 |                       __________________________________
 | 
|---|
| 5 | 
 | 
|---|
| 6 | CONTENTS
 | 
|---|
| 7 | ________
 | 
|---|
| 8 | 
 | 
|---|
| 9 |  1. Introduction
 | 
|---|
| 10 |  2. License
 | 
|---|
| 11 |  3. Installation
 | 
|---|
| 12 |  3.1 Netdrive
 | 
|---|
| 13 |  3.2 EVFS
 | 
|---|
| 14 |  4. NDPSMB.DLL usage
 | 
|---|
| 15 |  4.1 Netdrive
 | 
|---|
| 16 |  4.2 EVFS
 | 
|---|
| 17 |  5. Debugging
 | 
|---|
| 18 |  6. Changelog
 | 
|---|
| 19 | 
 | 
|---|
| 20 | 
 | 
|---|
| 21 | 1. Introduction
 | 
|---|
| 22 | _______________
 | 
|---|
| 23 | 
 | 
|---|
| 24 | Samba is a SMB/CIFS protocols file and print sharing server/client suite
 | 
|---|
| 25 | originally made for the UNIX world to cooperate with corresponding Windows and 
 | 
|---|
| 26 | eCS (OS/2) servers or clients. eCS (OS/2) has a native implementation of SMB/CIFS
 | 
|---|
| 27 | server/client set - IBM LAN Manager and IBM Peer. These products haven't been 
 | 
|---|
| 28 | updated for a long time and have some compatibility problems with modern 
 | 
|---|
| 29 | Windows SMB/CIFS implementations.
 | 
|---|
| 30 | 
 | 
|---|
| 31 | This package is the eCS (OS/2) port of Samba client made as the plugin for
 | 
|---|
| 32 | 
 | 
|---|
| 33 | - NetDrive for eCS (OS/2) - a well known virtual file system for eCS (OS/2) or
 | 
|---|
| 34 | - EVFS - the eComStation Virtual Filesystem for SMB.
 | 
|---|
| 35 | 
 | 
|---|
| 36 | eCS (OS/2) Samba client provides seamless access to SMB/CIFS file shares over 
 | 
|---|
| 37 | your network using TCP/IP as the underlying transport protocol.
 | 
|---|
| 38 | 
 | 
|---|
| 39 | The eCS (OS/2) Samba client consists of one module:
 | 
|---|
| 40 |    ndpsmb.dll - the NetDrive/EVFS plugin itself.
 | 
|---|
| 41 |    
 | 
|---|
| 42 | Releases prior to version 1.5.0 had a second module which is now deprecated:
 | 
|---|
| 43 |    smbcd.exe  - the Samba client daemon, which actually processes the requests
 | 
|---|
| 44 |                 from ndpsmb.dll
 | 
|---|
| 45 | 
 | 
|---|
| 46 | 2. License
 | 
|---|
| 47 | __________
 | 
|---|
| 48 | 
 | 
|---|
| 49 | Samba is freely available under the GNU General Public License. You can get
 | 
|---|
| 50 | the full sourcecode from our SVN repository, please refer to the Samba for 
 | 
|---|
| 51 | eCS (OS/2) Homepage for details about downloading the source.
 | 
|---|
| 52 | 
 | 
|---|
| 53 | The NetDrive plugin is also available with full sourcecode.
 | 
|---|
| 54 | 
 | 
|---|
| 55 | So if you are using our plugin we kindly ask you to support netlabs.org.
 | 
|---|
| 56 | Please refer to the Samba for eCS (OS/2) Homepage to learn how you can do
 | 
|---|
| 57 | that!
 | 
|---|
| 58 | 
 | 
|---|
| 59 | 
 | 
|---|
| 60 | Links:
 | 
|---|
| 61 | 
 | 
|---|
| 62 | Samba for eCS (OS/2) Homepage: http://samba.netlabs.org/
 | 
|---|
| 63 | NetDrive Homepage: http://www.blueprintsoftwareworks.com/netdrive/
 | 
|---|
| 64 | Samba Homepage: http://www.samba.org/
 | 
|---|
| 65 | 
 | 
|---|
| 66 | 
 | 
|---|
| 67 | 3. Installation
 | 
|---|
| 68 | _______________
 | 
|---|
| 69 | 
 | 
|---|
| 70 | The plugin needs the klibc runtime named libc06*.dll (the innotek gcc runtime 
 | 
|---|
| 71 | DLL) somewhere in your LIBPATH, if it is not there already (It comes with any
 | 
|---|
| 72 | recent eComStation release).
 | 
|---|
| 73 | 
 | 
|---|
| 74 | 3.1 Netdrive
 | 
|---|
| 75 | ____________
 | 
|---|
| 76 | 
 | 
|---|
| 77 | You must have NetDrive 2.2.1 or newer installed prior to installation of this
 | 
|---|
| 78 | package. If you want to use 64bit file API, you should install 2.3 or newer
 | 
|---|
| 79 | version of NetDrive. The installation is semi-automatic and consists of two 
 | 
|---|
| 80 | steps:
 | 
|---|
| 81 | 
 | 
|---|
| 82 |   - ndpsmb.dll installation :
 | 
|---|
| 83 |       Run instpl.cmd from this package will place all files to the netdrive 
 | 
|---|
| 84 |       plugin directory.
 | 
|---|
| 85 |       
 | 
|---|
| 86 | 3.2 EVFS
 | 
|---|
| 87 | ________
 | 
|---|
| 88 | 
 | 
|---|
| 89 |   - ndpsmb.dll installation : 
 | 
|---|
| 90 |       Put ndpsmb.dll into x:\ecs\dll (where x: is your bootdrive)
 | 
|---|
| 91 | 
 | 
|---|
| 92 | 
 | 
|---|
| 93 | 4. NDPSMB.DLL 
 | 
|---|
| 94 | _____________
 | 
|---|
| 95 | 
 | 
|---|
| 96 | 4.1. Usage with Netdrive
 | 
|---|
| 97 | ______________________
 | 
|---|
| 98 | 
 | 
|---|
| 99 | NetDrive Samba plugin is used according to general NetDrive usage rules. Read
 | 
|---|
| 100 | the NetDrive documentation for more information. The SMB/CIFS resources could
 | 
|---|
| 101 | be mounted either using command line nd.exe utility or WPS ndpm.exe utility of
 | 
|---|
| 102 | NetDrive.
 | 
|---|
| 103 | 
 | 
|---|
| 104 | The NetDrive Samba plugin parameters are:
 | 
|---|
| 105 | 
 | 
|---|
| 106 |    workgroup   - the name of workgroup to connect to.
 | 
|---|
| 107 |    server      - the name of server to connect to.
 | 
|---|
| 108 |    share       - the name of server resource (share) to connect to.
 | 
|---|
| 109 |    user        - the name of user to login under.
 | 
|---|
| 110 |    password    - the password of selected user.
 | 
|---|
| 111 |    master      - the name of 'master' server or workgroup, used to get the list
 | 
|---|
| 112 |                  of workgroups when the concrete workgroup and server not
 | 
|---|
| 113 |                  specified.
 | 
|---|
| 114 |    masterttype - 0 if 'master' is the name of master server, 1 if 'master' is
 | 
|---|
| 115 |                  the name of master workgroup.
 | 
|---|
| 116 |    easupport   - 1 to support eCS (OS/2) Extended Attributes, 0 to not support it
 | 
|---|
| 117 | 
 | 
|---|
| 118 | To mount the exact server's share one need to specify both 'server' and
 | 
|---|
| 119 | 'share' parameters, the other parameters are optional. The root path of
 | 
|---|
| 120 | server's share will be mounted to the mounting path.
 | 
|---|
| 121 | 
 | 
|---|
| 122 | If one want to access all server shares, then only the 'server', not the 'share'
 | 
|---|
| 123 | parameter, should be specified,the other parameters are optional. The list of
 | 
|---|
| 124 | server shares will be mounted to the mounting path.
 | 
|---|
| 125 | 
 | 
|---|
| 126 | If one want to access all servers within the workgroup, then only the 'workgroup',
 | 
|---|
| 127 | not the 'server' parameter, should be specified, the other parameters are
 | 
|---|
| 128 | optional. The list of servers within the specified workgroup will be mounted to
 | 
|---|
| 129 | the mounting path.
 | 
|---|
| 130 | 
 | 
|---|
| 131 | If one want to access all available workgroups within one master browser
 | 
|---|
| 132 | within the network, then only the 'master', not the 'workgroup' nor the 'server' parameter,
 | 
|---|
| 133 | should be specified, the other parameters are optional. The list of workgroups
 | 
|---|
| 134 | will be mounted to the mounting path. The 'master' workgroup can be any known
 | 
|---|
| 135 | workgroup in the net. The 'master' server should be the master browser for
 | 
|---|
| 136 | workgroup[s].
 | 
|---|
| 137 | 
 | 
|---|
| 138 | By default the 'guest' user with blank password is used to access selected
 | 
|---|
| 139 | resources. If you get access denied (5) errors, try to specify another user 
 | 
|---|
| 140 | and password combination.
 | 
|---|
| 141 | 
 | 
|---|
| 142 | 4.2 Usage with EVFS
 | 
|---|
| 143 | ___________________
 | 
|---|
| 144 | 
 | 
|---|
| 145 | eComStation comes with a GUI program named EVFSGUI which is even more feature
 | 
|---|
| 146 | rich than the Netdrive GUI. Refer to the documentaion that comes with eCS.
 | 
|---|
| 147 | 
 | 
|---|
| 148 | 5. Debugging
 | 
|---|
| 149 | ____________
 | 
|---|
| 150 | 
 | 
|---|
| 151 | To produce a logfile please add an empty file called ndpsmb.dbg into the 
 | 
|---|
| 152 | root drive.
 | 
|---|
| 153 | 
 | 
|---|
| 154 | The logfile is placed to your LOGFILES env path, if available. If the 
 | 
|---|
| 155 | LOGFILES environment variable is missing, the logfile is placed into the 
 | 
|---|
| 156 | Netdrive directory. The logfile is called log.ndpsmb for the Netdrive part
 | 
|---|
| 157 | and log.smbc for the Samba part.
 | 
|---|
| 158 | 
 | 
|---|
| 159 | 
 | 
|---|
| 160 | 6. Changelog
 | 
|---|
| 161 | ____________
 | 
|---|
| 162 | 
 | 
|---|
| 163 |  v1.0 beta3:
 | 
|---|
| 164 |    - changelog created
 | 
|---|
| 165 |    - fixed a bug with several network interfaces on one system
 | 
|---|
| 166 |    - fixed a bug with broken cmd.exe builtin commands
 | 
|---|
| 167 |    - fixed a bug with wrong dates of new and modified files
 | 
|---|
| 168 |    - fixed a bunch of other bugs which are too small to remember ;)
 | 
|---|
| 169 |    - smbcd.exe compiled against old tcp/ip stack interface
 | 
|---|
| 170 | 
 | 
|---|
| 171 |  v1.0 beta4:
 | 
|---|
| 172 |    - fixed errors on write to eCs shares
 | 
|---|
| 173 |    - more fixes for wrong dates of files
 | 
|---|
| 174 | 
 | 
|---|
| 175 |  v1.0 beta5:
 | 
|---|
| 176 |    - added file locking
 | 
|---|
| 177 |    - added 64bit file IO (when working with NDFS 2.3+)
 | 
|---|
| 178 |    - moved to 3.0.9 samba code
 | 
|---|
| 179 | 
 | 
|---|
| 180 |  v1.0 beta6:
 | 
|---|
| 181 |    - fixed set attribute bug introduced in beta 5
 | 
|---|
| 182 |    - implemented setnewfilesize function. It may work not on all CIFS servers.
 | 
|---|
| 183 |    - added automatic smbcd.exe starting if not started when connecting to CIFS share
 | 
|---|
| 184 |    - added 'logfile' and 'loglevel' options to ndpsmb
 | 
|---|
| 185 | 
 | 
|---|
| 186 |  v1.0 beta7:
 | 
|---|
| 187 |    - moved to libc06b4.dll libc.
 | 
|---|
| 188 | 
 | 
|---|
| 189 |  v1.0 beta8:
 | 
|---|
| 190 |    - moved back to libc custom build. 
 | 
|---|
| 191 |    - added EA support
 | 
|---|
| 192 |    - a bunch of bugs fixed
 | 
|---|
| 193 | 
 | 
|---|
| 194 |  v1.0 beta9:
 | 
|---|
| 195 |    - added EA support for DosOpen which was forgotten in beta8
 | 
|---|
| 196 | 
 | 
|---|
| 197 |  v1.0 beta10:
 | 
|---|
| 198 |    - caching of EA size after file find request
 | 
|---|
| 199 |    - moved to libc06b5.dll libc
 | 
|---|
| 200 | 
 | 
|---|
| 201 |  v1.0 beta11:
 | 
|---|
| 202 |    - moved to libc06r1.dll libc
 | 
|---|
| 203 | 
 | 
|---|
| 204 |  v1.0 beta12:
 | 
|---|
| 205 |    - NdpRsrcQueryFSAllocate rewritten
 | 
|---|
| 206 |    - moved to libc06.dll from GA2 release
 | 
|---|
| 207 | 
 | 
|---|
| 208 |  v1.0 beta13, the lucky one:
 | 
|---|
| 209 |    - moved to libc061.dll from CSD1 release
 | 
|---|
| 210 | 
 | 
|---|
| 211 |  v1.0 beta14:
 | 
|---|
| 212 |    - moved to libc custom build
 | 
|---|
| 213 | 
 | 
|---|
| 214 |  v1.0 GA:
 | 
|---|
| 215 |    - changelog was not updated
 | 
|---|
| 216 | 
 | 
|---|
| 217 |  v1.5.0 alpha1:
 | 
|---|
| 218 |    - smbdc.exe was implemented within ndpsmb.dll
 | 
|---|
| 219 |    - a lot of other changes
 | 
|---|
| 220 | 
 | 
|---|
| 221 |  v1.5.0 beta1:
 | 
|---|
| 222 |    - logging feature rewritten
 | 
|---|
| 223 |    - fixed free disk space
 | 
|---|
| 224 |    - added more return codes in the mount part (for evfsgui)
 | 
|---|
| 225 |    
 | 
|---|
| 226 |  v1.5.0 beta2:
 | 
|---|
| 227 |    - update to Samba 3.0.35 client code
 | 
|---|
| 228 |    
 | 
|---|
| 229 |  v1.5.0 beta3:
 | 
|---|
| 230 |    - update to Samba 3.0.36 client code
 | 
|---|
| 231 |    - codepage fix for system running 
 | 
|---|
| 232 |      non IBM-850 codepages (Ticket #100)
 | 
|---|
| 233 | 
 | 
|---|
| 234 |  v1.5.0 beta4:
 | 
|---|
| 235 |    - update to Samba 3.0.37 client code
 | 
|---|
| 236 |    - codepage fix for Ticket #68
 | 
|---|
| 237 |    
 | 
|---|
| 238 |  v1.5.0:
 | 
|---|
| 239 |    - Fix memory leak in EA code
 | 
|---|
| 240 |    - Ticket #111
 | 
|---|
| 241 |    - Remove unused MEMLEN, LOGFILE and LOGLEVEL token
 | 
|---|
| 242 |      (Compatibility warning: These tokens must also be removed from older
 | 
|---|
| 243 |      *.ndc *.evp and volumes.cfg files in order to restore connections
 | 
|---|
| 244 |      with the new plugin properly)
 | 
|---|
| 245 |    - added logging feature for samba messages
 | 
|---|
| 246 |    
 | 
|---|
| 247 |  v1.5.1:
 | 
|---|
| 248 |    - Fix crashes on quadcore machines
 | 
|---|
| 249 |    
 | 
|---|
| 250 |  v1.5.2:
 | 
|---|
| 251 |    - Fix help files
 | 
|---|
| 252 | 
 | 
|---|
| 253 |  v1.6.0 alpha1:
 | 
|---|
| 254 |    - moved to samba 3.3 source base
 | 
|---|
| 255 | 
 | 
|---|
| 256 |  v1.6.0 beta1:
 | 
|---|
| 257 |    - first public build
 | 
|---|
| 258 |    - fixed some traps from alpha1
 | 
|---|
| 259 | 
 | 
|---|
| 260 |  v1.6.0 beta2:
 | 
|---|
| 261 |    - fixed a timezone problem
 | 
|---|