1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-07 17:18:11 +03:00
Commit Graph

1504 Commits

Author SHA1 Message Date
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
Andrew Tridgell
019c8d2fdd several clientgen mods to support smbwrapper. In particular added
cli_list() for directory listing and expended some other functions a
bit.
(This used to be commit 9bae21abaf)
1998-10-02 12:36:18 +00:00
Andrew Tridgell
9cd0324f75 added sys_getwd()
(This used to be commit 688d19de50)
1998-10-02 12:35:28 +00:00
Andrew Tridgell
5b2bc01bcf use sys_stat() not file_exist() for codepages. (we don't want dos
translation!)
(This used to be commit 1dcefb3f8e)
1998-10-02 12:34:56 +00:00
Andrew Tridgell
7b463b5f04 a couple of mode for smbwrapper
(This used to be commit 07dd2aedf1)
1998-10-02 12:34:14 +00:00
Andrew Tridgell
643e95f8e9 makefile support for smbwrapper
dosn't compile by default. You need to do "make smbwrapper/smbwrapper.so"
(This used to be commit 686182eb71)
1998-10-02 12:33:44 +00:00
Andrew Tridgell
eb7f62f911 got rid of USE_FILES_ARRAY code (it was unused)
(This used to be commit f15ece5316)
1998-10-01 03:07:09 +00:00
Jeremy Allison
53033c081a 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.
(This used to be commit c42fb702b7)
1998-10-01 01:27:47 +00:00
Richard Sharpe
85fcbcb215 Fix another possibly unitialized variable ...
(This used to be commit 351b9a0f8b)
1998-10-01 01:06:42 +00:00
Jeremy Allison
864f5457be Implemented directory-relative opens for NT opens.
Jeremy.
(This used to be commit 740784f9cf)
1998-09-30 19:27:04 +00:00
Luke Leighton
d8f609aeeb 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.
(This used to be commit 299a723d4e)
1998-09-30 19:09:57 +00:00
Andrew Tridgell
88460e63c5 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.
(This used to be commit a655a8a051)
1998-09-30 10:52:48 +00:00
Jeremy Allison
8883e74ed4 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.
(This used to be commit dba55b2d34)
1998-09-30 03:05:29 +00:00
Michael Warfield
4828c1c3b8 Removed a redundant include for "includes.h"
Cleaned up a prototype warning message.
smbumount.c now compiles warning free.
(This used to be commit 3459541abc)
1998-09-30 03:02:35 +00:00
Jeremy Allison
5b4d94e20f (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.
(This used to be commit eca24bd243)
1998-09-30 01:49:24 +00:00
Jeremy Allison
5a8458c377 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.
(This used to be commit 6a261517a0)
1998-09-30 01:05:51 +00:00
Jeremy Allison
9a5f40cadf Fixed uid->vuid confusion in smbmount (hopefully).
Jeremy.
(This used to be commit 60c2278e8c)
1998-09-30 00:25:04 +00:00
Jeremy Allison
f82217a589 Fixed extern definition of cnum in clitar.c
Jeremy
(This used to be commit 6c08f3b81c)
1998-09-29 22:52:38 +00:00
Jeremy Allison
d60168c4f9 Fixed warning in get_time_from_string().
Jeremy.
(This used to be commit e9b7ff0dec)
1998-09-29 20:36:18 +00:00
Jeremy Allison
9066025a8a 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.
(This used to be commit e570db46fc)
1998-09-29 20:24:17 +00:00
Luke Leighton
282eb4f3e8 missed the pdb_sam_to_smb function needed by nispass.c
(This used to be commit b40a4e6385)
1998-09-29 17:59:16 +00:00
Luke Leighton
c62031c300 added in some pdb_xxx routines that are needed by nispass.c
(This used to be commit 5212dd69d0)
1998-09-29 17:56:12 +00:00
Luke Leighton
6ecd472ef3 uchar / char typecast issues
(This used to be commit 1a1d8d0483)
1998-09-29 17:48:44 +00:00
Jeremy Allison
0ccf4104a1 Missed one removed multi-statement line. Grrr.
Jeremy.
(This used to be commit 7958787d9b)
1998-09-29 17:17:48 +00:00
Jeremy Allison
da0c1ef08e Fixed bug introduced by me in dead code elimination.
Bug was caused by multiple C statements on a line.
IMHO this is a *BUG* and will be treated as such....
Fixed all such multiple statements in this file.
Jeremy.
(This used to be commit ea3ab46f12)
1998-09-29 17:16:15 +00:00
Alexandre Oliva
e898fc10f3 added stamp-h
(This used to be commit 078a4b564f)
1998-09-29 17:09:44 +00:00
Alexandre Oliva
c393bb69de fix directory creation mechanism; the optimized version would not work :-(
(This used to be commit 796475ad5a)
1998-09-29 05:16:20 +00:00
Alexandre Oliva
6ec9f5d171 optimize creation of directories in build tree
ensure that bin exists when needed
(This used to be commit 87b3e4347a)
1998-09-29 05:05:46 +00:00
Alexandre Oliva
a2d7f765e8 get away with dummy and .dummy files
(This used to be commit 90a8a02484)
1998-09-29 04:52:17 +00:00
Alexandre Oliva
a42bb09db8 added WITH_SMBMOUNT
(This used to be commit fe5721b952)
1998-09-29 04:50:07 +00:00
Richard Sharpe
e1d962659f Now have a better solution to the need to have smblcient find
a WINS server if running on the WINS server.  As suggested by
Andrew, we have a flag, in_client=False by default, and set it
to True in the client.  loadparam.c checks this and sets
szWINSserver to 127.0.0.1 when in_client && bWINSsupport.

BTW, we seem to have picked up and unused value in some of
Luke's new code.
(This used to be commit b665756bfc)
1998-09-29 04:43:40 +00:00
Jeremy Allison
4746a0b93f Fixed stupid bug with "cd /" appending a "/" character to the path forever....
Jeremy.
(This used to be commit 14ee57f336)
1998-09-29 01:55:48 +00:00
Andrew Tridgell
b8980c2d1b got rid of the memcpy() prototype and used includes.h instead.
gcc has a built-in memcpy which conflicts with the prototype.
(This used to be commit 16b6c3e852)
1998-09-29 00:11:27 +00:00
Jeremy Allison
008fd97309 Fixed problems found in lint pass over the old code by <cpeterso@microsoft.com>.
These were the problems that still existed in the 2.0 branch.
Jeremy.
(This used to be commit 3fd28812f7)
1998-09-28 23:55:09 +00:00
Jeremy Allison
f58761eadd Added fix from gildea@intouchsys.com - smbpasswd file could be left
locked.
Jeremy.
(This used to be commit 71ab5c367c)
1998-09-28 23:10:08 +00:00
Jeremy Allison
cf3a9741dc Changes to test in configure if capabilities are enabled on a system.
Changes to get Samba to compile cleanly with the IRIX compiler
with the options : -fullwarn -woff 1209,1174 (the -woff options
are to turn off warnings about unused function parameters and
controlling loop expressions being constants).
Split prototype generation as we hit a limit in IRIX nawk.
Removed "." code in smbd/filename.c (yet again :-).
Jeremy.
(This used to be commit e0567433bd)
1998-09-28 21:43:48 +00:00
Michael Warfield
cdaa53e3ef Two changes in this ball...
1) Changes to smbmnt.c, smbmount.c, and smbumount.c allow them to compile on
both RedHat 4.x (libc 4.x) systems and RedHat 5.x (glibc 2) systems.

2) Changes to Makefile.in and configure.in (and subsequently configure) are to
configure for smbmount, smbumount, and smbmnt to compile.

This adds a "--with(out)-smbmount" option to configure.  Sanity checking is
not present yet.  You can specify this if you are not on linux, it just
won't compile.
(This used to be commit 8a4730f619)
1998-09-28 19:18:21 +00:00
Andrew Tridgell
a97a4b8b99 made bad boolean values stand out a little better
(This used to be commit 270f4b0f84)
1998-09-28 12:52:51 +00:00
Richard Sharpe
376742415b Backed out that just as ill-considered change :-(
A more careful change will be needed in the name lookup code.
(This used to be commit edfc3ab99b)
1998-09-28 09:40:46 +00:00