cvs2svn Import User [Tue, 30 Dec 1997 04:34:38 +0000 (04:34 +0000)]
This commit was manufactured by cvs2svn to create tag
'ntdom-update-point-1'.
Luke Leighton [Tue, 30 Dec 1997 04:34:37 +0000 (04:34 +0000)]
*** empty log message ***
Andrew Tridgell [Mon, 29 Dec 1997 13:01:26 +0000 (13:01 +0000)]
a dummy change to shmem_sysv.c to try and break CVS out of a problem
with the ntdom branch
Luke Leighton [Mon, 29 Dec 1997 02:19:23 +0000 (02:19 +0000)]
*** empty log message ***
Luke Leighton [Mon, 29 Dec 1997 01:07:30 +0000 (01:07 +0000)]
*** empty log message ***
Luke Leighton [Mon, 29 Dec 1997 01:00:06 +0000 (01:00 +0000)]
*** empty log message ***
Luke Leighton [Mon, 29 Dec 1997 00:55:47 +0000 (00:55 +0000)]
*** empty log message ***
Luke Leighton [Mon, 29 Dec 1997 00:48:11 +0000 (00:48 +0000)]
*** empty log message ***
Luke Leighton [Mon, 29 Dec 1997 00:24:02 +0000 (00:24 +0000)]
*** empty log message ***
Luke Leighton [Sun, 28 Dec 1997 04:13:00 +0000 (04:13 +0000)]
*** empty log message ***
Luke Leighton [Sun, 28 Dec 1997 03:39:10 +0000 (03:39 +0000)]
*** empty log message ***
cvs2svn Import User [Fri, 26 Dec 1997 10:07:06 +0000 (10:07 +0000)]
This commit was manufactured by cvs2svn to create branch 'BRANCH_NTDOM'.
Andrew Tridgell [Fri, 26 Dec 1997 10:07:05 +0000 (10:07 +0000)]
fixed another couple of minor type errors (they could cause incorrect
output but not a core dump)
Andrew Tridgell [Fri, 26 Dec 1997 10:01:57 +0000 (10:01 +0000)]
fixed a couple of illegal uses of scanf() in the nmbd wins code. They
caused a core dump under IRIX when compiled with -64.
In general you cannot assume things about variable sizes. In
particular sizeof(time_t) may not equal sizeof(long) and
sizeof(uint16) may not equal sizeof(short).
There are probably other bugs like this. We'll need to check all
format statements for use of %ld, %hx etc. In general these should not
be used unless you have an explicit cast to the appropriate type.
Andrew Tridgell [Fri, 26 Dec 1997 09:57:40 +0000 (09:57 +0000)]
use _exit to exit a child
Herb Lewis [Wed, 24 Dec 1997 15:42:14 +0000 (15:42 +0000)]
This is actually Jeremy, working as Herb :-).
Fixed bug where, when server is shut down it would always
do a lm announce broadcast of shutdown. This could cause other
nmbd's to think that they have seen an lm announce broadcast and
start doing it themselves.
Changed to only send lm announce shutdown if admin configured it
or one was seen on the subnet.
Jeremy.
Samba Release Account [Wed, 24 Dec 1997 10:59:38 +0000 (10:59 +0000)]
preparing for release of 1.9.18alpha14
Jeremy Allison [Wed, 24 Dec 1997 10:50:43 +0000 (10:50 +0000)]
Updated WHATSNEW.txt for 1.9.18alpha14 release.
Added CVS_ACCESS to tell people how to use cvs
to keep up-to-date.
Jeremy.
Jeremy Allison [Wed, 24 Dec 1997 09:33:06 +0000 (09:33 +0000)]
Added docs for new signal handling functions.
Jeremy.
Jeremy Allison [Wed, 24 Dec 1997 09:30:56 +0000 (09:30 +0000)]
Added SIGUSR1/SIGUSR2 handling.
Sending nmbd/smbd a SIGUSR1 will raise the debug level by one (capped at 10)
sending a SIGUSR2 will lower it (lower limit at zero).
Jeremy.
Jeremy Allison [Wed, 24 Dec 1997 08:49:44 +0000 (08:49 +0000)]
nmbd_elections.c: Added new parameter to dump_workgroups call.
nmbd_incomingdgrams.c: Deal with announcements with servertype == 0 - these
are announcements that a machine is shutting down and must be treated differently.
nmbd_serverlistdb.c: Exposed remove_server_from_workgroup as external.
Added code to dump out workgroups on signal correctly.
nmbd_workgroupdb.c: Added new parameter to dump_workgroups call.
Jeremy.
Jeremy Allison [Wed, 24 Dec 1997 07:10:04 +0000 (07:10 +0000)]
Finally added the code Andrew wanted that will allow a Samba domain
master browser to use the *<1b> feature of the Samba WINS server to
get a full workgroup list.
nmbd.c: Added timed call to collect_all_workgroup_names_from_wins_server().
nmbd_browsesync.c: Meat of the code to implement collect_all_workgroup_names_from_wins_server().
nmbd_incomingdgrams.c: Fixed comment typo.
Jeremy.
Jeremy Allison [Wed, 24 Dec 1997 04:32:01 +0000 (04:32 +0000)]
Bugfix from Branko Cibej <branko.cibej@hermes.si>
- client.c had a workaround embedded in it for his
earlier bug in StrnCaseCmp - removed this.
Jeremy.
Christopher R. Hertel [Wed, 24 Dec 1997 02:50:19 +0000 (02:50 +0000)]
Backed out changes that attempted to address a pointer array using -1,0,1.
Jeremy pointed out that there might be problems with this. Darn shame.
Jeremy Allison [Tue, 23 Dec 1997 13:21:36 +0000 (13:21 +0000)]
Fixed nastly little bug where client was sending open_and_X call
with smb_mode (smb_vwv[3]) of 0x20 == DENY_WRITE + read-only-open.
and smb_ofun (smb_vwv[8]) of 0x11 == Create if not exist plus append
on a read-only share.
This was mapped into the strange unix flags of (O_RDONLY|O_CREAT)
- essentially O_CREAT as O_RDONLY == 0.
We were checking the unix flags directly against O_RDONLY instead
of masking off the open mode flag bits before doing the comparison,
so this open was being refused even though it was valid on a
read-only share.
Also ensured that the O_CREAT bit was masked out of the flags
bit if the open was done on a read-only share (as doing a unix
open( filename, O_RDONLY|O_CREAT, xxx) will create a zero length
file if the user had permission to write into the directory - which
should be denied on a read-only share.
Thanks to Mark Peek @ Whistle for giving me this test case.
Jeremy.
Jeremy Allison [Tue, 23 Dec 1997 11:30:58 +0000 (11:30 +0000)]
Fixed security bug when 'force user' and 'user only' are set.
Reported by Brian McCauley <B.A.McCauley@bham.ac.uk>.
Jeremy.
Jeremy Allison [Tue, 23 Dec 1997 07:15:59 +0000 (07:15 +0000)]
Fixes to compile under OpenBSD from "Todd T. Fries" <toddf@acm.org>
Jeremy.
Jeremy Allison [Tue, 23 Dec 1997 06:38:36 +0000 (06:38 +0000)]
architecture.doc: Re-added since I lost it (sorry Dan :-).
nmbd.c nmbd_responserecordsdb.c: Spelling mistake fixes.
Jeremy.
Luke Leighton [Sun, 21 Dec 1997 07:00:33 +0000 (07:00 +0000)]
*** empty log message ***
Dan Shearer [Sun, 21 Dec 1997 00:00:25 +0000 (00:00 +0000)]
Updates for 1.9.18
Dan Shearer [Sat, 20 Dec 1997 23:44:25 +0000 (23:44 +0000)]
Put it in the right directory :~)
Dan Shearer [Sat, 20 Dec 1997 23:40:17 +0000 (23:40 +0000)]
Chris' smb.conf parsing doco
Jeremy Allison [Sat, 20 Dec 1997 14:52:48 +0000 (14:52 +0000)]
Fixed stupid bug in read_smb_len where I was calling itself - now
calling the correct fn.
Jeremy.
Jeremy Allison [Sat, 20 Dec 1997 14:36:11 +0000 (14:36 +0000)]
client.c:
clientgen.c:
clientutil.c:
clitar.c: Changed usage of receive_smb to new function client_receive_smb
except for one use of receive_smb in client.c. This is the
receive_smb used to discard packets received whilst in a
keyboard wait state.
util.c: Created new function client_receive_smb that ignores session
keepalives just as the old receive_smb used to do. Created
internal function read_smb_length_return_keepalive that is
used internally by the changed receive_smb call.
Changed read_smb_len to not use an internal buffer - it is
never called with a null buffer so such code is redundant.
Jeremy.
Jeremy Allison [Sat, 20 Dec 1997 10:52:00 +0000 (10:52 +0000)]
loadparm.c: Added fix for veto oplock files bug from Charles Hoch <hoch@hplcgh.hpl.hp.com>
server.c, util.c: Added fix for oplock break requests blocking due to server being
blocked in read call. Bug found by Charles Hoch <hoch@hplcgh.hpl.hp.com>.
Jeremy.
Dan Shearer [Sat, 20 Dec 1997 10:06:07 +0000 (10:06 +0000)]
This may be a waste of time, but I thought if we keep nibbling at this it might
end up being a curent announce for each new release. Then again maybe we should
start from the one Jeremy and I did for 1.9.17. Just doodling really.
Dan Shearer [Sat, 20 Dec 1997 09:52:02 +0000 (09:52 +0000)]
Minor spelling, wording changes to intro
Luke Leighton [Sat, 20 Dec 1997 06:10:23 +0000 (06:10 +0000)]
*** empty log message ***
Jeremy Allison [Sat, 20 Dec 1997 05:25:37 +0000 (05:25 +0000)]
trans2.c: Forced trans2_findfirst to behave as NT does in error returns.
util.c: Applied fix from Branko Cibej <branko.cibej@hermes.si> where
StrnCaseCmp tests one character too many.
Jeremy.
Christopher R. Hertel [Fri, 19 Dec 1997 09:32:58 +0000 (09:32 +0000)]
Adding the cache module.
I'll be using the cache module to replace the name cache in mangle.c. The
new one should be much faster and should require less memory.
Another feature is that the cache size can be limited by the amount of
memory used in addition to the number of entries allowed. With the
current cache, the default is to allocate 12800 bytes representing 50
entries (256 bytes each). With the same amount of memory, I should be able
to load over around two hundred entries.
Changes to the AVL trees were minor (missing comments).
Chris -)-----
Luke Leighton [Fri, 19 Dec 1997 06:32:00 +0000 (06:32 +0000)]
*** empty log message ***
Jeremy Allison [Thu, 18 Dec 1997 11:05:00 +0000 (11:05 +0000)]
kanji.h: Fixed problems with re-definitions of strchr and others on AIX.
nmbd_nameregister.c: Applied fix found by "Eloy A. Paris" <eparis@ven.ra.rockwell.com>
(don't re-use lists after you have freed them :-).
Jeremy.
Luke Leighton [Thu, 18 Dec 1997 07:21:58 +0000 (07:21 +0000)]
*** empty log message ***
Luke Leighton [Thu, 18 Dec 1997 05:29:15 +0000 (05:29 +0000)]
*** empty log message ***
Luke Leighton [Wed, 17 Dec 1997 06:51:04 +0000 (06:51 +0000)]
*** empty log message ***
Luke Leighton [Wed, 17 Dec 1997 06:42:03 +0000 (06:42 +0000)]
*** empty log message ***
Luke Leighton [Wed, 17 Dec 1997 05:26:47 +0000 (05:26 +0000)]
*** empty log message ***
Jeremy Allison [Wed, 17 Dec 1997 04:56:55 +0000 (04:56 +0000)]
Missed terminating {-1,NULL} in an enum parameter list.
Jeremy.
Andrew Tridgell [Tue, 16 Dec 1997 14:06:09 +0000 (14:06 +0000)]
- handle ENOSPC in shmem init.
- be a little bit more friendly about grabbing semaphores
Samba Release Account [Tue, 16 Dec 1997 12:35:10 +0000 (12:35 +0000)]
preparing for release of 1.9.18alpha13
Samba Release Account [Tue, 16 Dec 1997 12:26:45 +0000 (12:26 +0000)]
Added 'missing feature' section for Chris.
Jeremy.
Jeremy Allison [Tue, 16 Dec 1997 12:21:39 +0000 (12:21 +0000)]
WHATSNEW.txt - updated for 1.9.18alpha13.
docs/smb.conf.5: Removed unused NTDOMAIN params. Added new params.
source/loadparm.c: Put #ifdef NTDOMAIN around unused params.
source/nmbd_become_lmb.c: Removed check for workgroup name in lmb name.
Jeremy.
Jeremy Allison [Tue, 16 Dec 1997 11:32:24 +0000 (11:32 +0000)]
Added new wins & lm announce options.
Jeremy.
Jeremy Allison [Tue, 16 Dec 1997 09:20:34 +0000 (09:20 +0000)]
Added Lanman announce patch from Jacco de Leeuw <leeuw@wins.uva.nl>.
Also added code to stop old Samba servers that announce the workgroup
name as master browser name when they are a local master browser.
Jeremy.
Jeremy Allison [Tue, 16 Dec 1997 07:30:25 +0000 (07:30 +0000)]
nmbd_incomingdgrams.c: Fix bug with Syntax 5.1 servers reported by SGI where
they do host announcements to LOCAL_MASTER_BROWSER_NAME<00> rather than
WORKGROUP<1d>.
nmbd_incomingrequests.c: Deal with WINS_PROXY_NAME issues - don't reply
with that name if it's the same broadcast net.
nmbd_serverlistdb.c: Stopped writing "Unknown" for local master browsers
we don't know.
nmbd_winsproxy.c: Deal with WINS_PROXY_NAME issues - don't reply
with that name if it's the same broadcast net.
Jeremy.
Luke Leighton [Tue, 16 Dec 1997 06:22:48 +0000 (06:22 +0000)]
*** empty log message ***
Herb Lewis [Tue, 16 Dec 1997 05:15:00 +0000 (05:15 +0000)]
fix bug in log file specification
Luke Leighton [Mon, 15 Dec 1997 03:33:53 +0000 (03:33 +0000)]
*** empty log message ***
Andrew Tridgell [Sun, 14 Dec 1997 18:45:51 +0000 (18:45 +0000)]
give out file handles differently on each new connection because of a
common bug in MS clients where they try to reuse a file descriptor
from an earlier smb connection. This code increases the chance that
the errant client will get an error rather than causing corruption
Andrew Tridgell [Sun, 14 Dec 1997 17:49:41 +0000 (17:49 +0000)]
allow name_type 0x20 as well as name_type 0x0 in dns proxying
Andrew Tridgell [Sun, 14 Dec 1997 17:48:55 +0000 (17:48 +0000)]
fix a bug that sometimes prevented smbclient from connecting with
protocol < LANMAN1
Luke Leighton [Sun, 14 Dec 1997 07:14:30 +0000 (07:14 +0000)]
*** empty log message ***
Jeremy Allison [Sat, 13 Dec 1997 14:16:07 +0000 (14:16 +0000)]
This is it ! The mega-merge of the JRA_NMBD_REWRITE branch
back into the main tree.
For the cvs logs of all the files starting nmbd_*.c, look
in the JRA_NMBD_REWRITE branch. That branch has now been
discontinued.
Jeremy.
Luke Leighton [Sat, 13 Dec 1997 03:51:55 +0000 (03:51 +0000)]
*** empty log message ***
Jeremy Allison [Fri, 12 Dec 1997 09:10:01 +0000 (09:10 +0000)]
Fixed bug reported by Gert-Jan Vons <Gert-Jan.Vons@ocegr.fr>
with doing a dir /s into a unix directory ending in a ':'.
Jeremy.
Luke Leighton [Fri, 12 Dec 1997 04:35:26 +0000 (04:35 +0000)]
*** empty log message ***
Jeremy Allison [Thu, 11 Dec 1997 12:25:01 +0000 (12:25 +0000)]
fixed over char 127 problems with isupper/islower.
Jeremy.
Christopher R. Hertel [Thu, 11 Dec 1997 11:44:18 +0000 (11:44 +0000)]
While working on a general-purpose caching module (out soon), I thought of
a better way to handle the node pointer array used in ubi_BinTree. The
change simplified the code a bigbunch. It also forced updates to all of
the binary tree modules. CRH
Jeremy Allison [Thu, 11 Dec 1997 11:07:09 +0000 (11:07 +0000)]
kanji.c: Patch from Anders Blomdell <anders.blomdell@control.lth.se>
for problem with kanji sj_strXXX functions.
Jeremy.
Luke Leighton [Thu, 11 Dec 1997 04:47:11 +0000 (04:47 +0000)]
*** empty log message ***
Luke Leighton [Wed, 10 Dec 1997 06:18:35 +0000 (06:18 +0000)]
*** empty log message ***
Luke Leighton [Wed, 10 Dec 1997 04:12:47 +0000 (04:12 +0000)]
*** empty log message ***
Luke Leighton [Tue, 9 Dec 1997 03:48:22 +0000 (03:48 +0000)]
*** empty log message ***
Luke Leighton [Mon, 8 Dec 1997 07:02:50 +0000 (07:02 +0000)]
*** empty log message ***
Luke Leighton [Mon, 8 Dec 1997 06:52:14 +0000 (06:52 +0000)]
*** empty log message ***
Herb Lewis [Thu, 4 Dec 1997 19:17:02 +0000 (19:17 +0000)]
fix typo in directory name
Jeremy Allison [Thu, 4 Dec 1997 18:39:08 +0000 (18:39 +0000)]
Added one more USA consultant.
Jeremy.
Luke Leighton [Thu, 4 Dec 1997 13:39:39 +0000 (13:39 +0000)]
modified client code to allow multiple tconX connections.
Andrew Tridgell [Thu, 4 Dec 1997 10:58:40 +0000 (10:58 +0000)]
catch signals in the async dns daemon and allow it to auto-restart if
necessary
Andrew Tridgell [Thu, 4 Dec 1997 08:10:49 +0000 (08:10 +0000)]
allow for zero size reads in asyncdns. These can happen after a signal
Andrew Tridgell [Thu, 4 Dec 1997 07:49:37 +0000 (07:49 +0000)]
got rid of the WRAP_MALLOC code - mem_man does it better
Andrew Tridgell [Thu, 4 Dec 1997 07:48:06 +0000 (07:48 +0000)]
added optonal MEM_MAN code
Andrew Tridgell [Thu, 4 Dec 1997 07:41:48 +0000 (07:41 +0000)]
don't use free and alloc as structure elements
Luke Leighton [Wed, 3 Dec 1997 16:14:38 +0000 (16:14 +0000)]
added an nltest command, which in future will do the same stuff as nltest.exe.
made the session key 16 bit not 8.
put the server password set obfuscation code into separate functions, so that
they can be dealt with in one place.
some bugs in the packet parsing (e.g SAM Logon response when there's an error)
i hope will not now stuff things when people send incorrect passwords...
Andrew Tridgell [Wed, 3 Dec 1997 14:17:38 +0000 (14:17 +0000)]
Makefile.lib does nothing, so remove it
Andrew Tridgell [Wed, 3 Dec 1997 05:54:51 +0000 (05:54 +0000)]
slight cleanup to the linked list handling
Andrew Tridgell [Wed, 3 Dec 1997 05:22:24 +0000 (05:22 +0000)]
put the default PRINTCAP_NAME def in includes.h not local.h so that
it can see the SYSV definitions
Andrew Tridgell [Wed, 3 Dec 1997 05:08:07 +0000 (05:08 +0000)]
applied a patch from Norm Jacobs to allow "printcap name = lpstat"
to use lpstat to obtain the printer list on systemV systems.
I've now made this the default on all SYSV systems.
Jeremy, you were a little worried about the security of this patch. I
believe it's OK as the user has no control over the options given to
popen() and the pipe is only open for reading.
Andrew Tridgell [Wed, 3 Dec 1997 04:20:39 +0000 (04:20 +0000)]
change the "username map" option to allow the user to stop the
processing part way through the file if a match is found. If a line
starts with ! and a match is made by that line then processing
stops. This allows better wildcard handling.
(patch from Anselm.Kruis@Physik.Uni-Muenchen.DE)
Andrew Tridgell [Wed, 3 Dec 1997 03:57:29 +0000 (03:57 +0000)]
allow local_machine and remote_machine (%L and %m macros) to contain
spaces
Jeremy Allison [Wed, 3 Dec 1997 03:50:05 +0000 (03:50 +0000)]
loadparm.c: Added lp_we_are_a_wins_server as an alias for lp_wins_support.
Used by the new nmbd and just makes more sense :-).
Jeremy.
Andrew Tridgell [Wed, 3 Dec 1997 03:46:43 +0000 (03:46 +0000)]
add a warning if the timezone is not a multiple of 1 minute. This
should catch broken timezone files in slackware linux.
Andrew Tridgell [Wed, 3 Dec 1997 03:43:05 +0000 (03:43 +0000)]
allow users to disable the NetWkstaUserLogon call in server level
security by changing a setting in local.h or adding it to their
Makefile. See comment in local.h
Andrew Tridgell [Wed, 3 Dec 1997 03:37:02 +0000 (03:37 +0000)]
make the "printing" option a per share option rather than global. When
printing to lots of different sorts of remote printers this is useful
Andrew Tridgell [Wed, 3 Dec 1997 03:21:25 +0000 (03:21 +0000)]
I'm slowly getting though the todo list :-)
This change allows people to select the SYSLOG_FACILITY in local.h, or
add it to the Makefile if they want to.
Andrew Tridgell [Wed, 3 Dec 1997 03:00:49 +0000 (03:00 +0000)]
hopefully handle "ready and waiting" messages in print queue output a
little better
Andrew Tridgell [Wed, 3 Dec 1997 02:27:50 +0000 (02:27 +0000)]
fix toupper(c) on a already uppercase char and tolower(c) on an
already lowercase char when using code pages. Jeremy, can you confirm
that this looks right? It comes from PR#1992
Andrew Tridgell [Tue, 2 Dec 1997 23:32:03 +0000 (23:32 +0000)]
fixed the help message for -p (someone complained!)
Andrew Tridgell [Tue, 2 Dec 1997 23:30:43 +0000 (23:30 +0000)]
add the null string to SMBsetatr calls
Andrew Tridgell [Tue, 2 Dec 1997 23:29:57 +0000 (23:29 +0000)]
changing the comment in find_new_file() to say why a base of 1 is used