1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-10 13:57:47 +03:00

2205 Commits

Author SHA1 Message Date
Christopher R. Hertel
e86fd87a38 Fixed a small bug in debug2html. It wasn't properly checking EOF. The
current status is "it works".  I need to add some syntax error recovery
and a usage message.  Basic stuff.

I've also modified Makefile.in.  If you want to compile it you'll have to
do a 'make debug2html', as I used smbtorture as a model.  We can decide
later if this tool is useful enough to be compiled always.

BTW, a 'make realclean' fails because the bin directory isn't empty.
That's because it doesn't delete optionally compiled files such as
smbtorture and debug2html (and because of the CVS subdirectory, but I
think that's only a problem for developers).

Chris -)-----
-
Christopher R. Hertel
26fcdfd082 Added info about parsing debug messages.
Chris -)-----
-
Jeremy Allison
695b31d066 Fixed a few doc bugs in make_smbcodepage.1.yo samba.7.yo
Added smbd.8.yo.
Jeremy.
-
Luke Leighton
22721b0271 debug string with no %s parameter. oops -
Luke Leighton
161eb6f511 amazing. the improvements to NT continue, evidence for which shows up
now as "RPC fault" if the UNIHDR structure lengths do not exactly
match up to the length of the data stream.

so, all versions of samba prior to this one have an off-by-one bug
in unicode string lengths.

all versions of NT prior to NT 5 beta 2 could possibly have buffer
problems when receiving badly formatted UNICODE strings.
-
Jeremy Allison
7ad30c43ba YODL conversion of make_smbcodepage.1
Jeremy.
-
Andrew Tridgell
ae1888529b add ifdef for "long double" -
Andrew Tridgell
e2cb50af45 added a vsnprintf() implementation from cvslock. See the notes on the
license at the top of lib/snprintf.c

I've always been slightly uneasy about our half-baked vslprintf()
implementation and the risks on platforms that don't have vsnprintf()
so when I saw this code in another GPLd package I wanted it for Samba.
-
Christopher R. Hertel
fae161b905 Here is the simple debug parser and the debug2html converter. Still to do:
* Debug message filtering.
  * I need to add all this to Makefile.in
    (If it looks at all strange I'll ask for help.)

If you want to compile debug2html, you'll need to do it by hand until I
make the changes to Makefile.in.  Sorry.

Chris -)-----
-
Jeremy Allison
c4fbf36ff7 First part of YODL converted documentation.
Jeremy.
-
Jeremy Allison
91b4f547eb Added new German consultant.
Jeremy.
-
Jeremy Allison
4332bc06c6 Fixed a couple of issues with the SMB_QUERY_FILE_ALL_INFO query.
Ensured offset was being reported correctly for 64 bit file access,
ensured delete on close bit was being reported correctly.
Jeremy.
-
Andrew Tridgell
b2210614e8 report ourselves as HTTP/1.0 not HTTP/1.1 -
Andrew Tridgell
b2a7f85d59 added a couple more error codes to cli_error() -
John Terpstra
d42b641acb A little more tweaking and sqeaking. Now, will it work? Argh! -
John Terpstra
230c42ab64 Welcome to Pacific HiTech TurboLinux support. -
John Terpstra
af36d39434 Packaging mods - make sure we always keep our config files and NEVER mv them to *.rpmsave -
Andrew Tridgell
9d33d405cd fix for John.
don't seek unless absolutely necessary on files in do_put()
-
Andrew Tridgell
85f639ab2b handle the case of an intermediate binary not loading smbwrapper.so
(for example /usr/bin/man because it is setgid).
-
Andrew Tridgell
2565ccf9de volker was concerned about unique inode numbers and smbsh. This set of
changes uses the unique index number from a SMB_QUERY_FILE_ALL_INFO to
try to provide inode numbers. If it is 0 then use the hash of the
filename as before.
-
Andrew Tridgell
9d863fb168 make sure that apps can't close one of the internal smbw file
descriptors by catching close attempts on those fds and returning
EBADF.
-
Tim Potter
552175fdcb Fix for -fpic rules (.c.po and .c.po32) when using --enable-maintainer-mode. -
John Terpstra
98ba0b3a0a Unlink zero length files that did NOT exist at the point of origin on a do_get() call. -
Luke Leighton
1e96e14e79 added domain and local group structures. names may have to be 256 chars
long not 128 (fstring) length.
-
Jeremy Allison
222d686a6c Handle the case where multiple smbd have the file open, some of whom
don't have the ALLOW_DELETE_ON_CLOSE share flag enabled. Told you
this was fiddly code :-).
Jeremy.
-
Luke Leighton
59cf9c00d9 set netlogon negotiation flags to 0x1ff, not to what the client requests.
this is 0x4000 01ff on NT4 SP4, and 0x0000 01ff on pre-NT4 SP4.
-
Luke Leighton
1c8c644210 possible bug in change oem password code: replaced E_P16 and E_md4hash
with a call to nt_lm_owf_gen.  if this still doesn't get the NT hash
generated correctly then there may instead be a bug in mod_smbpwd_entry().
-
John Terpstra
21e56ce707 Updated paths. -
Jeremy Allison
8de02620ea Make the new code conditional on lp_share_modes() just like the code in open_file_shared().
Jeremy.
-
Jeremy Allison
d815e2d7a6 Fixed debug reporting in the changed code.
Jeremy.
-
Jeremy Allison
269bca2b3b Fixed bug in previous commit where I was overwriting share_mode from
one fsp with that of another. Not good :-).
Jeremy.
-
Jeremy Allison
5e6a7cd99d Reasonably large change to give us *exactly* correct NT delete on close semantics.
This was trickier than it looks :-). Check out the new DELETE_ON_CLOSE
flag in the share modes and the new code that iterates through all open
files on the same device and inode in files.c and trans2.c

Also changed the code that modifies share mode entries to take
generic function pointers rather than doing a specific thing so
this sort of change should be easier in the future.

Jeremy.
-
Andrew Tridgell
a66c56d70e don't enable smbsh/smbwrapper on systems where we can't work out how
to generate PIC code
-
Andrew Tridgell
252fe1e701 don't use SMBW_PWD_ENV any more -
Andrew Tridgell
4eb7b5c6a8 fixed problems with PWD - we no longer use the PWD env variable
instead the shared variable area is used.

this fixes problems with /bin/sh under solaris
-
Andrew Tridgell
636182f183 make the shared variable stuff slightly more sophisticated -
Jeremy Allison
8e1ce307bd include/smb.h: Added #defines for lots of things - makes our code a *lot* easier to read.
lib/util.c: Fixed Luke's set_first_token() function - should return void.
smbd/close.c: Move delete_on_close into file_fd_struct structure.
smbd/ipc.c: Changed local_machine back to fstring.
smbd/nttrans.c: Use defines for mapping share modes.
smbd/open.c: Move delete_on_close into file_fd_struct structure, added code for ALLOW_SHARE_DELETE.
smbd/reply.c: Use defines for mapping share modes.
smbd/trans2.c: Move delete_on_close into file_fd_struct structure.
Jeremy.
-
Luke Leighton
9760959664 torture debug. -
Luke Leighton
c1bf8f1099 enumeration tests (files, sessions, shares, connections).
hey, you can see how many connections succeed while the rpctorture
command is running!
-
Christopher R. Hertel
c391f076f2 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.
-
Luke Leighton
b4ae65e2d0 rpctorture command -
Jeremy Allison
7feaa13d02 Removed previously #ifdef 0 'ed code.
Jeremy.
-
Jeremy Allison
246cd46c4e Tidied up Support.txt to be up to date with latest consultant
change requests. Start of the big docs update .....

Jeremy.
-
Jeremy Allison
50413d0d81 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.
-
Luke Leighton
4d830e2436 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.
-
Christopher R. Hertel
9f9b30abab 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 -)-----
-
Luke Leighton
89f6e05ce4 extern fstring global_myworkgroup should be a pstring -
Jeremy Allison
d891421d16 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.
-
Christopher R. Hertel
57295113fe 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 -)-----
-
Luke Leighton
da40f26f4b 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.
-