1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-14 01:57:53 +03:00

2318 Commits

Author SHA1 Message Date
Luke Leighton
95056761c8 torture debug.
(This used to be commit 97609596647dea39c061bdf972411a86f7294521)
1998-10-22 23:05:55 +00:00
Luke Leighton
f0d3a44ffa enumeration tests (files, sessions, shares, connections).
hey, you can see how many connections succeed while the rpctorture
command is running!
(This used to be commit c1bf8f109932a3387fa7b8b4265a3eda52d3e0a3)
1998-10-22 22:54:00 +00:00
Christopher R. Hertel
6f61253648 Okay, this is really silly but removing one space from one debug statement
meant that one hex dump would fit within 80 characters in lynx after HTML
conversion.
(This used to be commit c391f076f29cff917fd51d58598e1ad11048e824)
1998-10-22 22:51:45 +00:00
Luke Leighton
a0512ce5ff rpctorture command
(This used to be commit b4ae65e2d0582274d67d02ea190f6d3d83b48594)
1998-10-22 22:19:08 +00:00
Jeremy Allison
84866d4233 Removed previously #ifdef 0 'ed code.
Jeremy.
(This used to be commit 7feaa13d02f84760d6857115ed253570f41911bb)
1998-10-22 19:15:24 +00:00
Jeremy Allison
6e25286b3c Tidied up Support.txt to be up to date with latest consultant
change requests. Start of the big docs update .....

Jeremy.
(This used to be commit 246cd46c4ed0c6918d6179411476b61eba48eede)
1998-10-22 19:09:50 +00:00
Jeremy Allison
80f920181f server/srv_samr.c smbd/ipc.c: Changed global_myworkgroup back to fstring
(as it is everywhere else).
smbwrapper/smbsh.c: For IRIX n32 binaries, set _RLDN32_LIST not _RLD32_LIST.
                    Exec users preferred shell is SHELL environment variable is set.
tests/fcntl_lock.c: Added sys/types.h for systems that need this.
Jeremy.
(This used to be commit 50413d0d819d4f13e760ca8439c5bdde0898d63e)
1998-10-22 18:51:16 +00:00
Luke Leighton
cbd0b2ccf9 bug fix in lsa_trans_names.
well-known aliases S-1-5-20 is actually S-1-5-0x20 but sid_to_string does
decimal not hexadecimal oops.
(This used to be commit 4d830e243650729344a2d1b238075e787802ff8b)
1998-10-22 18:15:23 +00:00
Christopher R. Hertel
034a12fdcb Minor change.
The debug_browse_data() function does a hex dump of a browser packet.  The
last line is often not a full 16 bytes, which would miss-align the hex
output.  I've added the padding needed to align the hex output.

Chris -)-----
(This used to be commit 9f9b30abab118f0a2e007beddd79de38a2d5ea29)
1998-10-22 18:07:39 +00:00
Luke Leighton
1c753388d3 extern fstring global_myworkgroup should be a pstring
(This used to be commit 89f6e05ce4cc21fd2e3c0e416e49383f7b56d1ea)
1998-10-22 17:26:44 +00:00
Jeremy Allison
1ee499385c libsmb/smbdes.c: #ifdef'ed out code prior to removal.
rpc_client/cli_pipe.c: Inlined code removed from smbdes.c
rpc_server/srv_samr.c: Fixed unused variable warning.
rpc_server/srv_util.c: Inlined code removed from smbdes.c

Luke - the above changes are the first part of the changes
you and I discussed as being neccessary at the CIFS conference.
*PLEASE REVIEW THESE CHANGES* - make sure I haven't broken
any of the authenticated DCE/RPC code.

smbd/nttrans.c: Fixed to allow NT5.0beta2 to use Samba shares
                with NT SMB support.
smbd/open.c: Fixed mkdir when called from nttrans calls.
smbd/server.c: Set correct size for strcpy of global_myworkgroup.

Jeremy.
(This used to be commit d891421d16ff80998dee429227bd391455f9d1a1)
1998-10-22 16:55:03 +00:00
Christopher R. Hertel
2356f467d1 Another cosmetic change.
When dumping the wins.dat, this module will also write the database
contents to the log file (don't do this if you have a large wins.dat!).
The output was in a sort of tabular format, except that the asctime()
function was used and it always terminates its output with a newline.

I did a bit of fussing, removed the '\n' character, and did my best to
line up the other columns.  If the output format of asctime() is
different on different systems, then the columns won't line up, but
the output will still look better than it did before.

Chris -)-----
(This used to be commit 57295113feefcde77b429c661878444cd078b21f)
1998-10-22 00:30:41 +00:00
Luke Leighton
eadc5b8c6e domain aliases added a bit better: does local aliases if you query
for sid S-1-5-20 and does (nothing at the moment) if you query for
your own sid.
(This used to be commit da40f26f4b2f7ce286076b4e39dffd76aa2ef8e6)
1998-10-21 22:36:26 +00:00
Luke Leighton
21e107fd42 the next dialog: user-groups. it's not very sensible what appears, but hey:
it appears!
(This used to be commit 399035098f212e976cc0000a215e0705ebe78c05)
1998-10-21 21:11:16 +00:00
Christopher R. Hertel
8c307cee7a I received a bug report from Massimo Campostrini in Pisa. There are a pair
of "front-end" functions with the same bug each.

Fixed.
(This used to be commit 487a2e13b7913e512fa01e736daaccc3858eb689)
1998-10-21 19:00:44 +00:00
Luke Leighton
5b7df7a752 added "start index" skipping into querydispinfo.
(This used to be commit 3e6519da22628ea41025711718ec23b082ef02d0)
1998-10-21 18:06:46 +00:00
Christopher R. Hertel
88a0a8c088 Changed the debug calls to use the newer debug macros. This allowed me to
break up some very long lines in both the code and the output.  The change
is mostly cosmetic, but should improve log file readability.
(This used to be commit fc4e0148ebf8ea45e4410224218c0c987965d36c)
1998-10-21 17:26:54 +00:00
Jeremy Allison
6e3af45afe Fixed mainly signed/unsigned issues found by SGI cc in -fullwarn mode.
smbd/chgpasswd.c: Fixed (my) stupid bug where I was returning stack based variables. Doh !
smbd/trans2.c: Allows SETFILEINFO as well as QFILEINFO on directory handles.
Jeremy.
(This used to be commit 0b44d27d0b5cc3948a6c2d78370ccddf1a84cd80)
1998-10-21 16:58:34 +00:00
Luke Leighton
ac9be4ddca oops!
(This used to be commit 500e5536bee8ea8e58d5991bfab2cff923068926)
1998-10-21 16:54:23 +00:00
Luke Leighton
4773506383 signed / unsigned issues
(This used to be commit bd2fc6bb85739cb8e7ed2254e2a553486daed054)
1998-10-21 16:28:44 +00:00
Luke Leighton
9307940876 fixing smbd encrypted rpcs (data lens, alloc hints, sequence nums argh).
put unicode strings after SAMLOGON query regardless of whether it's
an NT mailslot or a non-NT mailslot, after having observed this behaviour
out of NT machines.
(This used to be commit c101113ec20ed0ba633e78e4ee45596cdccaf1b5)
1998-10-21 01:35:01 +00:00
Andrew Tridgell
053d6c605c at the interop Isaac (at least I _think_ it was Isaac) said that if a
MS client doesn't respond to a oplock break request then we might try
resending the request.

This morning Sues Win95 machine had this problem (thus forcing me to
do something about it!). When starting winword her box refused to
answer an oplock break request. I have added code to resend the oplock
break request up to 3 times at 10 second intervals before killing the
socket.

of course, as soon as I did this her box started to behave again so I
haven't been able to tell if this fix actually works, but it can't be
worse than dropping the socket immediately.
(This used to be commit a1c4d8351b9171416693e6d7a9045bdce9217edb)
1998-10-21 00:31:14 +00:00
Luke Leighton
d8f0e60195 signed / unsigned warnings (found by herb).
how do i switch on these warnings in gcc?????
(This used to be commit 39db385a0c47c11adb6bf3bac89c4bb76f675049)
1998-10-20 22:37:44 +00:00
Luke Leighton
89087385fe dce/rpc. bug-fix in ipc.c (introduced today :)
(This used to be commit 48ff3e2429964404c8bf33ef625791147913a3c0)
1998-10-20 22:25:52 +00:00
Jeremy Allison
e094a36a98 Fixed bug found by John Blair where trim_string wasn't
correctly trimming trailing multibyte code page strings.
Jeremy.
(This used to be commit dbdbce29f56d03f6abf1ee3d96ca2032e688dcbc)
1998-10-20 20:08:35 +00:00
Luke Leighton
1ebeb54932 some quite important bug-fixes i missed because i transferred the wrong
smb.tgz file from my portable.

particularly the call to mem_data followed by a realloc of that data in
cli_pipe.c's rpc_read() function.

smbd responses now use p->rdata_i which is a faked-up pointer into
p->rdata's response data.  rdata can be very long; rdata_i is limited
to point to no more than max_tsize - 0x18 in length.  this will make
it an almost trivial task to add the encrypted rpc headers after
rdata_i, and mem_buf_copy will cope admirably with rhdr chained to
rdata_i chained to auth_verifier etc etc...
(This used to be commit 05a297e3a98c14360782af4ad0d851638fb5da9a)
1998-10-20 18:27:49 +00:00
Luke Leighton
476d0fd236 calls to prs_grow() on array structures so that data construction doesn't
over-run buffers
(This used to be commit 06cc6eaa50fa4b673d527e91740f9d2d2b16d367)
1998-10-20 16:24:57 +00:00
Andrew Tridgell
2a0141c50f oops, I ot the return type of putenv() wrong
(This used to be commit 5b7b24d3f9a74b241f7e767de4a2bae601adf88a)
1998-10-20 06:52:39 +00:00
Andrew Tridgell
26b299dd52 use putenv() more portably
(This used to be commit dc08f1a5c92e86c41dc03f6a4d10d5779f3d9c34)
1998-10-20 06:51:21 +00:00
Andrew Tridgell
e4678f5d1d fixed a connection bug in torture test
(This used to be commit 2b892130dfc1938e93e69e490a8a9e9ed57a1971)
1998-10-20 06:46:25 +00:00
Andrew Tridgell
ad64fc6bc5 removed setenv(), replaced with smbw_setenv()
(This used to be commit 72bce217ef474f056d8f6675667ec78d1772ff37)
1998-10-20 06:45:18 +00:00
Andrew Tridgell
e2fcb1880b new prorotypes
(This used to be commit facd8d74e0cd0998ca5347ac5be14a6027460699)
1998-10-20 06:43:59 +00:00
Andrew Tridgell
b19db1e749 fixes for solaris
(This used to be commit 235a8463b56107d97ee5523eed41967e8ccf27b6)
1998-10-20 06:43:36 +00:00
Jeremy Allison
60cf45b2bc smbd/nttrans.c smbd/trans2.c: First fixes for NT5.0beta2. That redirector
has some *horrible* bugs !
smbwrapper/shared.c smbwrapper/smbsh.c smbwrapper/smbw.c: Fixed gcc warnings.
Jeremy.
(This used to be commit 76448d1d82a78520953c662afee0886122ce134b)
1998-10-20 03:17:43 +00:00
Andrew Tridgell
c778331328 add -Bshareable for *bsd*
(This used to be commit c511a619750152db03897ea682713bbc98f71c6b)
1998-10-20 03:10:58 +00:00
Andrew Tridgell
bd52d5f513 removed my badly-done attempt at handling compilers that don't handle
-c and -o at the same time.

my shell script code wasn't portable
(This used to be commit 759c72822b9b1e8c50b378378f3a45f1e7604ade)
1998-10-20 03:10:29 +00:00
Luke Leighton
ef234c67d5 oops
(This used to be commit 7f8dfedfc0933713ab7d6de0763f8776e5805e27)
1998-10-19 20:10:33 +00:00
Luke Leighton
41e97c33ab output password change messages instead of debug message.
(This used to be commit b9e728a97be323e9221889a63ffa02cff5c99403)
1998-10-19 17:50:19 +00:00
Luke Leighton
01de603084 - dce/rpc code
- removed debug info in struni2 and unistr2 (security risk)

- rpc_pipe function was getting pointer to data then calling realloc *dur*

- password check function, the start of "credential checking",
  user, wks, domain, pass as the credentials (not just user,pass which
  is incorrect in a domain context)

- cli_write needs to return ssize_t not size_t, because total can be -1
  if the write fails.

- fixed signed / unsigned warnings (how come i don't get those any more
  when i compile with gcc???)

- nt password change added in smbd.  yes, jeremy, i verified that the
  SMBtrans2 version still works.
(This used to be commit fcfb40d2b0fc565ee4f66b3a3761c246366a2ef3)
1998-10-19 17:32:10 +00:00
Andrew Tridgell
33790c4150 added command line options to smbsh
(This used to be commit 9b249c075e53e6cf75399d60a6371648c03104fa)
1998-10-19 02:49:48 +00:00
Andrew Tridgell
9debf0b1ee improved session reestablishment
(This used to be commit 5f96328d32e76785474ffd5cd73f8ddefc46d4f5)
1998-10-19 02:48:57 +00:00
Andrew Tridgell
4ecf44d8af prototype new functions
(This used to be commit ae6e3d8f3820ee09988948ec0c1fa2214acd9b62)
1998-10-19 01:05:49 +00:00
Andrew Tridgell
d5c190bae8 return the resolved IP on a cli_connect() call so it can be cached
(This used to be commit 4e3f8ef41b8de25dec4c01d5532dca1b567be55a)
1998-10-19 01:05:11 +00:00
Andrew Tridgell
48a3c12279 removed an incorrect comment
(This used to be commit 5abdb70e2a5cda2df444dfe5a9cdcb751be75ca8)
1998-10-19 01:03:52 +00:00
Andrew Tridgell
f08565a834 - don't use env variables for passwords and usernames (yeah!)
- added a shared variable area based on a unlinked open file, and
  implement a general get/set interface to it
- cache hostname lookups and master ip lookups in shared variable area
(This used to be commit 279cbe69efd75450113d2da0da5e67b29f3702b1)
1998-10-19 01:03:00 +00:00
Andrew Tridgell
f52b898a63 - added smbrapper/shared.o
- added suport for C compilers that don't handle -c and -o at once
(This used to be commit f1672d055716f4b701e22801cbf5cf5573081685)
1998-10-19 01:00:33 +00:00
Jeremy Allison
b8aec499dc Fixed sys_lseek and seek_file calls so all returns
are *checked* :-).
Jeremy.
(This used to be commit b8b781191dd7d28944d87eec5fa0fbef798e289b)
1998-10-18 22:06:35 +00:00
Andrew Tridgell
691e2f245c redid proto.h
(This used to be commit 20880966aafb2dbcdfbf979505a2d64a269dd9a8)
1998-10-18 19:45:05 +00:00
Andrew Tridgell
b4ef754715 check for lp_nt_pipe_support() in open calls
(This used to be commit 44d901b3e040a520c4ad9089e68c566c78acacca)
1998-10-18 19:30:26 +00:00
Andrew Tridgell
f6d91d0565 add an option to enable/disable nt pipes
(This used to be commit c161b2f850f124ac5f24968e7865a7d0eb68e23e)
1998-10-18 19:29:19 +00:00