cvs2svn Import User [Tue, 3 Nov 1998 02:25:29 +0000 (02:25 +0000)]
This commit was manufactured by cvs2svn to create tag
'release-2-0-0-alpha-15'.
Jeremy Allison [Tue, 3 Nov 1998 02:25:28 +0000 (02:25 +0000)]
Makefile.in configure configure.in include/proto.h smbd/noquotas.c smbd/quotas.c:
Added quotas patch for autoconf from Dejan Ilic <svedja@lysator.liu.se>.
printing/printing.c: Filenames with spaces patch from Allan Bjorklund <allan@umich.edu>
utils/nmblookup.c: Fix usage() function.
smbd/reply.c: Split out the security=server and security=domain checks into
check_server_security() and check_domain_security() to aid the
writing of the 'hack' appliance mode invented by John Schimmel.
Jeremy.
Jeremy Allison [Tue, 3 Nov 1998 02:04:27 +0000 (02:04 +0000)]
Tidied up references to samba (7).
Added smbtar.1.yo.
Jeremy.
Jeremy Allison [Tue, 3 Nov 1998 00:58:34 +0000 (00:58 +0000)]
More yodl-docs.
Jeremy.
Luke Leighton [Mon, 2 Nov 1998 23:45:36 +0000 (23:45 +0000)]
memory leak in SAM group code: need these to track it down.
Jeremy Allison [Mon, 2 Nov 1998 23:09:44 +0000 (23:09 +0000)]
Tidied up VERSION section. Added testparm.1.yo
Jeremy.
Jeremy Allison [Mon, 2 Nov 1998 21:25:00 +0000 (21:25 +0000)]
Fixed up html links - docs look better now (getting the hang of this).
Added nmblookup.1.yo.
Jeremy.
Jeremy Allison [Mon, 2 Nov 1998 18:12:28 +0000 (18:12 +0000)]
client/client.c: Patch to tidy up file size output.
nmbd/nmbd.c: Someone (a "yank" no doubt :-) Changed instances of "initialise" to
"initialize". Someone get that man an *English* dictionary.... :-) :-).
Jeremy.
Luke Leighton [Mon, 2 Nov 1998 16:20:25 +0000 (16:20 +0000)]
removed comment line at end of file
Andrew Tridgell [Sat, 31 Oct 1998 09:31:29 +0000 (09:31 +0000)]
don't core dump in smbstatus if we can't open the shmem system
Andrew Tridgell [Sat, 31 Oct 1998 07:38:50 +0000 (07:38 +0000)]
took out Lukes change as it breaks domain logons for Win95 clients
(ie. it breaks Sues machine).
Luke, your comment was:
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.
perhaps you could post the relevant tcpdump or netmon capture so we
can see what is going on? I suspect that what you saw isn't exactly
what the win95 boxes are generating. Maybe you saw a GETDCxxx instead
of a GETDC000 ? Maybe we need a switch based on the GETDC request
type?
We won't know unless we see sniffs.
Andrew Tridgell [Sat, 31 Oct 1998 04:35:03 +0000 (04:35 +0000)]
added copyright notice from Patrick Powell
Jeremy Allison [Sat, 31 Oct 1998 03:16:07 +0000 (03:16 +0000)]
Mode doc work (smbclient was *nasty*).
Jeremy.
Jeremy Allison [Fri, 30 Oct 1998 23:53:04 +0000 (23:53 +0000)]
Fix suggested by Nicholas.S.Jenkins@cdc.com - connect to the
password change server as anonymous - you don't need to have
logged on as the user to do the password change. Doh ! (Why
didn't *I* think of that one.... :-).
Jeremy.
Alexandre Oliva [Fri, 30 Oct 1998 16:37:39 +0000 (16:37 +0000)]
do not print garbage just because someone does not want dependencies :-)
Jeremy Allison [Thu, 29 Oct 1998 22:12:00 +0000 (22:12 +0000)]
Learned about the label() and link() commands and how to use url()
to do cross ref links.
Jeremy.
Alexandre Oliva [Thu, 29 Oct 1998 22:02:08 +0000 (22:02 +0000)]
looks like someone forgot to commit these...
Jeremy Allison [Thu, 29 Oct 1998 21:48:07 +0000 (21:48 +0000)]
Added html label() macros to man page sections allowing them to be
linked to externally.
Jeremy.
Jeremy Allison [Thu, 29 Oct 1998 20:17:02 +0000 (20:17 +0000)]
Fixed bug (that I introduced when doing the "delete on close" work
that caused NetBench to fail as the wrong error code was being
returned from a getatr call. Change was not to set the
unix_ERR_class global when you are not returning an error. This
is a big of Samba internal folklore that is *important*.
Jeremy.
Alexandre Oliva [Thu, 29 Oct 1998 17:55:58 +0000 (17:55 +0000)]
modify dependency tracking code so that it:
1) inserts the pathname of the object file in the dependency file
(currently, gcc will only generate the basename)
2) the directory tree within .deps mirrors the source tree, so that we use
shorter filenames
problem 1 was reported to me by Tom Angert <angert@bellsouth.net>
John Terpstra [Thu, 29 Oct 1998 10:44:54 +0000 (10:44 +0000)]
Added description of reason for failure of test 3 due to blockage of the
loopback address.
John Terpstra [Thu, 29 Oct 1998 10:29:07 +0000 (10:29 +0000)]
Path change only.
John Terpstra [Thu, 29 Oct 1998 10:17:00 +0000 (10:17 +0000)]
Fixed spec file entry that was causing the CDRom installer to generate
a message claiming that package installation had failed when it really
did work. The error was caused by the killall command being used where
there is no /proc for it to work on.
Jeremy Allison [Thu, 29 Oct 1998 04:54:51 +0000 (04:54 +0000)]
nmbd.8.yo: More tweaks.
smbclient.1.yo: Partially done...
Jeremy.
Jeremy Allison [Thu, 29 Oct 1998 02:18:17 +0000 (02:18 +0000)]
Tidied up option processing in smbclient - usage message now actually
reflects the real options. Removed '-S' option - couldn't see what
this was doing (seemed to have something to do with nt_domain_logon ?).
Luke please check if you needed this code (code is only #ifdef'ed out
and can be re-instated).
Did this to make writing of yodl smbclient man page possible :-).
Jeremy.
Herb Lewis [Thu, 29 Oct 1998 01:15:14 +0000 (01:15 +0000)]
clean up steps for making distribution
Herb Lewis [Thu, 29 Oct 1998 01:13:46 +0000 (01:13 +0000)]
some versions of Irix pass the HAVE__ACL test but don't have acl.h
test for both before including ACL support.
Andrew Tridgell [Thu, 29 Oct 1998 01:00:21 +0000 (01:00 +0000)]
yet another person asked me where the name Samba came from, so I put
it in the history file.
Jeremy Allison [Wed, 28 Oct 1998 21:37:00 +0000 (21:37 +0000)]
Finished nmbd docs, small changes to smbd docs.
Jeremy.
Christopher R. Hertel [Wed, 28 Oct 1998 20:35:27 +0000 (20:35 +0000)]
This should have gone with the last batch.
Again, to compile debug2html, you need to do a 'make debug2html'.
Chris -)-----
Christopher R. Hertel [Wed, 28 Oct 1998 20:33:35 +0000 (20:33 +0000)]
I've moved the debugparse module files into the ubiqx directory because I
know that 'make proto' will ignore them there. The debugparse.h header
file is included in includes.h, and includes.h is included in debugparse.c,
so all of the pieces "see" each other. I've compiled and tested this,
and it does seem to work. It's the same compromise model I used when
adding the ubiqx modules into the system, which is why I put it all into
the same directory.
Chris -)-----
Christopher R. Hertel [Wed, 28 Oct 1998 20:24:41 +0000 (20:24 +0000)]
Still moving things around. debugparse.h will be removed from the include
directory in the next batch. Chris -)-----
Christopher R. Hertel [Wed, 28 Oct 1998 20:15:07 +0000 (20:15 +0000)]
Just moving things around a bit.
Chris -)-----
Jeremy Allison [Wed, 28 Oct 1998 19:24:16 +0000 (19:24 +0000)]
Added Cybernet systems. Also made it clear that USA is *North* America,
and not the whole of North America (apologies to the bloke from Mexico
who got upset).
Jeremy.
Jeremy Allison [Wed, 28 Oct 1998 18:41:06 +0000 (18:41 +0000)]
Move man page section from (1) to (8) for smbd.
Jeremy.
Jeremy Allison [Wed, 28 Oct 1998 18:32:34 +0000 (18:32 +0000)]
Added clear-out-structure fix for make_unistr2.
Jeremy.
Jeremy Allison [Wed, 28 Oct 1998 18:26:04 +0000 (18:26 +0000)]
Fixes to allow this to pass SGI compiler in -fullwarn mode (with one
annoying exception I'm still looking at :-).
Jeremy.
Jeremy Allison [Wed, 28 Oct 1998 17:51:49 +0000 (17:51 +0000)]
Quick fixes to fix the broken tree. Needed for my morning compiles.
Chris - feel free to fix these things differently if these fixes don't
work for you.
Jeremy.
Jeremy Allison [Wed, 28 Oct 1998 17:15:28 +0000 (17:15 +0000)]
Fix from thwartedefforts@wonky.org (slightly modified) to
fix username overwriting problem in security=share.
Jeremy.
Andrew Tridgell [Wed, 28 Oct 1998 12:04:34 +0000 (12:04 +0000)]
fixed problem with snprintf.c and mkproto
Andrew Tridgell [Wed, 28 Oct 1998 06:05:34 +0000 (06:05 +0000)]
use abort() instead of exit() in smb_panic()
the reason we don't return() here is that smb_panic() is used not just
for segv but also for detected errors (such as buffer overflows)
Andrew Tridgell [Wed, 28 Oct 1998 04:07:51 +0000 (04:07 +0000)]
fixed handling of %.0f in replacement snprintf.c
Jeremy Allison [Wed, 28 Oct 1998 02:35:07 +0000 (02:35 +0000)]
Not finished yet - added so I can check it out at home
and work on it tonight (I hate my life :-( ).
Jeremy.
Christopher R. Hertel [Tue, 27 Oct 1998 23:28:29 +0000 (23:28 +0000)]
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 [Tue, 27 Oct 1998 21:07:52 +0000 (21:07 +0000)]
Added info about parsing debug messages.
Chris -)-----
Jeremy Allison [Tue, 27 Oct 1998 19:33:20 +0000 (19:33 +0000)]
Fixed a few doc bugs in make_smbcodepage.1.yo samba.7.yo
Added smbd.8.yo.
Jeremy.
Luke Leighton [Tue, 27 Oct 1998 15:08:02 +0000 (15:08 +0000)]
debug string with no %s parameter. oops
Luke Leighton [Tue, 27 Oct 1998 15:03:47 +0000 (15:03 +0000)]
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 [Tue, 27 Oct 1998 01:54:33 +0000 (01:54 +0000)]
YODL conversion of make_smbcodepage.1
Jeremy.
Andrew Tridgell [Tue, 27 Oct 1998 00:07:06 +0000 (00:07 +0000)]
add ifdef for "long double"
Andrew Tridgell [Mon, 26 Oct 1998 23:40:33 +0000 (23:40 +0000)]
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 [Mon, 26 Oct 1998 23:21:37 +0000 (23:21 +0000)]
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 [Mon, 26 Oct 1998 20:08:31 +0000 (20:08 +0000)]
First part of YODL converted documentation.
Jeremy.
Jeremy Allison [Mon, 26 Oct 1998 20:01:14 +0000 (20:01 +0000)]
Added new German consultant.
Jeremy.
Jeremy Allison [Mon, 26 Oct 1998 18:44:01 +0000 (18:44 +0000)]
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 [Mon, 26 Oct 1998 10:55:29 +0000 (10:55 +0000)]
report ourselves as HTTP/1.0 not HTTP/1.1
Andrew Tridgell [Mon, 26 Oct 1998 03:31:00 +0000 (03:31 +0000)]
added a couple more error codes to cli_error()
John Terpstra [Sun, 25 Oct 1998 12:08:49 +0000 (12:08 +0000)]
A little more tweaking and sqeaking. Now, will it work? Argh!
John Terpstra [Sun, 25 Oct 1998 09:12:42 +0000 (09:12 +0000)]
Welcome to Pacific HiTech TurboLinux support.
John Terpstra [Sun, 25 Oct 1998 09:08:22 +0000 (09:08 +0000)]
Packaging mods - make sure we always keep our config files and NEVER mv them to *.rpmsave
Andrew Tridgell [Sat, 24 Oct 1998 08:24:11 +0000 (08:24 +0000)]
fix for John.
don't seek unless absolutely necessary on files in do_put()
Andrew Tridgell [Sat, 24 Oct 1998 08:14:17 +0000 (08:14 +0000)]
handle the case of an intermediate binary not loading smbwrapper.so
(for example /usr/bin/man because it is setgid).
Andrew Tridgell [Sat, 24 Oct 1998 08:08:05 +0000 (08:08 +0000)]
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 [Sat, 24 Oct 1998 06:36:22 +0000 (06:36 +0000)]
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 [Sat, 24 Oct 1998 06:23:02 +0000 (06:23 +0000)]
Fix for -fpic rules (.c.po and .c.po32) when using --enable-maintainer-mode.
John Terpstra [Sat, 24 Oct 1998 02:49:09 +0000 (02:49 +0000)]
Unlink zero length files that did NOT exist at the point of origin on a do_get() call.
Luke Leighton [Fri, 23 Oct 1998 21:45:16 +0000 (21:45 +0000)]
added domain and local group structures. names may have to be 256 chars
long not 128 (fstring) length.
Jeremy Allison [Fri, 23 Oct 1998 17:25:14 +0000 (17:25 +0000)]
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 [Fri, 23 Oct 1998 17:22:21 +0000 (17:22 +0000)]
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 [Fri, 23 Oct 1998 15:21:37 +0000 (15:21 +0000)]
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 [Fri, 23 Oct 1998 14:21:55 +0000 (14:21 +0000)]
Updated paths.
Jeremy Allison [Fri, 23 Oct 1998 03:52:28 +0000 (03:52 +0000)]
Make the new code conditional on lp_share_modes() just like the code in open_file_shared().
Jeremy.
Jeremy Allison [Fri, 23 Oct 1998 03:44:57 +0000 (03:44 +0000)]
Fixed debug reporting in the changed code.
Jeremy.
Jeremy Allison [Fri, 23 Oct 1998 03:41:11 +0000 (03:41 +0000)]
Fixed bug in previous commit where I was overwriting share_mode from
one fsp with that of another. Not good :-).
Jeremy.
Jeremy Allison [Fri, 23 Oct 1998 03:34:50 +0000 (03:34 +0000)]
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 [Fri, 23 Oct 1998 01:51:31 +0000 (01:51 +0000)]
don't enable smbsh/smbwrapper on systems where we can't work out how
to generate PIC code
Andrew Tridgell [Fri, 23 Oct 1998 01:29:38 +0000 (01:29 +0000)]
don't use SMBW_PWD_ENV any more
Andrew Tridgell [Fri, 23 Oct 1998 01:27:23 +0000 (01:27 +0000)]
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 [Fri, 23 Oct 1998 01:26:46 +0000 (01:26 +0000)]
make the shared variable stuff slightly more sophisticated
Jeremy Allison [Fri, 23 Oct 1998 00:58:28 +0000 (00:58 +0000)]
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 [Thu, 22 Oct 1998 23:05:55 +0000 (23:05 +0000)]
torture debug.
Luke Leighton [Thu, 22 Oct 1998 22:54:00 +0000 (22:54 +0000)]
enumeration tests (files, sessions, shares, connections).
hey, you can see how many connections succeed while the rpctorture
command is running!
Christopher R. Hertel [Thu, 22 Oct 1998 22:51:45 +0000 (22:51 +0000)]
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 [Thu, 22 Oct 1998 22:19:08 +0000 (22:19 +0000)]
rpctorture command
Jeremy Allison [Thu, 22 Oct 1998 19:15:24 +0000 (19:15 +0000)]
Removed previously #ifdef 0 'ed code.
Jeremy.
Jeremy Allison [Thu, 22 Oct 1998 19:09:50 +0000 (19:09 +0000)]
Tidied up Support.txt to be up to date with latest consultant
change requests. Start of the big docs update .....
Jeremy.
Jeremy Allison [Thu, 22 Oct 1998 18:51:16 +0000 (18:51 +0000)]
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 [Thu, 22 Oct 1998 18:15:23 +0000 (18:15 +0000)]
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 [Thu, 22 Oct 1998 18:07:39 +0000 (18:07 +0000)]
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 [Thu, 22 Oct 1998 17:26:44 +0000 (17:26 +0000)]
extern fstring global_myworkgroup should be a pstring
Jeremy Allison [Thu, 22 Oct 1998 16:55:03 +0000 (16:55 +0000)]
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 [Thu, 22 Oct 1998 00:30:41 +0000 (00:30 +0000)]
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 [Wed, 21 Oct 1998 22:36:26 +0000 (22:36 +0000)]
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.
Luke Leighton [Wed, 21 Oct 1998 21:11:16 +0000 (21:11 +0000)]
the next dialog: user-groups. it's not very sensible what appears, but hey:
it appears!
Christopher R. Hertel [Wed, 21 Oct 1998 19:00:44 +0000 (19:00 +0000)]
I received a bug report from Massimo Campostrini in Pisa. There are a pair
of "front-end" functions with the same bug each.
Fixed.
Luke Leighton [Wed, 21 Oct 1998 18:06:46 +0000 (18:06 +0000)]
added "start index" skipping into querydispinfo.
Christopher R. Hertel [Wed, 21 Oct 1998 17:26:54 +0000 (17:26 +0000)]
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.
Jeremy Allison [Wed, 21 Oct 1998 16:58:34 +0000 (16:58 +0000)]
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.
Luke Leighton [Wed, 21 Oct 1998 16:54:23 +0000 (16:54 +0000)]
oops!
Luke Leighton [Wed, 21 Oct 1998 16:28:44 +0000 (16:28 +0000)]
signed / unsigned issues