cvs2svn Import User [Wed, 13 May 1998 02:48:03 +0000 (02:48 +0000)]
This commit was manufactured by cvs2svn to create tag
'release-1-9-18p7'.
Samba Release Account [Wed, 13 May 1998 02:48:02 +0000 (02:48 +0000)]
preparing for release of 1.9.18p7
Andrew Tridgell [Wed, 13 May 1998 02:32:40 +0000 (02:32 +0000)]
use StrCaseCmp not strcasecmp in a qsort.
Otherwise it won't compile on some platforms
Andrew Tridgell [Wed, 13 May 1998 02:10:37 +0000 (02:10 +0000)]
fixed another cast warning in smbpass.c
Andrew Tridgell [Wed, 13 May 1998 02:04:15 +0000 (02:04 +0000)]
- fixed prototypes for slprintf() for broken systems
- fixed a cast warning in smbpass.c
Jeremy Allison [Wed, 13 May 1998 01:29:20 +0000 (01:29 +0000)]
Updated for 1.9.18p7 release.
Jeremy.
Jeremy Allison [Tue, 12 May 1998 23:02:57 +0000 (23:02 +0000)]
Added USA consultant.
Jeremy.
Jeremy Allison [Tue, 12 May 1998 22:53:18 +0000 (22:53 +0000)]
This is a security audit change of the 1.9.18 source.
It removed all ocurrences of the following functions :
sprintf
strcpy
strcat
The replacements are slprintf, safe_strcpy and safe_strcat.
It should not be possible to use code in Samba that uses
sprintf, strcpy or strcat, only the safe_equivalents.
Jeremy.
Andrew Tridgell [Tue, 12 May 1998 12:44:40 +0000 (12:44 +0000)]
a new slprintf() function. This one is totally portable but a bit of a
kludge. It is a safe kludge with our current code but I would like to
revisit it at some point in the future.
The problem with the one I committed yesterday is it used non-portable
functions. (it also had a bug in it, but that's another matter)
This one works by just using vsprintf() into a 8k buffer and a memcpy
from there. No memory protection tricks or other non-portable
stuff. This is safe because all calls to slprintf() in samba use
strings which have been through a pstrcpy and thus are less than 1024
bytes. No call uses more than 2 of these strings. See what I mean by
kludge? Note that the 8k is way overkill but I like overkill :)
Someday (after autoconf) we will replace this with something better,
but meanwhile this is simple, secure and portable.
John Terpstra [Tue, 12 May 1998 10:20:22 +0000 (10:20 +0000)]
Updating packaging file in preparation for 1.9.18p7.
Samba Release Account [Mon, 11 May 1998 12:43:56 +0000 (12:43 +0000)]
preparing for release of 1.9.18p6
Samba Release Account [Mon, 11 May 1998 11:35:22 +0000 (11:35 +0000)]
preparing for release of 1.9.18p6
John Terpstra [Mon, 11 May 1998 11:24:47 +0000 (11:24 +0000)]
Updating for Caldera builds of 1.9.18p6.
John Terpstra [Mon, 11 May 1998 11:22:39 +0000 (11:22 +0000)]
Updating for 1.9.18p6 release.
Samba Release Account [Mon, 11 May 1998 10:09:18 +0000 (10:09 +0000)]
preparing for release of 1.9.18p6
Andrew Tridgell [Mon, 11 May 1998 10:05:37 +0000 (10:05 +0000)]
updated for p6 release
Andrew Tridgell [Mon, 11 May 1998 07:02:04 +0000 (07:02 +0000)]
define PROT_READ as 1 if not defined
Andrew Tridgell [Mon, 11 May 1998 06:35:34 +0000 (06:35 +0000)]
changed to use slprintf() instead of sprintf() just about
everywhere. I've implemented slprintf() as a bounds checked sprintf()
using mprotect() and a non-writeable page.
This should prevent any sprintf based security holes.
Samba Release Account [Sat, 9 May 1998 00:39:22 +0000 (00:39 +0000)]
preparing for release of 1.9.18p5
John Terpstra [Sat, 9 May 1998 00:19:04 +0000 (00:19 +0000)]
Small mod to OSF1 Security Mode note.
John Terpstra [Sat, 9 May 1998 00:11:47 +0000 (00:11 +0000)]
Final preps for release.
Jeremy Allison [Sat, 9 May 1998 00:07:37 +0000 (00:07 +0000)]
Updated WHATSNEW.txt with John's fix for Dec.
Jeremy.
Herb Lewis [Fri, 8 May 1998 23:37:24 +0000 (23:37 +0000)]
sync with head branch
Jeremy Allison [Fri, 8 May 1998 23:15:36 +0000 (23:15 +0000)]
Fixed typo with 'changes since' line.
Jeremy.
Jeremy Allison [Fri, 8 May 1998 22:54:56 +0000 (22:54 +0000)]
Preparing for release.
WHATSNEW.txt: Updated date.
docs/smb.conf.5: Updated for security=server downgrade.
Jeremy.
Jeremy Allison [Fri, 8 May 1998 22:48:31 +0000 (22:48 +0000)]
clitar.c: New tar changes.
reply.c: Fixed overwriting of sesssetup_name with a NULL name when in
security=share.
Jeremy.
Jeremy Allison [Thu, 7 May 1998 18:18:27 +0000 (18:18 +0000)]
This should (hopefully) be the final :-) fix for the %U and %G
substitution problems with standard_sub.
Jeremy.
Jeremy Allison [Wed, 6 May 1998 18:19:02 +0000 (18:19 +0000)]
WHATSNEW.txt: Updated with %U bugfix note.
source/server.c source/util.c: Moved %U, %G and %N into standard_sub() from standard_sub_basic()
as only smbd knows about usernames. Also fixes problem with calling
standard_sub_basic() from loadparm.c.
Jeremy.
Andrew Tridgell [Wed, 6 May 1998 03:08:14 +0000 (03:08 +0000)]
use fstring instead of string as string may clash with some standard
headers on some systems.
Andrew Tridgell [Wed, 6 May 1998 03:06:36 +0000 (03:06 +0000)]
don't #include <regex.h> in 1.9.18 clitar.c as it's not needed and
will cause compilation to fail on some systems.
generally system includes should go in includes.h anyway, with
appropriate #ifdefs
Jeremy Allison [Wed, 6 May 1998 00:22:08 +0000 (00:22 +0000)]
Fixes for the %U and %G problems people have reported.
Essentially, multiple session_setup_and_X's may be done
to an smbd. As there is only one global variable containing
the requested connection name (sessionsetup_user), then any
subsequent sessionsetups overwrite this name (causing %U
and %G to get the wrong name). This is particularly common
when an NT client does a null session setup to get a
browse list after the user has connected, but before
a share has been mounted.
These changes store the requested_name in the vuid structure
(so this only really works for user level and above security)
and copies this name back into the global variable before
the standard_sub call.
Jeremy.
Herb Lewis [Tue, 5 May 1998 15:05:58 +0000 (15:05 +0000)]
sync with head branch
John Terpstra [Tue, 5 May 1998 00:51:42 +0000 (00:51 +0000)]
Updating version info for packages.
Jeremy Allison [Tue, 5 May 1998 00:45:19 +0000 (00:45 +0000)]
Added mention of docs/PROFILES.txt.
Jeremy.
Jeremy Allison [Mon, 4 May 1998 23:30:35 +0000 (23:30 +0000)]
Moved cli_tdis() to correct place in security=server (got confused
by indentation).
Jeremy.
Jeremy Allison [Mon, 4 May 1998 22:43:47 +0000 (22:43 +0000)]
Added rider about net workstation user logon parameter.
Moved IPC$ tcon into parameter bracketed code.
Jeremy.
Jeremy Allison [Mon, 4 May 1998 20:25:10 +0000 (20:25 +0000)]
source/*.c - fixes for DEBUG typos.
docs/ENCRYPTION.txt: Updated "update encrypted" section.
WHATSNEW.txt: Preparing for 1.9.18p5 release.
Jeremy.
Jeremy Allison [Mon, 4 May 1998 19:37:35 +0000 (19:37 +0000)]
docs/ENCRYPTION.txt: Added 'Migrating to encrypted passwords' section.
docs/smb.conf.5: Added "update encrypted" docs.
source/chgpasswd.c:
source/loadparm.c:
source/password.c:
source/smbpass.c: Added 'update encrypted' patch from Bruce Tenison <btenison@dibbs.net>.
source/ipc.c: Added fix for long printer driver name.
This should be the last code checkin before 1.9.18p5 (compile bugs permitting).
Jeremy.
Jeremy Allison [Thu, 30 Apr 1998 00:07:43 +0000 (00:07 +0000)]
Fixed lockfile problems using both F_RDLCK and F_WRLCK at the same time.
Jeremy.
Jeremy Allison [Wed, 29 Apr 1998 19:37:41 +0000 (19:37 +0000)]
Fixed auto services bug - patch from tim@quiknet.com.
Jeremy.
Jeremy Allison [Wed, 29 Apr 1998 19:16:25 +0000 (19:16 +0000)]
Fixed null session setup bug.
Jeremy.
Herb Lewis [Wed, 29 Apr 1998 13:46:02 +0000 (13:46 +0000)]
added clean option
Jeremy Allison [Tue, 28 Apr 1998 19:36:36 +0000 (19:36 +0000)]
Added Canadian consultant. Changed Australian consultant.
Jeremy.
Herb Lewis [Mon, 27 Apr 1998 16:21:20 +0000 (16:21 +0000)]
clean up instructions
Volker Lendecke [Mon, 27 Apr 1998 08:48:05 +0000 (08:48 +0000)]
Added SuSE packaging files.
Volker
John Terpstra [Sun, 26 Apr 1998 06:11:03 +0000 (06:11 +0000)]
Getting ready for 1.9.18p5 release.
Jeremy Allison [Fri, 24 Apr 1998 19:01:04 +0000 (19:01 +0000)]
Fixes for SGI compile time warnings.
Jeremy.
Jeremy Allison [Wed, 22 Apr 1998 17:40:22 +0000 (17:40 +0000)]
clientgen.c: Added cli_ulogoff().
password.c: Added new two-level security=server code.
Jeremy.
Jeremy Allison [Wed, 22 Apr 1998 01:44:40 +0000 (01:44 +0000)]
Fixed documentation of debug level -dA, noticed by Eloy Paris.
Jeremy.
Jeremy Allison [Tue, 21 Apr 1998 00:24:36 +0000 (00:24 +0000)]
Wrapped the O_SYNC define just in case it isn't :-).
Jeremy.
Jeremy Allison [Mon, 20 Apr 1998 22:57:22 +0000 (22:57 +0000)]
docs/smb.conf.5: Documented 'passwd chat debug'.
source/chgpasswd.c source/loadparm.c: Added 'passwd chat debug' parameter
(defaults to false) to allow admins to debug their passwd chat scripts.
Jeremy.
Jeremy Allison [Mon, 20 Apr 1998 20:19:14 +0000 (20:19 +0000)]
Fixed bug that John found in WINS server code. When nmbd as a WINS
server is sending out a name_query after a WACK, it needs to send
a packet with recursion_desired = 0 (yes Luke, you were right all
along :-). If it doesn't then if it's talking to itself then the
query packet ends up back in the WINS server instead of in the client
side code.
Makefile: Changed proto generation to stop including NMBDOBJ twice.
nmbd_namequery.c nmbd_packets.c nmbd_winsserver.c: Added extra
query_name_from_wins_server() code.
Jeremy.
John Terpstra [Fri, 17 Apr 1998 22:36:09 +0000 (22:36 +0000)]
Fix Linux compile time warning.
Jeremy Allison [Thu, 16 Apr 1998 19:22:46 +0000 (19:22 +0000)]
reply.c: Fix bugs where debug statements were accessing the fd_ptr struct
internals after Andrews' code had memset it to zero (this was causing core
dumps).
charcnv.c: Fixes for ISO8859-2 from Petr Hubeny <psh@capitol.cz>.
Jeremy.
Jeremy Allison [Wed, 15 Apr 1998 00:29:41 +0000 (00:29 +0000)]
Back ported Richard Sharpe's smbtar changes back to 1.9.18 for the p5
release.
Jeremy.
Jeremy Allison [Tue, 14 Apr 1998 20:34:02 +0000 (20:34 +0000)]
ipc.c: Fix for large print queue spinning with Win95. Tested it
here and it seems to work. Will await final confirmation from
clients.
Fix from Eloy Paris for nmbd append log problem.
nmbd.c: Call reopen_logs after optarg processing (as smbd does).
util.c: Fixed Debug1 to open log in append mode if append flag set.
Jeremy.
Jeremy Allison [Mon, 13 Apr 1998 23:31:15 +0000 (23:31 +0000)]
Updated info.
Jeremy.
Jeremy Allison [Mon, 13 Apr 1998 22:03:36 +0000 (22:03 +0000)]
Forgot to update proto.h after last change.
Jeremy.
Jeremy Allison [Mon, 13 Apr 1998 19:36:46 +0000 (19:36 +0000)]
Added Florida consultant. Tidied up smbpasswd man page.
Jeremy.
Jeremy Allison [Mon, 13 Apr 1998 19:35:23 +0000 (19:35 +0000)]
Changed back reply_unknown and reply_special prototypes as they are
not called from the reply_xxxx vector table.
Jeremy.
Andrew Tridgell [Mon, 13 Apr 1998 11:20:08 +0000 (11:20 +0000)]
fixed a memory leak in close_file(). Each time a file was opened
we leaked memory equal to the length of the filename.
John Terpstra [Mon, 13 Apr 1998 10:30:11 +0000 (10:30 +0000)]
As it says.
John Terpstra [Sun, 12 Apr 1998 06:25:15 +0000 (06:25 +0000)]
Added additional comments from Bruce Woods
John Terpstra [Sat, 11 Apr 1998 15:16:58 +0000 (15:16 +0000)]
This document should be in the 1.9.18p5 tree too.
cvs2svn Import User [Sat, 11 Apr 1998 15:15:30 +0000 (15:15 +0000)]
This commit was manufactured by cvs2svn to create branch
'BRANCH_1_9_18'.
John Terpstra [Sat, 11 Apr 1998 15:15:29 +0000 (15:15 +0000)]
Corrected the spelling of my Surname. Added several postscripts.
Extended info on Win95 logins to Windows NT.
Luke Leighton [Sat, 11 Apr 1998 14:00:37 +0000 (14:00 +0000)]
created from a really useful discussion about Win95 / NT profiles.
Contributors: Bruce Cook <BC3-AU@bigfoot.com>
Copyright (C) 1998 Bruce Cook
John Terpestra <samba-bugs@samba.anu.edu.au>
Copyright (C) 1998 John H. Terpestra
Wolfgang Ratzka <ratzka@hrz.uni-marburg.de>
Copyright (C) 1998 Wolfgang Ratzka
Richard Sharpe [Sat, 11 Apr 1998 13:02:11 +0000 (13:02 +0000)]
Fix heaps of warnings when compiling with gcc under Digital UNIX. Include route.h
and mbuf.h at a strategic point ... Wierd stuff really, because the Digital
compiler does not complain either way, but GCC does.
John Terpstra [Sat, 11 Apr 1998 11:09:12 +0000 (11:09 +0000)]
Updated to include possible cause of failed TESTS 3/6 as bad broadcast address.
John Terpstra [Sat, 11 Apr 1998 11:07:11 +0000 (11:07 +0000)]
Updated to include possible cause of TESTS 3/6 failure is incorrect broadcast address.
Richard Sharpe [Sat, 11 Apr 1998 08:14:53 +0000 (08:14 +0000)]
Oops, fogot proto.h. It needs to be updated for changes to client.c
Richard Sharpe [Sat, 11 Apr 1998 08:00:49 +0000 (08:00 +0000)]
smbclient.1 updated to reflect the new functionality and to document functionality
that has been available for a long time. More updates needed ... people tend to forget
the man pages when adding functionality.
Richard Sharpe [Sat, 11 Apr 1998 07:52:13 +0000 (07:52 +0000)]
Changes to client.c support the need for directories to be processed by whatever
action is passed to do_dir.
Changes to clitar.c as requested by Canon Information Systems Research Australia:
1. Support restoring long file names
2. Write directory entries to TAR files as first part of setting directory create
times
3. Ensure zero length files get correct mtime
4. Allow DOS and UNIX pathnames in command line parameters.
Jeremy Allison [Sat, 11 Apr 1998 00:42:59 +0000 (00:42 +0000)]
This looks like a massive change, but it isn't. It is, in fact,
the changes needed to compile Samba with gcc-2.8 with the
-Wstrict-prototypes -Wshadow warning flags set and get
no errors. Now to do the same for the main branch.....
Jeremy.
Jeremy Allison [Fri, 10 Apr 1998 18:21:16 +0000 (18:21 +0000)]
includes.h: Moved HPUX undefine of SEMMSL to where it actually does something.
ipc.c: Added Luke's debug statement.
locking_slow.c: Added FTRUNCATE_NEEDS_ROOT code for broken systems that
need it (not sure what these are yet).
membuffer.c ntdomain.h proto.h
lib/rpc/include/rpc_dce.h lib/rpc/include/rpc_srvsvc.h
lib/rpc/parse/parse_prs.c lib/rpc/parse/parse_rpc.c
lib/rpc/server/srv_pipe_hnd.c lib/rpc/server/srv_util.c:
Re-merge of Luke's NTDOM changes 'cos he's a lazy git with
carpel tunnel syndrome :-).
Jeremy.
Jeremy Allison [Fri, 10 Apr 1998 18:14:37 +0000 (18:14 +0000)]
includes.h: Moved undefine of SEMMSL for HPUX to where it actually has an effect !
locking_slow.c: Added FTRUNCATE_NEEDS_ROOT defined code for broken systems (not sure
which these are yet).
smbpasswd.c: Clear out the struct cli_state before use.
Jeremy.
Jeremy Allison [Fri, 10 Apr 1998 01:19:18 +0000 (01:19 +0000)]
Fix for [homes] problem with security=share. We were still relying
on a valid vuid to get the connecting username - this is *never* true
(anymore) with security=share.
Jeremy.
Jeremy Allison [Fri, 10 Apr 1998 01:19:02 +0000 (01:19 +0000)]
Fix for [homes] problem with security=share. We were still relying
on a valid vuid to get the connecting username - this is *never* true
(anymore) with security=share.
Jeremy.
Jeremy Allison [Thu, 9 Apr 1998 20:48:48 +0000 (20:48 +0000)]
Makefile, loadparm.c, server.c, smb.h, util.c: Patch from
stn@techfak.uni-kiel.de (Stefan Nehlsen) to get homes from
the NIS+ map.
smbpasswd.c: Tidy up of cli_state structure.
Jeremy.
Christopher R. Hertel [Thu, 9 Apr 1998 20:36:14 +0000 (20:36 +0000)]
I removed a static string that was in there because I planned to do
something with it some day. It was causing gcc to cough up warnings
(not serious ones, mind you). Don't worry... It will be back!
Chris -)-----
John Terpstra [Thu, 9 Apr 1998 14:13:20 +0000 (14:13 +0000)]
Added const cast to struct args to get rid of compile time warning.
Jeremy Allison [Thu, 9 Apr 1998 02:48:29 +0000 (02:48 +0000)]
Makefile includes.h loadparm.c server.c smb.h util.c: NIS+ patch
to get home directories from stn@techfak.uni-kiel.de (Stefan Nehlsen).
includes.h chgpasswd.c: Fix to allow -DALLOW_CHANGE_PASSWORDS on HPUX.
Jeremy.
Jeremy Allison [Thu, 9 Apr 1998 00:42:23 +0000 (00:42 +0000)]
Removed unneeded proto symbol.
Jeremy.
Jeremy Allison [Thu, 9 Apr 1998 00:41:11 +0000 (00:41 +0000)]
Removed unneeded proto symbol.
Jeremy.
Jeremy Allison [Thu, 9 Apr 1998 00:31:52 +0000 (00:31 +0000)]
Missed compilation error when compiling with KANJI=true.
Jeremy.
Jeremy Allison [Thu, 9 Apr 1998 00:30:38 +0000 (00:30 +0000)]
Missed compile error when compiling with KANJI=true.
Jeremy.
Jeremy Allison [Thu, 9 Apr 1998 00:07:17 +0000 (00:07 +0000)]
Added codepage 936 (simplified Chineses).
In doing so I realized that much code was being
duplicated between Hangul, Big5 and Simplified
Chinese - so I re-arranged kanji.[ch] to go
through generic functions for all multibyte
characters that can be identified by a single
code range (not Kanji - but all the others).
Jeremy.
Jeremy Allison [Thu, 9 Apr 1998 00:06:57 +0000 (00:06 +0000)]
Added codepage 936 (simplified Chineses).
In doing so I realized that much code was being
duplicated between Hangul, Big5 and Simplified
Chinese - so I re-arranged kanji.[ch] to go
through generic functions for all multibyte
characters that can be identified by a single
code range (not Kanji - but all the others).
Jeremy.
Jeremy Allison [Wed, 8 Apr 1998 19:12:22 +0000 (19:12 +0000)]
Fix to stop Windows 95 spinning on print queue requests when it
gets an error message it doesn't understand.
Jeremy.
Jeremy Allison [Wed, 8 Apr 1998 18:56:35 +0000 (18:56 +0000)]
Fix to stop Win95 looping when querying printer status.
Jeremy.
Jeremy Allison [Tue, 7 Apr 1998 17:44:02 +0000 (17:44 +0000)]
Added check for getpwnam returning NULL.
Jeremy.
Jeremy Allison [Tue, 7 Apr 1998 17:41:56 +0000 (17:41 +0000)]
Added check for getpwnam returning null.
Jeremy.
Luke Leighton [Tue, 7 Apr 1998 15:59:05 +0000 (15:59 +0000)]
want all of data in show_msg at log levels > 50.
Jeremy Allison [Tue, 7 Apr 1998 01:48:57 +0000 (01:48 +0000)]
loadparm.c: Fix from "Marty Leisner" <leisner@sdsp.mc.xerox.com> to allow
server string to be expanded at run time, not load time.
nmblib.c: Integrated the fix to make us RFC1002 complient, as it works
in the main branch.
server.c: Fix from Josef Hinteregger <joehtg@joehtg.co.at> to stop
static string being overwritten in recursive call.
Jeremy.
Jeremy Allison [Mon, 6 Apr 1998 18:14:56 +0000 (18:14 +0000)]
loadparm.c: Cause IPC$ comment to be evaluated at runtime, rather than
load time (patch from "Marty Leisner" <leisner@sdsp.mc.xerox.com>.
server.c: Patch from Josef Hinteregger <joehtg@joehtg.co.at> - string
could be overwritten when find_service() called recursively.
Jeremy.
Jeremy Allison [Fri, 3 Apr 1998 01:07:52 +0000 (01:07 +0000)]
Fix from Josef Hinteregger <joehtg@joehtg.co.at> for using
character set = iso8859-1 with the new multibyte char code.
Was always using sj_to_sj conversion in error.
Jeremy.
Jeremy Allison [Fri, 3 Apr 1998 01:04:34 +0000 (01:04 +0000)]
Fix from Josef Hinteregger <joehtg@joehtg.co.at> for using
character set = iso8859-1 with the new multibyte char code.
Was always using sj_to_sj conversion in error.
Jeremy.
Jeremy Allison [Thu, 2 Apr 1998 19:12:11 +0000 (19:12 +0000)]
We were missing a case switch in announcement processing - we
were loggin a become backup request with debug log level of 0
- thus producing lots of annoying error messages.
Now handle this explicitly.
Jeremy.
Jeremy Allison [Thu, 2 Apr 1998 19:11:04 +0000 (19:11 +0000)]
We were missing a case switch in announcement processing - we
were loggin a become backup request with debug log level of 0
- thus producing lots of annoying error messages.
Now handle this explicitly.
Jeremy.
Jeremy Allison [Thu, 2 Apr 1998 01:07:53 +0000 (01:07 +0000)]
Changed code to check NT password *first* - if it exists.
The NT password is a higher quality password, and should
always be looked at before the LM password, if available
(sorry, Luke, just a minor change, the other changes you
made were fine :-).
Jeremy.