1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-17 02:05:21 +03:00

1623 Commits

Author SHA1 Message Date
Andrew Tridgell
c626214e23 don't call functions that aren't there yet. (Luke had the code
commented out in the makefile)
-
Andrew Tridgell
a42729dbf5 added fchdir() support -
Andrew Tridgell
1dcc84b942 fixed vi on smbwrappper (it was a problem in cli_read()) -
Andrew Tridgell
3c839a5231 fixed wrapper for access(). This gets xedit working. -
Andrew Tridgell
d516ee383c support getcwd() in smbwrapper -
Andrew Tridgell
ce748e5ea9 added mkdir() and rmdir() support -
Andrew Tridgell
5674fb4e9d added simple device/inode number support based on a checksum of the
filename
-
Andrew Tridgell
e040047c64 added a bit more to the docs -
Andrew Tridgell
67ca971b0b added lseek() support for directories -
Andrew Tridgell
f05f0a01ce fixed a bug in name_len() (thanks to kooros@kooros.netrack.net) -
Andrew Tridgell
752e90b24f added lseek() to smbwrapper -
Andrew Tridgell
cc6270f327 use O_ACCMODE -
Andrew Tridgell
a063252913 - always open for reading (otherwise getattrE won't work).
- added somemore NT error codes
-
Andrew Tridgell
40af9fee1a updated prototypes -
Andrew Tridgell
48de03824e define O_ACCMODE if not defined -
Andrew Tridgell
2fbb544d38 added lseek -
Andrew Tridgell
e5c3f36ef2 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
-
Andrew Tridgell
b85d961447 added unlink() and rename() support to smbwrapper -
Andrew Tridgell
e246a20230 ignore *.p files -
Andrew Tridgell
1ea349728b lots of improvements to smbwrapper. It now works with Samba, Win95 and
WinNT servers, and correctly lists share names in /smb/SERVER/
-
Andrew Tridgell
5328ecbc41 - ignore *.p files -
Andrew Tridgell
715a6631c7 - 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.
-
Andrew Tridgell
688a749484 - ignore *.p files
- make msleep() non-static
-
Andrew Tridgell
a42155f77a updated prototypes -
Andrew Tridgell
4b5217f996 - remove .p files in make clean
- added readlink support to smbwrapper
-
Andrew Tridgell
76b5c82437 added capabilities ab win95 fields to client structure. Used for
detecting win95 server for bug handling
-
Luke Leighton
bcf39ffdcc 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.
-
Luke Leighton
a4e7cc3e46 - 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.
-
Luke Leighton
a69ed7846a 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.
-
Andrew Tridgell
252b52091c 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.
-
Andrew Tridgell
3f34a3cac8 the guts of the smbwrapper code. I may change the layout of this at
some stage.
-
Andrew Tridgell
9bae21abaf several clientgen mods to support smbwrapper. In particular added
cli_list() for directory listing and expended some other functions a
bit.
-
Andrew Tridgell
688d19de50 added sys_getwd() -
Andrew Tridgell
1dcefb3f8e use sys_stat() not file_exist() for codepages. (we don't want dos
translation!)
-
Andrew Tridgell
07dd2aedf1 a couple of mode for smbwrapper -
Andrew Tridgell
686182eb71 makefile support for smbwrapper
dosn't compile by default. You need to do "make smbwrapper/smbwrapper.so"
-
Andrew Tridgell
f15ece5316 got rid of USE_FILES_ARRAY code (it was unused) -
Jeremy Allison
c42fb702b7 Fixed *nasty* bug in nt_lm_owf_gen() - this function was
not ensuring a zero filled buffer before doing crypto stuff.
See PR#10121. Beware of this !
Jeremy.
-
Richard Sharpe
351b9a0f8b Fix another possibly unitialized variable ... -
Jeremy Allison
740784f9cf Implemented directory-relative opens for NT opens.
Jeremy.
-
Luke Leighton
299a723d4e lsa_lookup_sids command added. severe debugging needed on lookup_sids
code.  added "quality of service" capability to lsa_open_policy code.

different lsa_open_policy queries are *not* dealt with in the server code.
answers like "0xC000 0022" - access denied - will have to be made to
lsa_lookup_sids calls when a "quality of service" request is *not* specified
in the lsa_open_policy call.
-
Andrew Tridgell
a655a8a051 set the default fstype for IPC$ to "IPC". I'm not sure if this will
make any difference, but it is the right thing to do.
-
Jeremy Allison
dba55b2d34 Upped default MAX_OPEN_FILES to 10000 after conversation with tridge.
As we're only using 1 bit per fd when idle it doesn't matter too much....
Jeremy.
-
Michael Warfield
3459541abc Removed a redundant include for "includes.h"
Cleaned up a prototype warning message.
smbumount.c now compiles warning free.
-
Jeremy Allison
eca24bd243 (Finally) implemented "max open files" as a global smb.conf parameter.
Sets up the files array correctly - limited by the smb.conf parameter
and by the max fd's per process as found by getrlimit().
Jeremy.
-
Jeremy Allison
6a261517a0 libsmb/clientgen.c: Fixed signed/unsigned compile warnings spotted by Herb.
param/loadparm.c:
smbd/oplock.c: Allow kernel oplocks to be turned off in the smb.conf file.
smbd/server.c: Move init_structs() to after the smb.conf file is loaded - preparation
               for making a "max open files" parameter.
Jeremy.
-
Jeremy Allison
60c2278e8c Fixed uid->vuid confusion in smbmount (hopefully).
Jeremy.
-
Jeremy Allison
6c08f3b81c Fixed extern definition of cnum in clitar.c
Jeremy
-
Jeremy Allison
e9b7ff0dec Fixed warning in get_time_from_string().
Jeremy.
-
Jeremy Allison
e570db46fc Got very strict about the differences and uses of
uid_t, gid_t and vuid. Added sys_getgroups() to get
around the int * return problem. Set correct datatypes
for all uid, gid and vuid variables.
Jeremy.
-