summaryrefslogtreecommitdiff
path: root/source3
AgeCommit message (Collapse)AuthorFilesLines
1997-10-09local.h: Fix spelling mistake :-).Jeremy Allison5-6/+17
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)
1997-10-09added #ifdef NTDOMAIN. added call to api_ntLsarpc instead of api_LsarpcLuke Leighton3-981/+11
in ipc.c iff NTDOMAIN is defined. (This used to be commit 7bc4c4c27bf18ce3f632d230dc919ea341b5abb0)
1997-10-09moved the array macros outside of the CAREFUL_ALIGNMENT define.Luke Leighton1-2/+9
(This used to be commit d9fcf11aa04ff04dcbccd628322240f8324ae51d)
1997-10-09pipes.c:Luke Leighton2-82/+1131
added api_ntlsarpcTNP() function. hooray! smb.h: added LSA #defines needed by above function. (This used to be commit 5437f666987918516032cf8a5dada107e5d14d25)
1997-10-09credentials.c:Luke Leighton6-13/+224
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)
1997-10-09JHT ===> Added smbadduser contributed by Mike Zakharoff.John Terpstra1-0/+74
(This used to be commit 135d054e831cd0f5962acc05d03b38360b73827e)
1997-10-09an implementation of the NT domain credentials protocolAndrew Tridgell1-0/+101
(This used to be commit dd6ac9b1eea3b0ace27fbd014b5ad4625c1fdf94)
1997-10-09bracket some macrosAndrew Tridgell5-11/+15
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)
1997-10-09This is my library of lists and trees. My hope is to replace all of theChristopher R. Hertel8-0/+3952
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)
1997-10-08Put in fix for read-prediction extending files bug. Hard to test, can'tJeremy Allison1-13/+26
get read-prediction to happen :-). Jeremy (jallison@whistle.com) (This used to be commit fa69b3dda47d56e0c3ce1f4f284eac89d4b4bf56)
1997-10-08added a dummy function (space in front so make proto doesn't pick it up)Luke Leighton1-1008/+20
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)
1997-10-08Makefile: Split definitions for SGI4,5,6.Jeremy Allison4-6/+167
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)
1997-10-08added api_lsa_lookup_sids() functionLuke Leighton1-3/+1071
(This used to be commit 35dd48740d8f733e7725813322b094b4679b31c5)
1997-10-08loadparm.c proto.h:Luke Leighton5-5/+150
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)
1997-10-08updating lsaparse.c and smbparse.c in line with changes to pipes.c and smb.hLuke Leighton3-16/+9
from yesterday. (This used to be commit 0b7049fae25957851a7f33d2bd500d8ecefc1ad5)
1997-10-08ipc.c: Added ERROR_MORE_DATA error if client buffer too small.Jeremy Allison2-3/+12
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)
1997-10-07I rewrote the name_mangle() and name_len().Christopher R. Hertel1-46/+65
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)
1997-10-07locking.c: Added fix for race condition in slow share mode code.Jeremy Allison6-30/+93
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)
1997-10-07pipes.c:Luke Leighton3-23/+191
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)
1997-10-07JHT ==> Fixing blocksize argument. Patch by: Llyod WhitemanJohn Terpstra1-1/+1
<lwhitman@stm2.nrl.navy.mil> (This used to be commit 67c1e87e8fda724da6dd3663641639167dd33a16)
1997-10-07pipes.c:Luke Leighton5-18/+285
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)
1997-10-07increase the debug level in the "added interface" debug lineAndrew Tridgell1-3/+3
(This used to be commit b12b3626fd9ccc9cdf2111937b3ee344da361b1f)
1997-10-07get rid of SIGCLD_IGNORE for HPUX. A user reported it causing lotsAndrew Tridgell1-1/+3
of defunct smbd processes. Andrew (This used to be commit bf1f8b1567cb46e3e73ae8dbb26f6228cf519c1f)
1997-10-06Finally ! Found & fixed crash bug with logging message when deletingJeremy Allison1-1/+2
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)
1997-10-06client.c: Changed shadowed variable.Jeremy Allison10-97/+21
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)
1997-10-06lsaparse.c smb.h: added 32 bit "return status" to the response structures.Luke Leighton3-92/+74
(This used to be commit 5bc75c6c626251dc8ba04ff4a83e81b92d93d2d6)
1997-10-06Makefile: added lsaparse.c and smbparse.cLuke Leighton4-4/+442
lsaparse.c, smbparse.c, smb.h: more functions / structures. proto.h: the usual. (This used to be commit a1c718728c46ebf8916af8985b4dae4d099f4ec2)
1997-10-05updating lsa and smb parsing routines and structures.Luke Leighton4-8/+155
(This used to be commit 2f722fe289051558dbe77aeb0a830bb3ded10a83)
1997-10-05processes LSA queries and responses to/from RPC data stream into structures.Luke Leighton1-0/+88
(This used to be commit 369f7d41d6ff6d2b9b8c1e0cac99d0f0d03410b0)
1997-10-05smb.h:Luke Leighton2-6/+403
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)
1997-10-04proto.h:Luke Leighton4-11/+148
- 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)
1997-10-04added some RW_XXXX wrapper macros with an extra i/o argument, to call XXXXLuke Leighton1-0/+49
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)
1997-10-04added structures readable and writeable by smbparse.c routines into and outLuke Leighton1-0/+182
of SMB or Mailslot packets. (This used to be commit 4b3f9b281b3b1c1064992d19fef1d782dc6f1ff1)
1997-10-04packet parsing routines. for use in SMB and MailslotsLuke Leighton1-0/+385
(This used to be commit 297d5ef46ccba99596610c4c6a09399af665f2cf)
1997-10-04fix some "shadows global" errors.Andrew Tridgell1-4/+4
(This used to be commit 25b7ada3587d1fe68164a2339d7f0fbcecf18e53)
1997-10-04a bit of bounds checkingAndrew Tridgell1-0/+12
(This used to be commit d40199f4fe1344058267859820cb36b77a20442a)
1997-10-04a little hack to smbclient to support extracting NT error codesAndrew Tridgell1-0/+12
(This used to be commit 0eb9a590430c328e6ebc46ff8ab05f181921769a)
1997-10-04This is all the NT error codes less than 1000. I extracted them usingAndrew Tridgell1-0/+505
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)
1997-10-04nmblookup.c:Christopher R. Hertel2-309/+558
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)
1997-10-04Race condition with multiple oplock break requests happensJeremy Allison1-3/+2
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)
1997-10-03Making it harder for share_mode_entries to be left withJeremy Allison1-5/+2
non-zero op_type fields. Paranoia code really. Jeremy (jallison@whistle.com) (This used to be commit 21ecb46f56ac0f341803d0552c981e517d0322cb)
1997-10-03locking.c: Fixed incorrect parameter count in debug statements. May explainJeremy Allison5-70/+74
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)
1997-10-03add "static" to a couple of functions that are only used locally.Andrew Tridgell2-10/+6
set granted_oplock=False at the start of open_file(). This is paranoia. (This used to be commit c7f09ffd4a00ef7266e3f54536ee6aaca9335fb8)
1997-10-03proto.h: Updated.Jeremy Allison5-37/+57
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)
1997-10-02change a debug level in reply.cAndrew Tridgell2-2/+2
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)
1997-10-02Added debug message for oplock_break().Jeremy Allison1-1/+7
Jeremy (jallison@whistle.com) (This used to be commit 4f29dfbc791f1f08c8c44a6fbdd0bc31892455dd)
1997-10-02change the semantics of hosts allow/hosts deny so that a globalAndrew Tridgell3-4/+26
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)
1997-10-02Modified some debug messages, moved from 5 -> 8.Jeremy Allison2-15/+15
Jeremy (jallison@whistle.com) (This used to be commit cb83c74a6ccfc44721af65b75625a949782c758a)
1997-10-02Fixed problem with oplock_type being set with no port.Jeremy Allison1-2/+10
Jeremy (jallison@whistle.com) (This used to be commit 90484db0bfe25a096def627f94be24f3fa243375)
1997-10-01OPLOCK CHECK-IN - oplocks are now *OPERATIONAL* !!!!Jeremy Allison7-53/+516
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)