John Terpstra [Mon, 13 Oct 1997 13:00:59 +0000 (13:00 +0000)]
JHT ==> Getting ready for 1.9.18alpha1.
examples/smb.conf.default:
added line "share modes = no" to netlogon share parameter list
packaging/redhat:
updated RedHat RPM build files.
added smbadduser script (modified for RHL).
(This used to be commit
69fad04198bfcbaaadcebd6c81efdb3612af5bc8)
Luke Leighton [Mon, 13 Oct 1997 12:55:07 +0000 (12:55 +0000)]
checked in a file with a compile error. oops!
(This used to be commit
28d96c7e6de19a28346d406ccc6fc8b00305903b)
Luke Leighton [Mon, 13 Oct 1997 12:21:56 +0000 (12:21 +0000)]
byteorder.h :
debugging output wasn't (still isn't) perfect.
credentials.c lsaparse.c smbparse.c :
added DEBUG strings.
pipes.c :
lost some changes, to do with setup of RPC headers. arg.
(This used to be commit
9fdd697d17b68293bb95fd68f44c24f0f5b97f5f)
John Terpstra [Mon, 13 Oct 1997 12:13:11 +0000 (12:13 +0000)]
JHT ==> Removed linefeed that caused problems.
(This used to be commit
534b4c6d371eff6fdbcbcf5fafa3b79d3116b544)
Luke Leighton [Mon, 13 Oct 1997 11:15:46 +0000 (11:15 +0000)]
align_offset() adjusted pointer to wrong location. oops.
(This used to be commit
ba28678e3f673cd10d936f59ff0df6a852aca793)
Andrew Tridgell [Mon, 13 Oct 1997 00:03:37 +0000 (00:03 +0000)]
updated the "comment =" entry a bit
updated the fake oplocks entry a bit
(This used to be commit
60bb523c8a67065d0ede732e1c153f37a8a865b6)
Luke Leighton [Sun, 12 Oct 1997 19:02:55 +0000 (19:02 +0000)]
getting somewhere.
ipc.c :
removed srvsvc pipe reference: have to do that.
pipes.c lsaparse.c smbparse.c :
more debugging info. looks a bit like netmon output.
(This used to be commit
e02aa88e25ae6d4da7953aaff04ff2ae9a656d05)
Luke Leighton [Sun, 12 Oct 1997 17:07:35 +0000 (17:07 +0000)]
updated rpc header reply: callid wrong; alloc hint a uint32 not a uint16.
still doesn't get rid of the netlogon trans2 request with zero data.
(This used to be commit
0cf67955f09d99c452bfc3fdde00dcea98e21db1)
Luke Leighton [Sun, 12 Oct 1997 14:17:55 +0000 (14:17 +0000)]
ipc.c:
debugging info. found that data = NULL because of short packet length
indicated from the ntlsaRPC pipe _royally_ stuffs NT's packet handling.
maybe this should go down as a service denial bug to the ntbugtraq list.
pipes.c lsaparse.c smbparse.c :
added more debug stuff. added length of header to data_len in MSRPC
fragment_length field (0x18 bytes short) which caused the above bug
from NT 4.0. oops.
(This used to be commit
a6f8de6815e0b85bb23b302980730501ac0b87e5)
Luke Leighton [Sun, 12 Oct 1997 11:46:42 +0000 (11:46 +0000)]
added debugging macros (suitable eventually for use in tcpdump, hopefully)
(This used to be commit
946d73cf838976b905550288cac3aea7c43959f6)
Samba Release Account [Sun, 12 Oct 1997 04:40:48 +0000 (04:40 +0000)]
Added Finland ftp mirror (PR#175) (Paul)
(This used to be commit
b1ba290f2ee8c4317e0daf7b6ae18caa82331cc2)
Andrew Tridgell [Sun, 12 Oct 1997 03:48:47 +0000 (03:48 +0000)]
remove { and } from the list of illegal characters in filenames. The
CIFS3 spec does not list them as illegal.
This allows things like the control panel icon to be placed on a Samba
drive.
(This used to be commit
d2ac9e6fb6e76778154c58217237251d7bb0e98c)
John Terpstra [Sat, 11 Oct 1997 16:03:21 +0000 (16:03 +0000)]
JHT ==> Luke, your forgot to change the modified date!
(This used to be commit
1e2fe7c0db0386cb6a007b11ceae53d04e9b8658)
Luke Leighton [Sat, 11 Oct 1997 15:10:57 +0000 (15:10 +0000)]
namelogon.c :
added NTLOGON. (fixed the case 0:)
namepacket.c:
call to NTLOGON mailslot
nameserv.h
defines for NETLOGON and NTLOGON mailslot
util.c:
added andrew's dump_data() function.
(This used to be commit
1eaad1c99463dcd42eb8ff4ea5686ad9ec6fc42e)
Samba Release Account [Sat, 11 Oct 1997 03:53:53 +0000 (03:53 +0000)]
updated Sunsite UK. (Paul)
(This used to be commit
15a987b9b84293e0c921388b63519e0cf320601f)
Samba Release Account [Sat, 11 Oct 1997 02:50:55 +0000 (02:50 +0000)]
Updated mirrors, combined Sources and Sources&Binaries as our binaries
are now with our sources.
Have requested that mirror sites remove the old 'binaries' tree.
Paul.
(This used to be commit
453a543f2ab6b18d505ea6bfc749dc127ab602cf)
Luke Leighton [Fri, 10 Oct 1997 19:49:17 +0000 (19:49 +0000)]
Luke Leighton [Fri, 10 Oct 1997 19:48:51 +0000 (19:48 +0000)]
added api_lsa_sam_logon() and api_sam_logoff(). that's it. lots of
run-time debugging, now.
(This used to be commit
75f32987d8599d10b294dc4e0c0160eecda7296b)
Luke Leighton [Fri, 10 Oct 1997 18:03:30 +0000 (18:03 +0000)]
added lsa_reply_srv_pwset()
(This used to be commit
0d043cfef289ee82287bb6014a164ba83ca87f30)
Luke Leighton [Fri, 10 Oct 1997 16:40:23 +0000 (16:40 +0000)]
ipc.c :
#if NTDOMAIN
call to api_netlogRPC
#endif
lsaparse.c :
renamed lsa_io_q_auth2 to lsa_io_q_auth_2.
pipes.c :
added api_lsa_reply_auth_2() and api_netlogRPC.
proto.h :
the usual.
(This used to be commit
e2e1979b6215080593728942d414a273505877df)
Christopher R. Hertel [Fri, 10 Oct 1997 16:12:27 +0000 (16:12 +0000)]
I have to admit that I'm not very good at writing Makefiles.
This one will simply create an object file from each of the .c files
in the directory. These could be linked into a static library, but
I'm not sure that this is worthwhile. If anyone wants to improved on
what I've got here, please do! crh -)-----
(This used to be commit
5e521438292472c816527d4ee7c6dff7e3c217ea)
Luke Leighton [Fri, 10 Oct 1997 14:48:05 +0000 (14:48 +0000)]
Makefile:
added credentials.c to smbd
credentials.c:
using credential structures instead of char*
password.c uid.c server.c:
added sid and attr to user_struct.
smbdes.c:
smbhash and str_to_key make public instead of private.
pipes.c smb.h:
lsa structures, sub-functions.
proto.h:
usual.
(This used to be commit
87a0a944855a673d693d934e446bdc231b1c7f02)
Christopher R. Hertel [Fri, 10 Oct 1997 14:46:43 +0000 (14:46 +0000)]
This is the ubiqx binary tree and linked list library.
This library is being included as part of the Samba distribution.
(Hurray!)
(This used to be commit
3590a783338defa4ff1385b2d5bb095c5051ac82)
Christopher R. Hertel [Fri, 10 Oct 1997 14:13:48 +0000 (14:13 +0000)]
After generating some discussion, listening to the opinions, and thinking
about it for a while, I've decided to move the tree & list code into a
separate subdirectory.
(This used to be commit
6fffcff57d20690546a545ddd95a5d3d2c329715)
Christopher R. Hertel [Fri, 10 Oct 1997 14:12:22 +0000 (14:12 +0000)]
After generating some discussion, listening to the opinions, and thinking
it over, I've decided to move the tree & list code into a subdirectory.
CRH
(This used to be commit
d8d063d29b52697070efb182d573d519e13c2e53)
Luke Leighton [Fri, 10 Oct 1997 11:52:09 +0000 (11:52 +0000)]
corrected paragraph giving the impression that samba can be a domain master
for multiple workgroups.
(This used to be commit
37a8a5c4c69f051fa1b60f85db1f0ea6360bbba2)
Andrew Tridgell [Fri, 10 Oct 1997 02:32:01 +0000 (02:32 +0000)]
fixed the log wrapping bug.
This is a very nasty bug that I think explains quite a few
intermittent problems people have been having with Samba.
It may be worth checking on other cases where errno can be overwritten
by seemingly innocuous things (in this case a DEBUG() line)
(This used to be commit
1448f528b60402170257c1cdf6831cc40b4c86c9)
Jeremy Allison [Fri, 10 Oct 1997 01:32:26 +0000 (01:32 +0000)]
nmblookup.c: Added -A ability to do status on ip address.
smb.h: Added defines we will need for NT SMB calls.
trans2.c: Fixed SMB_QUERY_FILE_ALT_NAME_INFO return - this is only
for short name returns (and only used when you negotiate NT SMB calls
to boot !).
Jeremy (jallison@whistle.com)
(This used to be commit
53915bd160eda8c099482ddcef74d1d7606e752b)
Jeremy Allison [Thu, 9 Oct 1997 20:30:29 +0000 (20:30 +0000)]
Added in oplock info.
Jeremy (jallison@whistle.com)
(This used to be commit
229b6c409240a8dca9172702b8fefb31aa3b13a1)
Jeremy Allison [Thu, 9 Oct 1997 18:48:12 +0000 (18:48 +0000)]
Added definition of oplocks parameter.
Jeremy (jallison@whistle.com)
(This used to be commit
f9df5ac008e368af86addee058f75c7e79ca74ce)
Jeremy Allison [Thu, 9 Oct 1997 18:40:52 +0000 (18:40 +0000)]
local.h: Fix spelling mistake :-).
namedbsubnet.c: Stop registering 1x name unless we can be a local master.
reply.c: Remove ERRbaddirectory code.
server.c: Remove abort() - use exit_server() instead.
trans2.c: Remove ERRbaddirectory code.
Jeremy (jallison@whistle.com)
(This used to be commit
76247228896d39312ba896fa229076be3271e2e4)
Luke Leighton [Thu, 9 Oct 1997 16:14:53 +0000 (16:14 +0000)]
added #ifdef NTDOMAIN. added call to api_ntLsarpc instead of api_Lsarpc
in ipc.c iff NTDOMAIN is defined.
(This used to be commit
7bc4c4c27bf18ce3f632d230dc919ea341b5abb0)
Luke Leighton [Thu, 9 Oct 1997 15:51:43 +0000 (15:51 +0000)]
moved the array macros outside of the CAREFUL_ALIGNMENT define.
(This used to be commit
d9fcf11aa04ff04dcbccd628322240f8324ae51d)
Luke Leighton [Thu, 9 Oct 1997 15:48:40 +0000 (15:48 +0000)]
pipes.c:
added api_ntlsarpcTNP() function. hooray!
smb.h:
added LSA #defines needed by above function.
(This used to be commit
5437f666987918516032cf8a5dada107e5d14d25)
Luke Leighton [Thu, 9 Oct 1997 14:40:46 +0000 (14:40 +0000)]
credentials.c:
use UTIME structure (defined and commented in smb.h to be time, secs,
since 01jan1970)
pipes.c:
another sub-function.
util.c:
added char *unistr2(uint16 *buff) function. same as unistr except
it takes uint16* instead of char*.
smbparse.c smb.h:
more structure sorting.
proto.h:
the usual.
(This used to be commit
72a86f514f0c92b69499718e63f5dd73ebece56e)
John Terpstra [Thu, 9 Oct 1997 11:24:39 +0000 (11:24 +0000)]
JHT ===> Added smbadduser contributed by Mike Zakharoff.
(This used to be commit
135d054e831cd0f5962acc05d03b38360b73827e)
Andrew Tridgell [Thu, 9 Oct 1997 10:01:12 +0000 (10:01 +0000)]
an implementation of the NT domain credentials protocol
(This used to be commit
dd6ac9b1eea3b0ace27fbd014b5ad4625c1fdf94)
Andrew Tridgell [Thu, 9 Oct 1997 06:36:04 +0000 (06:36 +0000)]
bracket some macros
change MAX_PASSWORD_LENGTH to MAX_PASS_LEN to prevent conflict on some
systems
add #ifdef around soft link dependent code (for systems that don't
have soft links)
(This used to be commit
e10ba4b97a219e87b62d32834bf15ed2e323ed2e)
Christopher R. Hertel [Thu, 9 Oct 1997 04:09:56 +0000 (04:09 +0000)]
This is my library of lists and trees. My hope is to replace all of the
hard coded linked lists that are currently used in Samba with calls to
these modules. This should make the code simpler, smaller, and (I hope)
faster. The tree code, in particular, should speed up processing where
large lists are involved.
Chris -)-----
(This used to be commit
e789179dfda669bd768720cb3732cf56a49027b5)
Jeremy Allison [Wed, 8 Oct 1997 22:23:47 +0000 (22:23 +0000)]
Put in fix for read-prediction extending files bug. Hard to test, can't
get read-prediction to happen :-).
Jeremy (jallison@whistle.com)
(This used to be commit
fa69b3dda47d56e0c3ce1f4f284eac89d4b4bf56)
Luke Leighton [Wed, 8 Oct 1997 21:36:42 +0000 (21:36 +0000)]
added a dummy function (space in front so make proto doesn't pick it up)
to call the unused static functions in pipes.c. avoids need to move
#if UNDEFINED_NTDOMAIN about, to stop compiler warnings while code is
being developed, but might be released as-is.
(This used to be commit
d7f41e3815babce58fa9901f076c2918666abaf9)
Jeremy Allison [Wed, 8 Oct 1997 20:34:13 +0000 (20:34 +0000)]
Makefile: Split definitions for SGI4,5,6.
includes.h: Split definitions for SGI4,5,6.
pipes.c: Moved Luke's #ifdef to remove warnings.
quotas.c: Two changes for FreeBSD and SGI.
server.c: Quota changes for large filesystems.
Jeremy (jallison@whistle.com)
(This used to be commit
b8ff5543b9fa45095caa9f24aeb22a1dcc1cd308)
Luke Leighton [Wed, 8 Oct 1997 18:36:34 +0000 (18:36 +0000)]
added api_lsa_lookup_sids() function
(This used to be commit
35dd48740d8f733e7725813322b094b4679b31c5)
Luke Leighton [Wed, 8 Oct 1997 17:12:07 +0000 (17:12 +0000)]
loadparm.c proto.h:
added lp_domainsid()
lsaparse.c smb.h:
debugging structures and parsing functions
pipes.c:
finally got to the functions that will go into the RPC switch statement.
(This used to be commit
d15aed8a9c58a7cc90befaee2d5a2752708f9327)
Luke Leighton [Wed, 8 Oct 1997 11:47:46 +0000 (11:47 +0000)]
updating lsaparse.c and smbparse.c in line with changes to pipes.c and smb.h
from yesterday.
(This used to be commit
0b7049fae25957851a7f33d2bd500d8ecefc1ad5)
Jeremy Allison [Wed, 8 Oct 1997 00:21:39 +0000 (00:21 +0000)]
ipc.c: Added ERROR_MORE_DATA error if client buffer too small.
server.c: Allow admin_user on read only shares. I think this is
safe but it needs looking at.
Jeremy (jallison@whistle.com)
(This used to be commit
cc50955a2760f1de7e80b91408a7c0806f6eb44c)
Christopher R. Hertel [Tue, 7 Oct 1997 22:04:05 +0000 (22:04 +0000)]
I rewrote the name_mangle() and name_len().
The interface is the same, but I've simplified the code a bit and added
a few comments. I tested the changes and the output is the same as that
produced by the original (at least, it was in all of my tests). CRH
(This used to be commit
707d0ec388c0045938f367e1d17919bfc8637fea)
Jeremy Allison [Tue, 7 Oct 1997 18:46:19 +0000 (18:46 +0000)]
locking.c: Added fix for race condition in slow share mode code.
lsaparse.c: #ifdef'ed out code so this will compile - LUKE PLEASE CHECK THIS.
pipes.c: #ifdef'ed out code so this will compile - LUKE PLEASE CHECK THIS.
server.c: Fixed last known oplock race condition.
smb.h: Re-removed USE_OPLOCK defines - someone checked in an old version.
smbparse.c: #ifdef'ed out code so this will compile - LUKE PLEASE CHECK THIS.
Jeremy (jallison@whistle.com)
(This used to be commit
1e1366ddc5542283a37debdf830ca139bbade1b0)
Luke Leighton [Tue, 7 Oct 1997 18:18:10 +0000 (18:18 +0000)]
pipes.c:
more static unused functions in pipes.c for the LSA RPC stream.
smb.h:
corrections and altercations over the documentation
lsaparse.c:
reflecting alterations in LSA structures...
(This used to be commit
bef12478d212a950578843d6d4dece1f153bfd25)
John Terpstra [Tue, 7 Oct 1997 16:01:08 +0000 (16:01 +0000)]
JHT ==> Fixing blocksize argument. Patch by: Llyod Whiteman
<lwhitman@stm2.nrl.navy.mil>
(This used to be commit
67c1e87e8fda724da6dd3663641639167dd33a16)
Luke Leighton [Tue, 7 Oct 1997 14:58:07 +0000 (14:58 +0000)]
pipes.c:
some routines to create LSA RPC packets. none of them are used.
lsaparse.c:
smbparse.c:
smb.h:
more tidy-up.
(This used to be commit
b37e21273e81b875876e8e8ddf6804714044ffd8)
Andrew Tridgell [Tue, 7 Oct 1997 14:36:22 +0000 (14:36 +0000)]
increase the debug level in the "added interface" debug line
(This used to be commit
b12b3626fd9ccc9cdf2111937b3ee344da361b1f)
Andrew Tridgell [Tue, 7 Oct 1997 11:14:27 +0000 (11:14 +0000)]
get rid of SIGCLD_IGNORE for HPUX. A user reported it causing lots
of defunct smbd processes.
Andrew
(This used to be commit
bf1f8b1567cb46e3e73ae8dbb26f6228cf519c1f)
Samba Release Account [Tue, 7 Oct 1997 04:56:02 +0000 (04:56 +0000)]
More references to samba.canberra
Mental note: always commit from root directory. :^o
Paul.
(This used to be commit
5a38eaac75a6bede2d946f69cf664d7ca3989b55)
Samba Release Account [Tue, 7 Oct 1997 04:50:53 +0000 (04:50 +0000)]
Oops forgot to run the sgml converters that one last time.
All done.
Paul.
(This used to be commit
9a81cb171c178a85ecd045afafbce7d4b481344e)
Samba Release Account [Tue, 7 Oct 1997 04:47:23 +0000 (04:47 +0000)]
Removed samba.faq from the docs directory, it was out of date. All FAQs in
docs/faq.
Replaced all reference to samba.canberra.edu.au/pub/samba/samba.html
with samba.anu.edu.au/samba/
Replaced references to ictinus@lake.canberra.edu.au
with ictinus@samba.anu.edu.au
Added 3 new mirrors, Greece, Poland, Romania
Paul.
(This used to be commit
d808df8191cdf21b011e773e6e99b0c65524253c)
Jeremy Allison [Mon, 6 Oct 1997 19:50:51 +0000 (19:50 +0000)]
Finally ! Found & fixed crash bug with logging message when deleting
invalid share mode entries. Thanks to berg@wienrg.aut.alcatel.at (Dietmar Berg)
for the stack backtrace.
Jeremy (jallison@whistle.com)
(This used to be commit
db4c2cb50e11d252ff3ba0e0973767e909dd33bd)
Jeremy Allison [Mon, 6 Oct 1997 17:52:25 +0000 (17:52 +0000)]
client.c: Changed shadowed variable.
locking.c: Removed USE_OPLOCKS - now the default.
params.c: Removed unused variable.
proto.h: Updated.
reply.c: Removed USE_OPLOCKS - now the default.
server.c: Removed USE_OPLOCKS - now the default.
smb.h: Removed USE_OPLOCKS - now the default.
smbparse.c: Changed shadowed variable.
status.c: Removed USE_OPLOCKS - now the default.
util.c: Removed USE_OPLOCKS - now the default.
Jeremy (jallison@whistle.com)
(This used to be commit
b93509846d6291771787af457500eec8984ee6bd)
Luke Leighton [Mon, 6 Oct 1997 14:52:26 +0000 (14:52 +0000)]
lsaparse.c smb.h: added 32 bit "return status" to the response structures.
(This used to be commit
5bc75c6c626251dc8ba04ff4a83e81b92d93d2d6)
Luke Leighton [Mon, 6 Oct 1997 13:30:54 +0000 (13:30 +0000)]
Makefile: added lsaparse.c and smbparse.c
lsaparse.c, smbparse.c, smb.h: more functions / structures.
proto.h: the usual.
(This used to be commit
a1c718728c46ebf8916af8985b4dae4d099f4ec2)
Luke Leighton [Sun, 5 Oct 1997 14:17:53 +0000 (14:17 +0000)]
updating lsa and smb parsing routines and structures.
(This used to be commit
2f722fe289051558dbe77aeb0a830bb3ded10a83)
Luke Leighton [Sun, 5 Oct 1997 12:39:51 +0000 (12:39 +0000)]
processes LSA queries and responses to/from RPC data stream into structures.
(This used to be commit
369f7d41d6ff6d2b9b8c1e0cac99d0f0d03410b0)
Luke Leighton [Sun, 5 Oct 1997 11:56:08 +0000 (11:56 +0000)]
smb.h:
added more structures, this time for the use in the query and response
of the LSA_XXXX functions. next target: the NTLOGON mailslots (10 minutes
work).
smbparse.c:
tidying. adding some more sub-structure functions.
(This used to be commit
095edfca783a6f99eb7897d4c925ce8bc1ea0a3e)
Luke Leighton [Sat, 4 Oct 1997 16:51:43 +0000 (16:51 +0000)]
proto.h:
- recreated, as usual.
smb.h:
- added RPC_HDR structure - the 18 byte MSRPC header
smbparse.c:
- added smb_io_rpc_hdr() function to read/write the RPC_HDR structure.
util.c:
- added align2, align4, align_offset functions.
- added skip_unicode_string, unistrcpy, unistrncpy functions.
- modified unistrcpy and unistrncpy to return the number of unicode
characters returned, effectively making skip_unicode_string redundant.
(This used to be commit
b0ad811cda3dcffed5b24104229813cdb17b014f)
Luke Leighton [Sat, 4 Oct 1997 16:42:09 +0000 (16:42 +0000)]
added some RW_XXXX wrapper macros with an extra i/o argument, to call XXXX
or SXXXX as appropriate.
added some for-loop pointer macros that will do a batch of data into a
(fixed length) buffer. no length validation is done in the macro itself.
note: there are some CAREFUL_ALIGNMENT macros missing. i think.
(This used to be commit
b0ffd75acfd3660512cccecdf50a183c3abccfcb)
Luke Leighton [Sat, 4 Oct 1997 16:26:02 +0000 (16:26 +0000)]
added structures readable and writeable by smbparse.c routines into and out
of SMB or Mailslot packets.
(This used to be commit
4b3f9b281b3b1c1064992d19fef1d782dc6f1ff1)
Luke Leighton [Sat, 4 Oct 1997 16:10:21 +0000 (16:10 +0000)]
packet parsing routines. for use in SMB and Mailslots
(This used to be commit
297d5ef46ccba99596610c4c6a09399af665f2cf)
Andrew Tridgell [Sat, 4 Oct 1997 05:24:02 +0000 (05:24 +0000)]
fix some "shadows global" errors.
(This used to be commit
25b7ada3587d1fe68164a2339d7f0fbcecf18e53)
Andrew Tridgell [Sat, 4 Oct 1997 05:21:47 +0000 (05:21 +0000)]
a bit of bounds checking
(This used to be commit
d40199f4fe1344058267859820cb36b77a20442a)
Andrew Tridgell [Sat, 4 Oct 1997 05:21:14 +0000 (05:21 +0000)]
a little hack to smbclient to support extracting NT error codes
(This used to be commit
0eb9a590430c328e6ebc46ff8ab05f181921769a)
Andrew Tridgell [Sat, 4 Oct 1997 05:19:24 +0000 (05:19 +0000)]
This is all the NT error codes less than 1000. I extracted them using
smbclient+netmon
If we want to start supporting NT error codes in Samba (which may be
forced upon us by buggy apps) then this is a good start.
(This used to be commit
20bfde40b20f43cf8c6714ab9fb5a3fd17bc1575)
John Terpstra [Sat, 4 Oct 1997 02:57:14 +0000 (02:57 +0000)]
JHT ===> Added Sun Solaris binary package building spec files contributed
by Tim Towers <tim@lorien.demon.co.uk>. Note: Not yet checked.
(This used to be commit
332f78bbc945c327069e9c9e29c7137c8cbd5c02)
Christopher R. Hertel [Sat, 4 Oct 1997 01:07:47 +0000 (01:07 +0000)]
nmblookup.c:
I've added a -r option. When specified, nmblookup will attempt to bind
to port 137. In order for this to work, the user must be root and the
port must be available (i.e., nmbd not running). If either condition is
not met, nmblookup will default to normal behavior; it will try to bind
to a free port above 7999. I also removed an artifact. The -p <port>
option was being accepted but falling through to the default, which was
the usage message. I removed "p:" from the getopt() list.
params.c:
Rewritten. The scanning is much more linear, and I found and fixed a
few bugs. I don't like the way that the scratch buffer is handled,
but I believe that it is an improvement over the previous version.
Chris -)-----
(This used to be commit
09dc951f2acd67da9d895e8e00c01e7abbbe0960)
Jeremy Allison [Sat, 4 Oct 1997 00:23:57 +0000 (00:23 +0000)]
Race condition with multiple oplock break requests happens
more often than you might think (reproduced here with 4 clients
and netbench :-).
Raising debug log level for report from 1 to 3.
Jeremy (jallison@whistle.com)
(This used to be commit
23eeab7aa2e9c935e1f48ce3449544c03c1c899f)
Jeremy Allison [Fri, 3 Oct 1997 23:45:34 +0000 (23:45 +0000)]
Making it harder for share_mode_entries to be left with
non-zero op_type fields. Paranoia code really.
Jeremy (jallison@whistle.com)
(This used to be commit
21ecb46f56ac0f341803d0552c981e517d0322cb)
Jeremy Allison [Fri, 3 Oct 1997 20:36:06 +0000 (20:36 +0000)]
locking.c: Fixed incorrect parameter count in debug statements. May explain
solaris crashes.
reply.c: Added NT specific error code. Put oplock break code in correct place
in reply_lockingX.
server.c: Removed unneeded error mapping stuff.
Fixed race condition in oplock code.
trans2.c: Added NT specific error code.
util.c: Added paranoia check in interpret_addr. Some core dumps
reported here. Upped fcntl debug levels.
Andrew. Please check the NT specific error code handling (search
for the string "/* Ugly - NT specific hack - but needed (JRA) */",
this makes NT and 95 clients behave correctly here - please check
your Visual Basic apps with this code.
Jeremy (jallison@whistle.com).
(This used to be commit
97ee4a5f69bd9cfbbc8710a1a04d80db0ee40104)
Andrew Tridgell [Fri, 3 Oct 1997 03:34:19 +0000 (03:34 +0000)]
add "static" to a couple of functions that are only used locally.
set granted_oplock=False at the start of open_file(). This is
paranoia.
(This used to be commit
c7f09ffd4a00ef7266e3f54536ee6aaca9335fb8)
Jeremy Allison [Fri, 3 Oct 1997 03:15:24 +0000 (03:15 +0000)]
proto.h: Updated.
server.c: Updated after netbench observation. Oplocks must be
broken *before* share modes are checked, not after. Netbench seems
to be working now.
smb.h: Added offsets for oplock break time fields.
trans2.c: Upped debug messages.
util.c: Upped debug messages.
Jeremy (jallison@whistle.com)
(This used to be commit
bc4b70c566ed5fa926441fb64a0f756a6137d8d0)
Andrew Tridgell [Thu, 2 Oct 1997 14:11:34 +0000 (14:11 +0000)]
change a debug level in reply.c
change from ERRbaddirectory to ERRbadpath for ENOTDIR errors. This
reverts to the old Samba code. I've done quite a bit of testing
against NT4 and have yet to get it to produce the ERRbaddirectory
error code. Producing ERRbaddirectory made a visual basic application
that was sent to me not run. This might explain some of the "it
doesn't work any more" complaints we've got about 1.9.17.
Jeremy, can you remember how you got NT to produce ERRbaddirectory?
There might be some specific circumstances we need to cover.
(This used to be commit
1ed901ddffef48cdce87017bab0fd613e6ca8637)
Jeremy Allison [Thu, 2 Oct 1997 03:26:07 +0000 (03:26 +0000)]
Added debug message for oplock_break().
Jeremy (jallison@whistle.com)
(This used to be commit
4f29dfbc791f1f08c8c44a6fbdd0bc31892455dd)
Andrew Tridgell [Thu, 2 Oct 1997 03:14:32 +0000 (03:14 +0000)]
change the semantics of hosts allow/hosts deny so that a global
setting applies to all shares regardless of any settings on other
shares. This allows us to immediately drop a connection if it does not
come from a allowed host, without even parsing the first SMB
packet. The next time we get a nasty security hole we can offer people
the option of just setting their hosts allow line.
If we drop a connection in this way we generate a "Not listening for
calling name" response and then exit.
add a per share "oplocks" option in smb.conf. I think its important to
be able to disable oplocks on a per-share basis as there are occasions
then they are definately not wanted, for example when sharing data
between a windows box and a unix application. This also allows us to
tell people "try disabling oplocks" when diagnosing problems.
fix a bug in process_smb(). It was taking the length of the packet
from outbuf, not inbuf (this bug was introduced with the oplocks
code). Jeremy, I assume this wasn't deliberate?
(This used to be commit
44bc9f239aa0b3cdf6cf9ad8d3911e397eba7335)
Jeremy Allison [Thu, 2 Oct 1997 02:36:11 +0000 (02:36 +0000)]
Modified some debug messages, moved from 5 -> 8.
Jeremy (jallison@whistle.com)
(This used to be commit
cb83c74a6ccfc44721af65b75625a949782c758a)
Jeremy Allison [Thu, 2 Oct 1997 00:57:59 +0000 (00:57 +0000)]
Fixed problem with oplock_type being set with no port.
Jeremy (jallison@whistle.com)
(This used to be commit
90484db0bfe25a096def627f94be24f3fa243375)
Jeremy Allison [Wed, 1 Oct 1997 23:32:22 +0000 (23:32 +0000)]
OPLOCK CHECK-IN - oplocks are now *OPERATIONAL* !!!!
Yipeee. At least as far as I can check in a short time :-).
local.h: Changed OPLOCK_BREAK_TIMEOUT to 30 seconds.
locking.c: Big changes to delete oplocks on a share mode entry.
proto.h: updated.
reply.c: Added oplock break code in lockingX reply & readbraw reply.
server.c: Add batch oplock code. Force server shutdown if client fails
to respond to oplock break.
smb.h: Fix silly slow share mode oplock define bug.
status.c: Add oplock status info.
Jeremy (jallison@whistle.com)
(This used to be commit
4c83d37239f15f855fc10f01d7b4bf4217fb9eda)
Jeremy Allison [Tue, 30 Sep 1997 16:58:52 +0000 (16:58 +0000)]
Changed consultant list.
Jeremy (jallison@whistle.com)
(This used to be commit
6dbe5ad80ff368efdd81ec92d71d7567595157f1)
Jeremy Allison [Tue, 30 Sep 1997 02:38:19 +0000 (02:38 +0000)]
dir.c: more pstrcpys.
local.h: Add OPLOCK_BREAK_TIMEOUT.
password.c: Fix for paranoia password server security bug.
proto.h: Updated.
reply.c: Oplock changes.
server.c: Massive oplock changes - nearly there....
smb.h: oplock definitions.
util.c: Add local message processing queues for oplocks.
Jeremy (jallison@whistle.com)
(This used to be commit
92f1553db2cdf6f32881eb984a87050cf3e4760b)
Jeremy Allison [Fri, 26 Sep 1997 19:40:12 +0000 (19:40 +0000)]
Fixed you're -> your text that some pedant complained about :-).
Jeremy (jallison@whistle.com).
(This used to be commit
b11833f1bdecf1c3c3e5bc7494741605cba92a1e)
Jeremy Allison [Fri, 26 Sep 1997 19:26:56 +0000 (19:26 +0000)]
Syncing up current oplock work in progress. #ifdef'ed out
so should have no effect on other work.
Jeremy (jallison@whistle.com)
(This used to be commit
7e3d4c8b21f63a06d32605d230129e36883ad08c)
Jeremy Allison [Fri, 26 Sep 1997 19:23:26 +0000 (19:23 +0000)]
Correctly rolled back interface.c (I was working on an older
revision). This will now be the current revision.
Jeremy (jallison@whistle.com)
(This used to be commit
eb55ddd5bff1c6f95292215a8c53acb6bfdadeb2)
Jeremy Allison [Fri, 26 Sep 1997 18:55:29 +0000 (18:55 +0000)]
Adding Andrews buffer overflow fixes into the main branch.
Jeremy (jallison@whistle.com)
(This used to be commit
e7eb1f044d3101679dc7a118820ea5efe0cd837c)
Andrew Tridgell [Fri, 26 Sep 1997 09:06:51 +0000 (09:06 +0000)]
add error string reporting to clitar
(This used to be commit
2c5587a6fe425b1cc57cf28e92e77ba84f08ce33)
Jeremy Allison [Thu, 25 Sep 1997 17:36:21 +0000 (17:36 +0000)]
Added missing slow share mode offset defines. Somehow
they got lost.
Jeremy (jallison@whistle.com).
(This used to be commit
ce9cdc2f6175e4a6195f8875360cd945ae60052c)
Jeremy Allison [Thu, 25 Sep 1997 00:25:44 +0000 (00:25 +0000)]
Makefile: Removed earlier errors.
includes.h: Added INADDR_LOOPBACK define.
locking.c: More code to support oplocks.
proto.h: Updated.
server.c: More code to support oplocks. Moved processing of an SMB out of
process() into a separate function so it is easier to call from an oplock
break.
smb.h: Added oplock fields.
Jeremy (jallison@whistle.com)
(This used to be commit
f46dbaf08eb8e06a7545d2c19dce9e2dda9dcc78)
Jeremy Allison [Tue, 23 Sep 1997 19:19:06 +0000 (19:19 +0000)]
Checkin to sync up oplock development code so that NT
domain development code won't diverge.
Makefile: Fixed make proto (again). Added GLIBC2 fixes for Linux.
includes.h: Added GLIBC2 fixes for Linux.
proto.h: Much tidier.
quotas.c: OSF/1 quota fix.
reply.c: Fix from Ray Frush <frush@engr.colostate.edu> for zero NT timestamps.
server.c util.c: First oplock checkin - nowhere near finished so bracketed
with #ifdef USE_OPLOCKS. Done to make sync with NT domain code easier.
Jeremy (jallison@whistle.com)
(This used to be commit
7dce7d84473beb5663b14a8ab32781970819c19d)
Luke Leighton [Tue, 23 Sep 1997 16:09:12 +0000 (16:09 +0000)]
added code from Philip A Prindeville <philipp@enteka.com> which expands
the interfaces option to this:
"interfaces = le0 le1" or "interfaces = all".
it uses SIOCGIFxxxx ioctl calls.
(This used to be commit
39071415ba6f8a00e2909e443261d0059fe27e82)
Jeremy Allison [Fri, 19 Sep 1997 17:40:11 +0000 (17:40 +0000)]
smbclient.1: Added documentation of the username%password environment code.
smb.conf.5: Added 'username level' docs.
Jeremy (jallison@whistle.com)
(This used to be commit
b588615b201fda404c09637b344e9823443ce396)
Jeremy Allison [Fri, 19 Sep 1997 17:12:08 +0000 (17:12 +0000)]
Makefile: Changed proto: target to not include c files not used currently.
Caused proto.h to be from a sorted list of C files.
arcfour.h: Added prototypes.
client.c: Added username%password in environment patch from John Blair <jdblair@frodo.tucc.uab.edu>
loadparm.c: Added username manipulation code from Peter McCool [SMTP:peter@qimr.edu.au]
username.c: Added username manipulation code from Peter McCool [SMTP:peter@qimr.edu.au]
mkproto.awk: Added arc4_key type.
proto.h: Updated & sorted.
Jeremy (jallison@whistle.com)
(This used to be commit
97ed4fea67095dfb83227e7b5fffc236ff277e02)
Jeremy Allison [Fri, 19 Sep 1997 00:36:01 +0000 (00:36 +0000)]
Another South American consultant.
(This used to be commit
eeb0e883536954adb090269a520a913b1676d59c)
Jeremy Allison [Thu, 18 Sep 1997 19:56:57 +0000 (19:56 +0000)]
Added arcfour code needed for SMB password changing.
Jeremy (jallison@whistle.com)
(This used to be commit
8bc3d13b3d66fc533d5bc6abf3fc9d5c67d0f286)
Luke Leighton [Thu, 18 Sep 1997 12:47:55 +0000 (12:47 +0000)]
added timestamp to "Denied connection" message.
(This used to be commit
f28b14a86c22c3bad187ca57f03e13da795d4136)