1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
Commit Graph

2150 Commits

Author SHA1 Message Date
Luke Leighton
500e5536be oops! 0001-01-01 00:00:00 +00:00
Luke Leighton
bd2fc6bb85 signed / unsigned issues 0001-01-01 00:00:00 +00:00
Luke Leighton
c101113ec2 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.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
a1c4d8351b 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.
0001-01-01 00:00:00 +00:00
Luke Leighton
39db385a0c signed / unsigned warnings (found by herb).
how do i switch on these warnings in gcc?????
0001-01-01 00:00:00 +00:00
Luke Leighton
48ff3e2429 dce/rpc. bug-fix in ipc.c (introduced today :) 0001-01-01 00:00:00 +00:00
Jeremy Allison
dbdbce29f5 Fixed bug found by John Blair where trim_string wasn't
correctly trimming trailing multibyte code page strings.
Jeremy.
0001-01-01 00:00:00 +00:00
Luke Leighton
05a297e3a9 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...
0001-01-01 00:00:00 +00:00
Luke Leighton
06cc6eaa50 calls to prs_grow() on array structures so that data construction doesn't
over-run buffers
0001-01-01 00:00:00 +00:00
Andrew Tridgell
5b7b24d3f9 oops, I ot the return type of putenv() wrong 0001-01-01 00:00:00 +00:00
Andrew Tridgell
dc08f1a5c9 use putenv() more portably 0001-01-01 00:00:00 +00:00
Andrew Tridgell
2b892130df fixed a connection bug in torture test 0001-01-01 00:00:00 +00:00
Andrew Tridgell
72bce217ef removed setenv(), replaced with smbw_setenv() 0001-01-01 00:00:00 +00:00
Andrew Tridgell
facd8d74e0 new prorotypes 0001-01-01 00:00:00 +00:00
Andrew Tridgell
235a8463b5 fixes for solaris 0001-01-01 00:00:00 +00:00
Jeremy Allison
76448d1d82 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.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
c511a61975 add -Bshareable for *bsd* 0001-01-01 00:00:00 +00:00
Andrew Tridgell
759c72822b 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
0001-01-01 00:00:00 +00:00
Luke Leighton
7f8dfedfc0 oops 0001-01-01 00:00:00 +00:00
Luke Leighton
b9e728a97b output password change messages instead of debug message. 0001-01-01 00:00:00 +00:00
Luke Leighton
fcfb40d2b0 - 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.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
9b249c075e added command line options to smbsh 0001-01-01 00:00:00 +00:00
Andrew Tridgell
5f96328d32 improved session reestablishment 0001-01-01 00:00:00 +00:00
Andrew Tridgell
ae6e3d8f38 prototype new functions 0001-01-01 00:00:00 +00:00
Andrew Tridgell
4e3f8ef41b return the resolved IP on a cli_connect() call so it can be cached 0001-01-01 00:00:00 +00:00
Andrew Tridgell
5abdb70e2a removed an incorrect comment 0001-01-01 00:00:00 +00:00
Andrew Tridgell
279cbe69ef - 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
0001-01-01 00:00:00 +00:00
Andrew Tridgell
f1672d0557 - added smbrapper/shared.o
- added suport for C compilers that don't handle -c and -o at once
0001-01-01 00:00:00 +00:00
Jeremy Allison
b8b781191d Fixed sys_lseek and seek_file calls so all returns
are *checked* :-).
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
20880966aa redid proto.h 0001-01-01 00:00:00 +00:00
Andrew Tridgell
44d901b3e0 check for lp_nt_pipe_support() in open calls 0001-01-01 00:00:00 +00:00
Andrew Tridgell
c161b2f850 add an option to enable/disable nt pipes 0001-01-01 00:00:00 +00:00
Jeremy Allison
60dc1a4a00 Small tidyups for gcc in 'preen' mode....
Jeremy.
0001-01-01 00:00:00 +00:00
Eloy Paris
69c7b8e2af Added man page for nmblookup(1) 0001-01-01 00:00:00 +00:00
Luke Leighton
fc1b7b9e75 oops. 0001-01-01 00:00:00 +00:00
Luke Leighton
29434f496c dce/rpc 0001-01-01 00:00:00 +00:00
Andrew Tridgell
710027a88a added maxfid test 0001-01-01 00:00:00 +00:00
Andrew Tridgell
121e321a12 changed some debug levels 0001-01-01 00:00:00 +00:00
Luke Leighton
d717d58c11 strtoul removed, strtol used instead 0001-01-01 00:00:00 +00:00
Luke Leighton
4ebd2c5140 strtoul replace with strtol 0001-01-01 00:00:00 +00:00
Luke Leighton
866e101818 !pass -> pass != NULL is wrong: !pass -> pass == NULL is correct. oops. 0001-01-01 00:00:00 +00:00
Luke Leighton
95e8a910c5 made pass_check_smb() available for dce/rpc use. 0001-01-01 00:00:00 +00:00
Luke Leighton
63def71799 cli_nt_session_open() encrypt arg removed 0001-01-01 00:00:00 +00:00
Luke Leighton
dae7c5ea9a setup_groups() - code clarification. no functional change. 0001-01-01 00:00:00 +00:00
Luke Leighton
ff9e919b71 oops. 0001-01-01 00:00:00 +00:00
Luke Leighton
16256f86bf rpc client mods (ntlmssp flags) 0001-01-01 00:00:00 +00:00
Andrew Tridgell
91d224735d only do the MAC extensions if we are a NTFS filesystem 0001-01-01 00:00:00 +00:00
Andrew Tridgell
2f39409dc1 - use large buffers for netshareenum
- handle errmoredata a bit better
- fix dev type from tconx for smbw
0001-01-01 00:00:00 +00:00
Andrew Tridgell
59d99ad76c use the username GUEST if no other username is available 0001-01-01 00:00:00 +00:00
Jeremy Allison
04d79a9ae5 Re-added code to tell the user how many open files they
have. Needed for server diagnosis purposes...
Jeremy.
0001-01-01 00:00:00 +00:00