1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-04 05:18:06 +03:00
Commit Graph

1542 Commits

Author SHA1 Message Date
Andrew Tridgell
6760e69a68 added support for printing via smbwrapper
You can print using "cp filename /smb/SERVER/PRINTER/jobname"

You can list the current printqueue using ls
(This used to be commit 080fb61b69)
1998-10-04 09:42:51 +00:00
Andrew Tridgell
ce843e9735 add support for dup() and dup2()
(This used to be commit c5210cb0ff)
1998-10-04 07:52:00 +00:00
Andrew Tridgell
52e5dbeb9c use CLI_BUFFER_SIZE instead of BUFFER_SIZE
(This used to be commit 98f9bb94fc)
1998-10-04 07:51:34 +00:00
Andrew Tridgell
944d7e2c7e set a default 16k client buffer size
(This used to be commit cc1a0cf82b)
1998-10-04 07:50:44 +00:00
Richard Sharpe
832ca93117 Added E Jay Berkenbilt's fixes
(This used to be commit fcdc9bc208)
1998-10-04 07:09:38 +00:00
Andrew Tridgell
af4a13b37a refuse symlinks to or from a smb path
(This used to be commit 83e93d2a44)
1998-10-04 06:44:20 +00:00
Andrew Tridgell
f3db9286f9 fix an error code in cli_error()
(This used to be commit bbc891727e)
1998-10-04 06:43:41 +00:00
Andrew Tridgell
5ade894f32 modified cli_read() and cli_write() to issue multiple outstanding
read/write requests for large reads. up to max_mux requests may be
outstanding. This gives _much_ better throughput and should allow
smbsh to saturate just about any network.

this is an implementation of the "fast SMB" method I described on the
CIFS list a couple of months back.
(This used to be commit c728d1c5d6)
1998-10-04 06:22:08 +00:00
Andrew Tridgell
d71c04f927 use dummy file descriptors opened on /dev/null to ensure that the smbw
file descriptor allocation order is identical to the kernels.
(This used to be commit 60a6834656)
1998-10-04 04:48:17 +00:00
Andrew Tridgell
57a58f592b more smbw cleanups.
- cleaned up prototyping. Unfortunately we can't auto-prototype
  wrapped.c because it replaces system functions.
- split stat functions into smbw_stat.c
(This used to be commit 04e92e692e)
1998-10-04 04:33:56 +00:00
Andrew Tridgell
977d601556 - split smbw directory code into smbw_dir.c
- fixed a bug in the handling of multiple connections to different
  servers
(This used to be commit a9f9d8c3d8)
1998-10-04 03:28:43 +00:00
Andrew Tridgell
e2b4941887 support a few more function types (like ino_t and off_t)
(This used to be commit 758048f1e1)
1998-10-04 03:27:29 +00:00
Andrew Tridgell
a1e10cfc3c use const char
(This used to be commit 83b7bfa821)
1998-10-04 03:27:04 +00:00
Andrew Tridgell
819a6785b3 simplied the layout of the smbwrapper code. All those 3 line files
were getting unwieldy
(This used to be commit a59d4e93da)
1998-10-04 01:36:40 +00:00
Andrew Tridgell
0e76d371ae we need to do a load_interfaces() at startup to support broadcast
resolution of names.
(This used to be commit c0931b6770)
1998-10-04 01:10:18 +00:00
Andrew Tridgell
a4a0c71e4f use __XXXdir() instead of __libc_XXXdir()
(This used to be commit e28f55c0a3)
1998-10-03 16:40:32 +00:00
Andrew Tridgell
1fa3478aaf drat.
on Linux 2.0 libc detects the lack of getdents in the kernel and used
opendir() etc. so we need to implement those ...

it would be needed for a port to others OSes anyway I suppose.
(This used to be commit e3fd861590)
1998-10-03 16:34:57 +00:00
Andrew Tridgell
8d4c732621 fixed a authentication problem with non-encrypting servers
(This used to be commit 06f1af12c3)
1998-10-03 15:55:18 +00:00
Andrew Tridgell
8bca34de11 fixed initialisation bug in rpcclient (stdout is not a constant)
(This used to be commit 1388a6fe8c)
1998-10-03 15:45:29 +00:00
Andrew Tridgell
e63dc32b00 don't call functions that aren't there yet. (Luke had the code
commented out in the makefile)
(This used to be commit c626214e23)
1998-10-03 15:29:39 +00:00
Andrew Tridgell
86701c6a3c added fchdir() support
(This used to be commit a42729dbf5)
1998-10-03 15:28:47 +00:00
Andrew Tridgell
f2d8f110db fixed vi on smbwrappper (it was a problem in cli_read())
(This used to be commit 1dcc84b942)
1998-10-03 15:01:11 +00:00
Andrew Tridgell
76aa53bce1 fixed wrapper for access(). This gets xedit working.
(This used to be commit 3c839a5231)
1998-10-03 14:46:48 +00:00
Andrew Tridgell
4d9ab2add2 support getcwd() in smbwrapper
(This used to be commit d516ee383c)
1998-10-03 13:58:07 +00:00
Andrew Tridgell
aa7aacacab added mkdir() and rmdir() support
(This used to be commit ce748e5ea9)
1998-10-03 13:27:56 +00:00
Andrew Tridgell
03a06267f4 added simple device/inode number support based on a checksum of the
filename
(This used to be commit 5674fb4e9d)
1998-10-03 13:12:08 +00:00
Andrew Tridgell
13b431ff2d added a bit more to the docs
(This used to be commit e040047c64)
1998-10-03 12:47:52 +00:00
Andrew Tridgell
f651787785 added lseek() support for directories
(This used to be commit 67ca971b0b)
1998-10-03 12:33:34 +00:00
Andrew Tridgell
6291a9da89 fixed a bug in name_len() (thanks to kooros@kooros.netrack.net)
(This used to be commit f05f0a01ce)
1998-10-03 12:32:18 +00:00
Andrew Tridgell
4b760a63da added lseek() to smbwrapper
(This used to be commit 752e90b24f)
1998-10-03 11:54:20 +00:00
Andrew Tridgell
d0fb78b85e use O_ACCMODE
(This used to be commit cc6270f327)
1998-10-03 11:54:00 +00:00
Andrew Tridgell
4fedb9ddd5 - always open for reading (otherwise getattrE won't work).
- added somemore NT error codes
(This used to be commit a063252913)
1998-10-03 11:53:37 +00:00
Andrew Tridgell
bab2843a75 updated prototypes
(This used to be commit 40af9fee1a)
1998-10-03 11:51:52 +00:00
Andrew Tridgell
959005eb5e define O_ACCMODE if not defined
(This used to be commit 48de03824e)
1998-10-03 11:51:30 +00:00
Andrew Tridgell
c0dd3c5c5c added lseek
(This used to be commit 2fbb544d38)
1998-10-03 11:51:01 +00:00
Andrew Tridgell
909ca3a887 added basic chmod(), chown() and utime() support (not fully
implemented).

this is enough to be able to edit files using emacs on the smbwrapper
filesystem
(This used to be commit e5c3f36ef2)
1998-10-03 10:24:49 +00:00
Andrew Tridgell
cce5f09a90 added unlink() and rename() support to smbwrapper
(This used to be commit b85d961447)
1998-10-03 09:39:11 +00:00
Andrew Tridgell
8a9fc22a6f ignore *.p files
(This used to be commit e246a20230)
1998-10-03 08:34:53 +00:00
Andrew Tridgell
a139078c4d lots of improvements to smbwrapper. It now works with Samba, Win95 and
WinNT servers, and correctly lists share names in /smb/SERVER/
(This used to be commit 1ea349728b)
1998-10-03 08:34:35 +00:00
Andrew Tridgell
65cfbc97ae - ignore *.p files
(This used to be commit 5328ecbc41)
1998-10-03 08:33:22 +00:00
Andrew Tridgell
27e5850fd3 - ignore *.p files
- enable cli_RNetSharEnum
- fix password handling in sesssetup for NT1 protocol
- handle partial reads and writes in cli_{read,write}
- added cli_getattrE
- modify cli_qpathinfo() to swap byte order for win95 servers
- handle temporary errors from FINDFIRST/FINDNEXT from win95 servers,
  when we get a error we sleep for a bit and retry
- return approx unix errno from cli_error(). Need to add a lot more
  cases to this.
(This used to be commit 715a6631c7)
1998-10-03 08:33:07 +00:00
Andrew Tridgell
60efedd4c0 - ignore *.p files
- make msleep() non-static
(This used to be commit 688a749484)
1998-10-03 08:29:06 +00:00
Andrew Tridgell
4261ed2e83 updated prototypes
(This used to be commit a42155f77a)
1998-10-03 08:28:05 +00:00
Andrew Tridgell
2abaffe61a - remove .p files in make clean
- added readlink support to smbwrapper
(This used to be commit 4b5217f996)
1998-10-03 08:27:39 +00:00
Andrew Tridgell
392cdc89e7 added capabilities ab win95 fields to client structure. Used for
detecting win95 server for bug handling
(This used to be commit 76b5c82437)
1998-10-03 08:08:03 +00:00
Luke Leighton
732d4ff7da Makefile.in :
- added srvsvc client files

clientgen.c :

	- replaced cli_error(cli, int *cls, int *err) with
	  cli_error(cli, uint8 cls, uint32 *err).  this version detects
	  32 bit status messages.  the DOS error "MORE_DATA", the
	  equivalent of the 32 bit *warning* 0x8000 0005
	  (STATUS_BUFFER_OVERFLOW), was being processed as an error,
	  terminating the cli_receive_trans() call.

cli_pipe.c :

	- replaced calls that had been incorrectly modified from
	  32 bit warnings (0x8000 0005 - STATUS_BUFFER_OVERFLOW)
	  to 8 bit DOS errors (0x01 0xEA - MORE_DATA).
	  the use of the old version of cli_error (DOS only)
	  instead of the new one (DOS and 32 bit) caused the
	  dce/rpc client code to fail.

	- replaced 2 space indentation with tab indentation in all functions.

cli_srvsvc.c :
cmd_srvsvc.c :

	- added these files back in, fixing them up to use jeremy's
	  modified versions of the dce/rpc client functions.

parse_srv.c :

	- added back in some "unused" functions required by dce/rpc
	  client-side code.  it would be helpful if all such "unused"
	  functions could be added back in.

rpcclient.c :

	- added "session", "file", "share", "connection" enumeration
	  functions back in.  these are equivalent to nt's "NetXXXXXEnum"
	  Win32 (MSDN) functions.

	- added "srvinfo" function back in.  this is equivalent to
	  nt's NetServerGetInfo Win32 (MSDN) function.
(This used to be commit bcf39ffdcc)
1998-10-02 21:09:23 +00:00
Luke Leighton
bdbc959a9a - static function "create_new_hashes" was identical to "nt_lm_owf_gen".
create_new_hashes didn't zero the buffer for the md4hash: nt_lm_owf_gen
  did, because jeremy sorted this out a couple of days ago.  call
  nt_lm_owf_gen instead.

- call SMBOWFencrypt from SMBencrypt and SMBNTencrypt.

- added #ifdef DEBUG_PASSWORD debug password calls.
(This used to be commit a4e7cc3e46)
1998-10-02 18:45:07 +00:00
Luke Leighton
c43c53b886 microsoft is slowly fixing some buffer overflow errors in dce/rpc code (SP4).
therefore, they are being more strict, first in the server-side code, and
now in the client-side code.

this fixes a bind-request that was too short by 16 bytes, and an rpc-request
that was too long by 24 bytes.
(This used to be commit a69ed7846a)
1998-10-02 18:14:38 +00:00
Andrew Tridgell
495eedb14f some changes in smbtorture as a result of clientgen interface changes
for smbwrapper

note that Lukes client changes broke smbtorture. This doesn't fix it,
but at least I didn't break it more than it was.
(This used to be commit 252b52091c)
1998-10-02 12:38:45 +00:00
Andrew Tridgell
24bf006d52 the guts of the smbwrapper code. I may change the layout of this at
some stage.
(This used to be commit 3f34a3cac8)
1998-10-02 12:37:31 +00:00