1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-29 21:47:30 +03:00

888 Commits

Author SHA1 Message Date
Jeremy Allison
f3f44f7dbb 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)
1997-10-09 18:40:52 +00:00
Luke Leighton
3dd03e4bb7 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)
1997-10-09 16:14:53 +00:00
Luke Leighton
7d82c240e2 moved the array macros outside of the CAREFUL_ALIGNMENT define.
(This used to be commit d9fcf11aa04ff04dcbccd628322240f8324ae51d)
1997-10-09 15:51:43 +00:00
Luke Leighton
5a3ea52d4a pipes.c:
added api_ntlsarpcTNP() function.  hooray!

smb.h:

	added LSA #defines needed by above function.
(This used to be commit 5437f666987918516032cf8a5dada107e5d14d25)
1997-10-09 15:48:40 +00:00
Luke Leighton
ad54a56714 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)
1997-10-09 14:40:46 +00:00
John Terpstra
228cef8d01 JHT ===> Added smbadduser contributed by Mike Zakharoff.
(This used to be commit 135d054e831cd0f5962acc05d03b38360b73827e)
1997-10-09 11:24:39 +00:00
Andrew Tridgell
f726e5517d an implementation of the NT domain credentials protocol
(This used to be commit dd6ac9b1eea3b0ace27fbd014b5ad4625c1fdf94)
1997-10-09 10:01:12 +00:00
Andrew Tridgell
e5494e2c09 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)
1997-10-09 06:36:04 +00:00
Christopher R. Hertel
1cb2d37d5d 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)
1997-10-09 04:09:56 +00:00
Jeremy Allison
10424272be 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)
1997-10-08 22:23:47 +00:00
Luke Leighton
f40427291e 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)
1997-10-08 21:36:42 +00:00
Jeremy Allison
74113cd60e 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)
1997-10-08 20:34:13 +00:00
Luke Leighton
b270732424 added api_lsa_lookup_sids() function
(This used to be commit 35dd48740d8f733e7725813322b094b4679b31c5)
1997-10-08 18:36:34 +00:00
Luke Leighton
8871297885 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)
1997-10-08 17:12:07 +00:00
Luke Leighton
827aa6bc6a updating lsaparse.c and smbparse.c in line with changes to pipes.c and smb.h
from yesterday.
(This used to be commit 0b7049fae25957851a7f33d2bd500d8ecefc1ad5)
1997-10-08 11:47:46 +00:00
Jeremy Allison
b0bdb42bd1 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)
1997-10-08 00:21:39 +00:00
Christopher R. Hertel
ed61181f29 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)
1997-10-07 22:04:05 +00:00
Jeremy Allison
fb27bc139f 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)
1997-10-07 18:46:19 +00:00
Luke Leighton
577ae65ca5 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)
1997-10-07 18:18:10 +00:00
John Terpstra
a9e1efc1ad JHT ==> Fixing blocksize argument. Patch by: Llyod Whiteman
<lwhitman@stm2.nrl.navy.mil>
(This used to be commit 67c1e87e8fda724da6dd3663641639167dd33a16)
1997-10-07 16:01:08 +00:00
Luke Leighton
a3b7bdd7b9 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)
1997-10-07 14:58:07 +00:00
Andrew Tridgell
0235299ea5 increase the debug level in the "added interface" debug line
(This used to be commit b12b3626fd9ccc9cdf2111937b3ee344da361b1f)
1997-10-07 14:36:22 +00:00
Andrew Tridgell
89042c146e get rid of SIGCLD_IGNORE for HPUX. A user reported it causing lots
of defunct smbd processes.

Andrew
(This used to be commit bf1f8b1567cb46e3e73ae8dbb26f6228cf519c1f)
1997-10-07 11:14:27 +00:00
Samba Release Account
754c280835 More references to samba.canberra
Mental note: always commit from root directory. :^o
Paul.
(This used to be commit 5a38eaac75a6bede2d946f69cf664d7ca3989b55)
1997-10-07 04:56:02 +00:00
Samba Release Account
7bf41802f8 Oops forgot to run the sgml converters that one last time.
All done.
Paul.
(This used to be commit 9a81cb171c178a85ecd045afafbce7d4b481344e)
1997-10-07 04:50:53 +00:00
Samba Release Account
1b83986c8b 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)
1997-10-07 04:47:23 +00:00
Jeremy Allison
1f7a84bc9c 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)
1997-10-06 19:50:51 +00:00
Jeremy Allison
2e92be3aaf 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)
1997-10-06 17:52:25 +00:00
Luke Leighton
8429cec72f lsaparse.c smb.h: added 32 bit "return status" to the response structures.
(This used to be commit 5bc75c6c626251dc8ba04ff4a83e81b92d93d2d6)
1997-10-06 14:52:26 +00:00
Luke Leighton
0e151792c3 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)
1997-10-06 13:30:54 +00:00
Luke Leighton
84e362dd13 updating lsa and smb parsing routines and structures.
(This used to be commit 2f722fe289051558dbe77aeb0a830bb3ded10a83)
1997-10-05 14:17:53 +00:00
Luke Leighton
5e4bc79c6e processes LSA queries and responses to/from RPC data stream into structures.
(This used to be commit 369f7d41d6ff6d2b9b8c1e0cac99d0f0d03410b0)
1997-10-05 12:39:51 +00:00
Luke Leighton
29dfcb86e0 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)
1997-10-05 11:56:08 +00:00
Luke Leighton
07cc8fd8e8 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)
1997-10-04 16:51:43 +00:00
Luke Leighton
a193401384 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)
1997-10-04 16:42:09 +00:00
Luke Leighton
87a3971233 added structures readable and writeable by smbparse.c routines into and out
of SMB or Mailslot packets.
(This used to be commit 4b3f9b281b3b1c1064992d19fef1d782dc6f1ff1)
1997-10-04 16:26:02 +00:00
Luke Leighton
8ebb7bbfcf packet parsing routines. for use in SMB and Mailslots
(This used to be commit 297d5ef46ccba99596610c4c6a09399af665f2cf)
1997-10-04 16:10:21 +00:00
Andrew Tridgell
5059fbf44f fix some "shadows global" errors.
(This used to be commit 25b7ada3587d1fe68164a2339d7f0fbcecf18e53)
1997-10-04 05:24:02 +00:00
Andrew Tridgell
b6a3fd6777 a bit of bounds checking
(This used to be commit d40199f4fe1344058267859820cb36b77a20442a)
1997-10-04 05:21:47 +00:00
Andrew Tridgell
c549112d4b a little hack to smbclient to support extracting NT error codes
(This used to be commit 0eb9a590430c328e6ebc46ff8ab05f181921769a)
1997-10-04 05:21:14 +00:00
Andrew Tridgell
553093c344 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)
1997-10-04 05:19:24 +00:00
John Terpstra
83574da44b 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)
1997-10-04 02:57:14 +00:00
Christopher R. Hertel
e722d70776 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)
1997-10-04 01:07:47 +00:00
Jeremy Allison
3c5998e29b 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)
1997-10-04 00:23:57 +00:00
Jeremy Allison
c89eaa20d1 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)
1997-10-03 23:45:34 +00:00
Jeremy Allison
2f7b04061e 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)
1997-10-03 20:36:06 +00:00
Andrew Tridgell
2534e0688b 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)
1997-10-03 03:34:19 +00:00
Jeremy Allison
4438d7b57e 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)
1997-10-03 03:15:24 +00:00
Andrew Tridgell
a69125bae9 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)
1997-10-02 14:11:34 +00:00
Jeremy Allison
fbd5dded7d Added debug message for oplock_break().
Jeremy (jallison@whistle.com)
(This used to be commit 4f29dfbc791f1f08c8c44a6fbdd0bc31892455dd)
1997-10-02 03:26:07 +00:00