ira/wip.git
26 years agodon't print the progress so often - it slows down the client too much
Andrew Tridgell [Sat, 1 Nov 1997 23:43:12 +0000 (23:43 +0000)]
don't print the progress so often - it slows down the client too much
(This used to be commit cc6e7706635ba4bf044ebd5a525113c1b2fd93e3)

26 years agominor async DNS cleanups
Andrew Tridgell [Sat, 1 Nov 1997 23:42:28 +0000 (23:42 +0000)]
minor async DNS cleanups

- start it earlier
- set DEBUGLEVEL to -1 to prevent any debug calls in child
- exit with _exit() to prevent logfile corruption
(This used to be commit 21dd073a2003fa4707c1577a6b07bcef30eb6a50)

26 years agopreparing for release of 1.9.18alpha10
Samba Release Account [Sat, 1 Nov 1997 19:36:04 +0000 (19:36 +0000)]
preparing for release of 1.9.18alpha10
(This used to be commit fa251b7eba48c9ef2d8d3d798ce5b99c8508c243)

26 years agomention of GLPL for the rpc_pipe/ directory
Luke Leighton [Sat, 1 Nov 1997 19:35:18 +0000 (19:35 +0000)]
mention of GLPL for the rpc_pipe/ directory
(This used to be commit f49eb1e03780f7c5e6355517b8f6134c571be246)

26 years agoupdated version number.
Luke Leighton [Sat, 1 Nov 1997 19:32:40 +0000 (19:32 +0000)]
updated version number.
(This used to be commit 4de4571855d8c9695035beaa3353bdd9c9a0eb78)

26 years agoadded instructions advising people to set up 1.9.18alpha as a Win95 Domain
Luke Leighton [Sat, 1 Nov 1997 19:31:44 +0000 (19:31 +0000)]
added instructions advising people to set up 1.9.18alpha as a Win95 Domain
Logon server, with encrypted passwords *prior* to trying out the NT Domain
Logons.
(This used to be commit f39608ec065503920aafed9655178ce36e67f1f9)

26 years agoclient.c clientutil.c proto.h
Luke Leighton [Sat, 1 Nov 1997 19:20:29 +0000 (19:20 +0000)]
client.c clientutil.c proto.h
rpc_pipes/ntclientlsa.c rpc_pipes/ntclientnet.c
rpc_pipes/ntclientpipe.c :

added extra argument to cli_call_api() to allow specifying the length of
the \PIPE\ name.  it appears that, like when the name of the pipe is NULL
and OS-2 requires two extra bytes _after_ the NULL name, that NT requires
two bytes after the NULL-terminated name "\PIPE\".  these two bytes vary,
but values seen so far are: 0x72 0x70; 0x63 0x65; 0x44 0x65; 0x4E 0x00.

there appears not to be much logic to this.  purpose unknown.

ntclient.c:

put Set Named Pipe Handle State call directly after SMBopenX call.
(This used to be commit 54c245be152e5fa8f5b535c93f8d11c5f591e23f)

26 years agoupdating to latest version
Luke Leighton [Sat, 1 Nov 1997 19:14:10 +0000 (19:14 +0000)]
updating to latest version
(This used to be commit 4525c3b6e57bcc7b878eb4194e21603f33e9d7ea)

26 years agoset O_CREAT on lock file
Andrew Tridgell [Sat, 1 Nov 1997 13:28:21 +0000 (13:28 +0000)]
set O_CREAT on lock file
(This used to be commit 32fecea63b892e0a15c398cfc65d53c4ece74d86)

26 years agoa simple SMB torture tester. This will allow us to evaluate locking
Andrew Tridgell [Sat, 1 Nov 1997 13:22:16 +0000 (13:22 +0000)]
a simple SMB torture tester. This will allow us to evaluate locking
techniques more accurately.
(This used to be commit 054e3b2ae3a8cfb98fde72becef9b05de34d2ba7)

26 years agochange a debug level
Andrew Tridgell [Sat, 1 Nov 1997 08:13:54 +0000 (08:13 +0000)]
change a debug level
(This used to be commit d8b896a90fb693187a11456e46971c873e9f0d60)

26 years agodon't use SEM_UNDO because of ridiculously small undo limits on some
Andrew Tridgell [Sat, 1 Nov 1997 08:13:42 +0000 (08:13 +0000)]
don't use SEM_UNDO because of ridiculously small undo limits on some
OSes. Instead add explicit checks for dead locks at startup.
(This used to be commit 79858d610c37675b9dc56a949723053ac9b67620)

26 years agosome locking code cleanups
Andrew Tridgell [Sat, 1 Nov 1997 07:33:55 +0000 (07:33 +0000)]
some locking code cleanups
(This used to be commit 6d77311d6cecabafb86c02e26b30724425ef6208)

26 years agore-initialise the timezone on each new connection. This means you
Andrew Tridgell [Sat, 1 Nov 1997 07:22:18 +0000 (07:22 +0000)]
re-initialise the timezone on each new connection. This means you
don't need to restart smbd after a DST change.
(This used to be commit 2a50d5d5ed4ca7d2b546d7337ec88c527ec82689)

26 years agoUpdate file for automatically generating a release
Herb Lewis [Fri, 31 Oct 1997 17:33:04 +0000 (17:33 +0000)]
Update file for automatically generating a release
(This used to be commit 01df21c22d567a0cc6d69a03fd3246dcfd92217d)

26 years agochange from * to ^ in hashing of device/inode. Using * meant that if
Andrew Tridgell [Fri, 31 Oct 1997 05:56:07 +0000 (05:56 +0000)]
change from * to ^ in hashing of device/inode. Using * meant that if
the device number happened to divide the number of hash buckets we
would only use a small fraction of the hash buckets, which would slow
things down.
(This used to be commit 623ffd701f2f966875d396d8b2df74f0cf874cda)

26 years agodefine NO_SEMUN for svr4
Andrew Tridgell [Fri, 31 Oct 1997 05:54:36 +0000 (05:54 +0000)]
define NO_SEMUN for svr4
(This used to be commit a43fa71a5fa740ae8757989c4177f21d8193de94)

26 years agoOSF1 doesn't define union semun either.
Andrew Tridgell [Fri, 31 Oct 1997 04:51:29 +0000 (04:51 +0000)]
OSF1 doesn't define union semun either.
(This used to be commit af7700aa2e3c736f86ae3217a424dfb0910f5f45)

26 years agopm_process() never closed the file (a memory and file descriptor leak)
Andrew Tridgell [Fri, 31 Oct 1997 04:27:55 +0000 (04:27 +0000)]
pm_process() never closed the file (a memory and file descriptor leak)
(This used to be commit 0d9b0d0fffc2b11fe4897b8b99f321fc7d9a143c)

26 years agono Makefile needed here either
Andrew Tridgell [Fri, 31 Oct 1997 02:50:37 +0000 (02:50 +0000)]
no Makefile needed here either
(This used to be commit 4d9cd22c9e885a3b1535ab4d80f0622121abc7a6)

26 years agothis is now in the rpc_pipes directory
Andrew Tridgell [Fri, 31 Oct 1997 02:48:40 +0000 (02:48 +0000)]
this is now in the rpc_pipes directory
(This used to be commit 642ef3c78ad6d1c75ac127ff2169a9081a1c1454)

26 years agoremoving the files that are now in rpc_pipes
Andrew Tridgell [Fri, 31 Oct 1997 02:46:26 +0000 (02:46 +0000)]
removing the files that are now in rpc_pipes

For future reference, if you want to move files about then don't do it
this way. The history info is lost.

Instead contact me first and tell me what you want moved and why. Then
I'll decide if we can do it while retaining the history info.
(This used to be commit 0e244f9e7c6b7fd7367e9b79bf4bedcbc80d336a)

26 years ago- cleanup some warnings
Andrew Tridgell [Fri, 31 Oct 1997 02:40:55 +0000 (02:40 +0000)]
- cleanup some warnings

- redo the prototypes
(This used to be commit 31dcb51e05914d49d81a3faef354aaf0ab9fa63f)

26 years agoblanked out these files, so that if someone does make proto, they don't
Luke Leighton [Thu, 30 Oct 1997 22:33:59 +0000 (22:33 +0000)]
blanked out these files, so that if someone does make proto, they don't
interfere with the files in the rpc_pipes/ directory.

andrew doesn't want to lose any cvs history by moving files around, so
he's going to look into that tomorrow.
(This used to be commit 5858cb97f565bb1d6337f3bc350b1f8cdfd4555b)

26 years agoadded a client-side "set named pipe handle state" function. not known
Luke Leighton [Thu, 30 Oct 1997 22:21:49 +0000 (22:21 +0000)]
added a client-side "set named pipe handle state" function.  not known
exactly when you call this (before or after a bind).  can sort that out
later.
(This used to be commit a64ba16db615f83739c147a521ccff3f7c42987b)

26 years agostoring pipe name state (from set named pipe handle state call) in the
Luke Leighton [Thu, 30 Oct 1997 21:51:15 +0000 (21:51 +0000)]
storing pipe name state (from set named pipe handle state call) in the
pipes array.
(This used to be commit 5335d5cdc4659f4676958f0399e2de29a117c133)

26 years agoModified Files:
Christopher R. Hertel [Thu, 30 Oct 1997 18:05:56 +0000 (18:05 +0000)]
Modified Files:
        ubiqx/Makefile ubiqx/README.UBI

Added new modules to the Makefile.  Changed the text of the README to
reflect the directory change.

Added Files:
        ubiqx/ubi_AVLtree.c ubiqx/ubi_AVLtree.h
        ubiqx/ubi_BinTree.c ubiqx/ubi_BinTree.h
        ubiqx/ubi_SplayTree.c ubiqx/ubi_SplayTree.h
        ubiqx/ubi_StackQueue.c ubiqx/ubi_StackQueue.h
        ubiqx/ubi_sLinkList.c ubiqx/ubi_sLinkList.h

This is the remainder of the toolkit.  A quick rundown:
  sLinkList  = A simple singly-linked list.
  StackQueue = Implements both a stack and a queue.
  dLinkList  = (Not added 'cause it's already there.)  A doubly-linked list.

  BinTree    = Base level binary tree module.  (No height balancing, just
               the basics.)
  AVLtree    = Descendant type of BinTree.  Implements a height-balanced
               (AVL) binary tree.
  SplayTree  = Descendant type of BinTree.  Implements a splay-balanced
               binary tree.

Renamed Files:
        ubiqx/COPYING.LGPL ==> ubiqx/COPYING.LIB

This matches the naming that GNU suggests.
(This used to be commit c6205dd45e455a4a228a3411b95fa569e0ea00e1)

26 years agoGLPL notice on the rpc_pipes/ directory
Luke Leighton [Thu, 30 Oct 1997 17:27:06 +0000 (17:27 +0000)]
GLPL notice on the rpc_pipes/ directory
(This used to be commit 808a0b1be700eaf074c113f45bb5febf02d41112)

26 years agoMakefile:
Luke Leighton [Thu, 30 Oct 1997 17:08:42 +0000 (17:08 +0000)]
Makefile:

simply adding pipes.o to SMBDOBJ3.

rpc_pipes/pipe_hnd.c :

created pipe handles module.

pipes.c server.c :

use of pipe_hnd functions in SMBopenX and SMBclose, on the IPC$ pipe.
(This used to be commit ada256b5e3b9fb0db988e3be7d47943e7c19b3fb)

26 years agoMakefiles for libraries. the dependencies aren't quite right, and i
Luke Leighton [Thu, 30 Oct 1997 15:42:40 +0000 (15:42 +0000)]
Makefiles for libraries.  the dependencies aren't quite right, and i
don't know how to sort them.

make proto in each library directory.  over-ride the make proto for ubiqx,
so that it doesn't happen, but throws up a warning instead.
(This used to be commit 93df2c62cc32191e88c0c4e615ac6077ec2b07c3)

26 years agoChris will be pleased to know that mkproto.awk no longer runs on the
Andrew Tridgell [Thu, 30 Oct 1997 08:50:18 +0000 (08:50 +0000)]
Chris will be pleased to know that mkproto.awk no longer runs on the
ubiqx files :-)
(This used to be commit 13d90255928711c05d8e147081afa309b8abf1af)

26 years agomoved ubi_ modules back into the ubiqx directory.
Andrew Tridgell [Thu, 30 Oct 1997 08:44:29 +0000 (08:44 +0000)]
moved ubi_ modules back into the ubiqx directory.

I've added a very simple (and portable) method for having separate
source directories.

This should also help when we add directories for the various ports. A
unix directory would make sense.
(This used to be commit dc8998b1d3c119665538eb5e0b133a47f89fed19)

26 years agopreparing for release of 1.9.18alpha9
Samba Release Account [Thu, 30 Oct 1997 01:13:34 +0000 (01:13 +0000)]
preparing for release of 1.9.18alpha9
(This used to be commit 9212c93beefa83be349b250fe98b65e07d842038)

26 years agoupdated documentation as chmodding files /tmp/lsarpc and /tmp/netlogon
Luke Leighton [Thu, 30 Oct 1997 01:11:26 +0000 (01:11 +0000)]
updated documentation as chmodding files /tmp/lsarpc and /tmp/netlogon
is not needed any more.
(This used to be commit be649198e61b2c2eed7b4a221bbd0bdbab074823)

26 years agoremoved mechanism that created actual files NETLOGON, lsarpc and the like,
Luke Leighton [Thu, 30 Oct 1997 01:05:13 +0000 (01:05 +0000)]
removed mechanism that created actual files NETLOGON, lsarpc and the like,
which are pipes on the IPC$ connection.

created mechanism to record pipe names in a separate pipes_struct.  it
is planned to expand this, to return sensible things like interface
structures, and policy handles (RPC_IFACE and LSA_POL_HND).  and the like.
(This used to be commit 33cce5fac0e2f818a19a6c4e6a797ef44f3b5c75)

26 years agoupdate
Luke Leighton [Wed, 29 Oct 1997 23:00:35 +0000 (23:00 +0000)]
update
(This used to be commit 9dd2fcae78042a2777f068d4a574605397402aad)

26 years agopreparing for release of 1.9.18alpha8
Samba Release Account [Wed, 29 Oct 1997 21:20:34 +0000 (21:20 +0000)]
preparing for release of 1.9.18alpha8
(This used to be commit 48548526e8bef3cdc6f5d202bb6c7849e7862e48)

26 years agobyteorder.h :
Luke Leighton [Wed, 29 Oct 1997 20:23:01 +0000 (20:23 +0000)]
byteorder.h :

have another go at reporting stuff the right way round (on SPARCs)

srvparse.c :

copyright messages
(This used to be commit 4b54d22d59d3f6719e7ce8bbbf3e40da31cd270e)

26 years agozero data parameter being passed to smb_io_rpc_hdr(), which couldn't cope.
Luke Leighton [Wed, 29 Oct 1997 20:08:09 +0000 (20:08 +0000)]
zero data parameter being passed to smb_io_rpc_hdr(), which couldn't cope.
(This used to be commit c0137cd8fe1362beef9ce879cc558869bdf2edfa)

26 years agotypecast in calls to print_asc() wrong
Luke Leighton [Wed, 29 Oct 1997 19:58:20 +0000 (19:58 +0000)]
typecast in calls to print_asc() wrong
(This used to be commit 4088683ee046783678d4f748ddb03b5907d00506)

26 years agoipc.c ntclientpipe.c:
Luke Leighton [Wed, 29 Oct 1997 19:05:34 +0000 (19:05 +0000)]
ipc.c ntclientpipe.c:

response to Bind Acknowledgment needs a lookup table for the PIPE string
(secondary address in RPC_HDR_BA structure).

smbparse.c util.c :

interesting problem, i think caused by us typecasting a uint16* buffer
to char*.  found on a SPARC.
(This used to be commit 420408ee83902faa6cf871f26e93ad5efb483727)

26 years agopreparing for release of 1.9.18alpha7
Samba Release Account [Wed, 29 Oct 1997 15:38:31 +0000 (15:38 +0000)]
preparing for release of 1.9.18alpha7
(This used to be commit dceace804ea3efa8de6ab31fb44acdc10d46ed73)

26 years agoupdated to current version number.
Samba Release Account [Wed, 29 Oct 1997 15:37:05 +0000 (15:37 +0000)]
updated to current version number.
(This used to be commit 8eae5cc0fd2ccee1e34cdec5164d53f8afb9c668)

26 years agocalled dump_data() from show_msg().
Luke Leighton [Wed, 29 Oct 1997 15:35:53 +0000 (15:35 +0000)]
called dump_data() from show_msg().
(This used to be commit 89664898e2457de2986d515f6f476993ee1bbea2)

26 years agoipc.c :
Luke Leighton [Wed, 29 Oct 1997 14:34:17 +0000 (14:34 +0000)]
ipc.c :

bind ack should contain \PIPE\pipename not just pipename.

ntclientpipe.c :

sanity in bind ack: pipe name checks; transfer syntax checks; reason checks.
(This used to be commit c2e2197e9d87795bda0198247c7bb132fe586fc1)

26 years agosplit ntclient.c down into appropriate modules.
Luke Leighton [Wed, 29 Oct 1997 13:24:42 +0000 (13:24 +0000)]
split ntclient.c down into appropriate modules.
(This used to be commit 50d7e4d6f6b5d770742ee83523d6146cf51f8259)

26 years agodamn. We need root privilages to do semaphore operations even if we
Andrew Tridgell [Wed, 29 Oct 1997 02:59:22 +0000 (02:59 +0000)]
damn. We need root privilages to do semaphore operations even if we
have done the semget() as root.  The problem is that become_root() and
unbecome_root() are so slow!

I've provided two options. The default is to set the semaphores (but
_not_ the shared memory) world writeable so that a become_root() isn't
needed. Otherwise you can define SECURE_SEMAPHORES and pay the
performance penalty.
(This used to be commit 2bbd8d2cbc5cf1901859a181bc9ec29822995e51)

26 years ago- don't allow locking to initialise twice
Andrew Tridgell [Wed, 29 Oct 1997 02:18:08 +0000 (02:18 +0000)]
- don't allow locking to initialise twice
- check that it is initialised before de-initialising it!
(This used to be commit 68ad7b91999216e5721207b5a79c3a66be7cf420)

26 years agoclean up the hash entry code a bit. Got rid of lp_shmem_hash_size()
Andrew Tridgell [Wed, 29 Oct 1997 01:59:54 +0000 (01:59 +0000)]
clean up the hash entry code a bit. Got rid of lp_shmem_hash_size()
and made it private to the 2 shmem implementations. Added new
shmops->hash_size() function.

Added code to handle the IPC system limits by looping decreasing the
size of the resources (semaphores and shared memory) that we request
until we get under the system limits, which can be quite low on some
systems!

Added checks that the creator of the IPC objects is root. Otherwise we
would be open to a security hole where someone pre-creates the shared
memory segment and attaches.
(This used to be commit 6b6f624b63137d4750200e8cb4961b1402513632)

26 years agoadded frag field to make_rpc_hdr() function
Luke Leighton [Wed, 29 Oct 1997 01:05:46 +0000 (01:05 +0000)]
added frag field to make_rpc_hdr() function
(This used to be commit 6b0e51929495582bc48a4d5fba24aa7c1f7caaf6)

26 years agobyteorder.h :
Luke Leighton [Wed, 29 Oct 1997 00:04:14 +0000 (00:04 +0000)]
byteorder.h :

added mode for printing debug array data as chars not uint8/16/32s.
only really useful for (uint8) strings or (uint16) unicode strings

lsaparse.c smbparse.c smb.h :

rpc bind and rpc bind ack structures and parsing and creation functions.

ipc.c pipes.c pipenetlog.c pipentlsa.c pipesrvsvc.c :

using rpc bind / bind ack parsing routines instead of incorrect use of
api_LsarpcTNP1 function.

ntclient.c :

creation of do_rpc_bind() function.

THAT'S IT, FOLKS!
(This used to be commit 21c89e2f17c51939fd6b53dddbe3072419eb0db2)

26 years agoUtility code to produce printer definition files from MS files.
Jeremy Allison [Tue, 28 Oct 1997 23:58:31 +0000 (23:58 +0000)]
Utility code to produce printer definition files from MS files.
Part of code to support Windows 95 automated printer driver installs.
Written by Jean-Francois Micouleau <Jean-Francois.Micouleau@utc.fr>.
(This used to be commit 6e9f817414d6f7bdcb0ea64170d0db34b62651a5)

26 years agoAdded "printer driver location", "printer driver file" parameters.
Jeremy Allison [Tue, 28 Oct 1997 19:54:49 +0000 (19:54 +0000)]
Added "printer driver location", "printer driver file" parameters.
Jeremy.
(This used to be commit c739de26c286ad1c6e19896c7e9757bc584c7fc2)

26 years agoAdding PRINTER_DRIVER.txt docs.
Jeremy Allison [Tue, 28 Oct 1997 19:35:24 +0000 (19:35 +0000)]
Adding PRINTER_DRIVER.txt docs.
(This used to be commit 02fc5e756dfb71ad213aacf388563608fbaf7309)

26 years agoAdding Windows 95 printer driver code donated by Jean-Francois.Micouleau@utc.fr.
Jeremy Allison [Tue, 28 Oct 1997 19:32:59 +0000 (19:32 +0000)]
Adding Windows 95 printer driver code donated by Jean-Francois.Micouleau@utc.fr.
New program, make_printerdef, plus two new parameters :

[global] "printer driver file"
[local] "printer driver location"

Jeremy.
(This used to be commit 9a5b42e6b3e7a35d56f81e9428fc747246e2fc5c)

26 years agomention that Perl is required for build scripts
Herb Lewis [Tue, 28 Oct 1997 19:21:26 +0000 (19:21 +0000)]
mention that Perl is required for build scripts
(This used to be commit 9e51c248af8e7845b4ab477893fb07ab7840b7a2)

26 years agoremoving Makefile and adding perl script to generate it form source tree
Herb Lewis [Tue, 28 Oct 1997 19:20:07 +0000 (19:20 +0000)]
removing Makefile and adding perl script to generate it form source tree
(This used to be commit eb95385f65bb36528649e205f617a03dc8db2d97)

26 years agotired of updating Makefile - use perl script to generate it now
Herb Lewis [Tue, 28 Oct 1997 19:18:52 +0000 (19:18 +0000)]
tired of updating Makefile - use perl script to generate it now
(This used to be commit ce65e1f4cc91db533c26c3ccdba6d4dd3286d22b)

26 years agoAdding printer drivers patch from Jean-Francois Micouleau
Jeremy Allison [Tue, 28 Oct 1997 18:15:48 +0000 (18:15 +0000)]
Adding printer drivers patch from Jean-Francois Micouleau
<Jean-Francois.Micouleau@utc.fr>. We can expand on this after
we have tested it out.
Jeremy.
(This used to be commit fb81a77a63af2c2d524e5f5166024c34b83a0ea2)

26 years agosmb.h smbparse.c pipeutil.c :
Luke Leighton [Tue, 28 Oct 1997 17:54:10 +0000 (17:54 +0000)]
smb.h smbparse.c pipeutil.c :

added bind and bind ack structures and parsing functions.  restructured
rpc header stuff.

ntclient.c pipenetlog.c pipentlsa.c pipesrvsvc.c :

having to deal with restructuring above.
(This used to be commit 9f2c4f1fee7e411adba8f529b7666a7325584457)

26 years agoenable sysv ipc and fast share modes on OSF1
Andrew Tridgell [Tue, 28 Oct 1997 15:07:01 +0000 (15:07 +0000)]
enable sysv ipc and fast share modes on OSF1
(This used to be commit 3480524e15aba50dd459ac5979eabb8974898e35)

26 years agoneed includes.h to compile on some systems (eg. sunos4)
Andrew Tridgell [Tue, 28 Oct 1997 15:02:15 +0000 (15:02 +0000)]
need includes.h to compile on some systems (eg. sunos4)
(This used to be commit 7d80e25bb422d841aad81c2b3d76039bba6c9f79)

26 years agofix for broken sunos4 includes (doesn't have SHM_R)
Andrew Tridgell [Tue, 28 Oct 1997 14:59:06 +0000 (14:59 +0000)]
fix for broken sunos4 includes (doesn't have SHM_R)
(This used to be commit 6ca96782ace2258707f49d204726a00baef9d941)

26 years agofix cast
Andrew Tridgell [Tue, 28 Oct 1997 14:55:47 +0000 (14:55 +0000)]
fix cast
(This used to be commit af13f5e1788b6f81cfcdaeb85dc709458e3d4816)

26 years agodefine semun for broken solaris sysvipc
Andrew Tridgell [Tue, 28 Oct 1997 14:55:22 +0000 (14:55 +0000)]
define semun for broken solaris sysvipc
(This used to be commit 4db076e08bec525ee908a391b22fdc12cc66bc27)

26 years agolower the default hash size if SEMMSL isn't defined
Andrew Tridgell [Tue, 28 Oct 1997 14:40:31 +0000 (14:40 +0000)]
lower the default hash size if SEMMSL isn't defined
(This used to be commit 9f0be847fdbcf0f8bbd69de6cdf277ae0440bcda)

26 years agodefine USE_SYSV_IPC on sunos4
Andrew Tridgell [Tue, 28 Oct 1997 14:25:26 +0000 (14:25 +0000)]
define USE_SYSV_IPC on sunos4
(This used to be commit 6388da22eb95c8bfd3f17f5645bdaa16cfca0c6b)

26 years agodefine USE_SYSV_IPC on a bunch more systems.
Andrew Tridgell [Tue, 28 Oct 1997 14:22:50 +0000 (14:22 +0000)]
define USE_SYSV_IPC on a bunch more systems.

Needs some testing though.
(This used to be commit 8f2366e57d29458f2bb63d9a0033de5c730a1b94)

26 years agoSYSV IPC implementation of fast share modes.
Andrew Tridgell [Tue, 28 Oct 1997 14:19:54 +0000 (14:19 +0000)]
SYSV IPC implementation of fast share modes.

It will try sysv IPC first, then if that fails it will try mmap(),
then after that it will try share files.

I have defined USE_SYSV_IPC for Linux, Solaris and HPUX at the
moment. Probably a lot more could have it defined. In fact, the vast
majority of systems support it. Need autoconf again :-)

It should actually be faster than the mmap() version, and doesn't need
any lock files. This means the problem of the share mem file being on
a NFS drive will be gone.
(This used to be commit cc8fe0f0629eea9acc39e30d8d76d5890a5b6978)

26 years agorefuse pathworks type R connect (patch from Stephen Tweedie)
Andrew Tridgell [Tue, 28 Oct 1997 06:07:07 +0000 (06:07 +0000)]
refuse pathworks type R connect (patch from Stephen Tweedie)
(This used to be commit c63fee2b282c8b53f87e63995384602b66a805a6)

26 years agoadded LSA_Q_CLOSE and LSA_R_CLOSE (also to smb.h). implemented in smbclient.
Luke Leighton [Mon, 27 Oct 1997 19:00:38 +0000 (19:00 +0000)]
added LSA_Q_CLOSE and LSA_R_CLOSE (also to smb.h).  implemented in smbclient.
updated Query Info Policy to report domain name and domain sid for info levels
3 and 5.
fixed bug in dom_sid_to_string (idauths decoded wrong).  fixed bug in DOM_SID:
subauths are 32 bit not 16.
(This used to be commit 2f3cca23e2465ca6a3a31fda005af1fd74f6af92)

26 years agoFixed bug where we are a WINS server but not a domain master
Jeremy Allison [Mon, 27 Oct 1997 18:28:06 +0000 (18:28 +0000)]
Fixed bug where we are a WINS server but not a domain master
browser. We were doing a name query instead of a name status.
Jeremy.
(This used to be commit 4021a1bf553a20b518595f621f828d8279d05303)

26 years agoFixed ntclient.c so it would compile.
Jeremy Allison [Mon, 27 Oct 1997 18:07:36 +0000 (18:07 +0000)]
Fixed ntclient.c so it would compile.
Jeremy.
(This used to be commit 598e98e5612250966696826a98de35356f8f03d8)

26 years agopreparing for release of 1.9.18alpha6
Samba Release Account [Mon, 27 Oct 1997 17:18:51 +0000 (17:18 +0000)]
preparing for release of 1.9.18alpha6
(This used to be commit 28ef0df30efd4011e6a782dc02474b6d4082d6de)

26 years agospelling mistake
Samba Release Account [Mon, 27 Oct 1997 17:18:35 +0000 (17:18 +0000)]
spelling mistake
(This used to be commit 81374d30661fb3ad0271e7d2db9eecb7beb3d42b)

26 years agoupdated to indicate reported success with NT 3.51 as well as NT 4.0
Luke Leighton [Mon, 27 Oct 1997 17:12:57 +0000 (17:12 +0000)]
updated to indicate reported success with NT 3.51 as well as NT 4.0
(This used to be commit 69777caec171c1eafdc6a4958a931efa06a9beab)

26 years agoupdated header to 1.9.18alpha6
Samba Release Account [Mon, 27 Oct 1997 17:09:46 +0000 (17:09 +0000)]
updated header to 1.9.18alpha6
(This used to be commit d4bf6deb5adea982913507ad5089929521274485)

26 years agoadded LSA Query Info Policy.
Luke Leighton [Mon, 27 Oct 1997 17:04:15 +0000 (17:04 +0000)]
added LSA Query Info Policy.
fixed a problem with byte ordering (doing an SIVAL of the setup parameters
which was _also_ being done in the creation of the SMB header.  oops).
(This used to be commit 541fb82895008cc30477019cdcafed9fdbbeac43)

26 years agochecks against file handle in api_fd_reply(). i don't know what error
Luke Leighton [Mon, 27 Oct 1997 16:14:29 +0000 (16:14 +0000)]
checks against file handle in api_fd_reply().  i don't know what error
message should be returned, so i just let it fall through to sending an
"api_unsupported"
(This used to be commit 85d132da6756da0904fe894ea617b84e38e610ff)

26 years agodocumented LSA Open Policy Query.
Luke Leighton [Mon, 27 Oct 1997 15:10:17 +0000 (15:10 +0000)]
documented LSA Open Policy Query.
(This used to be commit f5c24c8d9c397d5a7a3f9d0f5dbfd204485f2662)

26 years agoadded LSA Open Policy query and response processing to smbclient
Luke Leighton [Mon, 27 Oct 1997 15:09:23 +0000 (15:09 +0000)]
added LSA Open Policy query and response processing to smbclient
(This used to be commit 16cc27852bf54999db4b0a3665b0743d9fe0e74a)

26 years agochange the default file permissions on the SHARE_MEM_FILE* to
Andrew Tridgell [Mon, 27 Oct 1997 14:27:17 +0000 (14:27 +0000)]
change the default file permissions on the SHARE_MEM_FILE* to
0644. smbstatus now gets only read permission on the share files and
does no locking.

also get rid of some unnecessary umask(0) calls. smbd always runs with
umask(0)
(This used to be commit c6ac10170dbba57dfebc54c50d79cb29d13bb442)

26 years agoalso disable read prediction in 1.9.18
Andrew Tridgell [Mon, 27 Oct 1997 13:38:07 +0000 (13:38 +0000)]
also disable read prediction in 1.9.18
(This used to be commit 0f15558efb26b7215540a588dfe8733e9346d407)

26 years agoFixed 2 oplock bugs:
Andrew Tridgell [Mon, 27 Oct 1997 12:02:34 +0000 (12:02 +0000)]
Fixed 2 oplock bugs:

1) the oplock macros in smb.h used | where they should have used
&. This means that smbd thought that all clients were always
requesting oplocks. This would have _really_ confused smbclient
and smbfs when they started receiving async oplock break requests when
they don't even know what an oplock is!

2) an oplock break request from a client can be embedded in a normal
lockingX request, and will be if the client has batched any lock
requests internally. The smbd code assumed that all oplock break
requests had num_locks==num_ulocks==0 which is not true. The only
thing special about a oplock break request with
num_locks==num_ulocks==0 is that no reply is sent. Otherwise it is
processed as a normal locking request in addition to the oplock break
processing.

These two fixes get the MS mail system in Win98 working on a Samba
1.9.18 network drive.

Andrew
(This used to be commit ed71534df56d0296280dbde1859597fb42002088)

26 years agoadded mention of compile-time experimentational NT Domain code.
Luke Leighton [Mon, 27 Oct 1997 11:11:41 +0000 (11:11 +0000)]
added mention of compile-time experimentational NT Domain code.
(This used to be commit 800a7218bcdf3ce57af0ce0428f96d42edc1d188)

26 years agohooray. hooray some more. hooray a lot. got the client-side working.
Luke Leighton [Sun, 26 Oct 1997 18:42:47 +0000 (18:42 +0000)]
hooray.  hooray some more.  hooray a lot.  got the client-side working.

Q/R LSA_REQ_CHAL; Q/R LSA_AUTH2; Q/R LSA_SAMLOGON; Q/R LSA_SAMLOGOFF.
the last (non-essential right now) bit is the LSA_SRV_PWSET.

the next stage is to do LSA_OPENPOLICY; add the pipe binds (missing right
now); then we can test against an NT Server.
(This used to be commit 0a549e62fbf11a3ff1f1de663176e30006553e08)

26 years agoadded -U option to nmblookup. This is similar to -B except that it
Andrew Tridgell [Sun, 26 Oct 1997 07:50:28 +0000 (07:50 +0000)]
added -U option to nmblookup. This is similar to -B except that it
forces the client to send a unicast instead of a broadcast netbios
packet. This is useful for diagnostics.
(This used to be commit 57e0fac61414c032df35c8a4c0ba4d3a9f55c5b8)

26 years agofix some casting errors in smbencrypt and some multiply-defined errors
Andrew Tridgell [Sun, 26 Oct 1997 07:45:36 +0000 (07:45 +0000)]
fix some casting errors in smbencrypt and some multiply-defined errors
in clientutil.c (Luke, you can't just copy a global variable
declaration from one file to another, you need to declare one of them
extern)
(This used to be commit 944ecbcbd47afcc20e2e408a06d57c7b8d0d86a8)

26 years agoThe browse synchronisation code in nmbsync.c now uses the clientgen.c
Andrew Tridgell [Sun, 26 Oct 1997 07:32:02 +0000 (07:32 +0000)]
The browse synchronisation code in nmbsync.c now uses the clientgen.c
code, which means we don't have to link with a fake getpass routine
and we don't have a whole pile of global variables that really have
nothing to do with nmbd and were there to keep the client code happy.

The code should function identically to what it did before (hopefully
it was correct)

The only thing that now uses the horrible clientutil.c code is
smbclient.
(This used to be commit 4bf5c03b18f88b566f3ac12cc4b3a9c5c96fd35d)

26 years agopreparing for release of 1.9.18alpha5
Samba Release Account [Sat, 25 Oct 1997 19:13:07 +0000 (19:13 +0000)]
preparing for release of 1.9.18alpha5
(This used to be commit 1b17455066098104b9b0907a58195328c6467d71)

26 years agoupdated to describe smbclient work recently done.
Luke Leighton [Sat, 25 Oct 1997 18:13:04 +0000 (18:13 +0000)]
updated to describe smbclient work recently done.
(This used to be commit afa790f14cc11b7be110d767e2395a819cf8ceb4)

26 years agolatest version
Luke Leighton [Sat, 25 Oct 1997 17:59:01 +0000 (17:59 +0000)]
latest version
(This used to be commit 48c4eec98defc2ade02fe7be1539367a53cbee98)

26 years agooops!
Luke Leighton [Sat, 25 Oct 1997 17:58:53 +0000 (17:58 +0000)]
oops!
(This used to be commit 2119624010e599359f4829cce6800bb0c55d281e)

26 years agoadded correct client-side credential generation / checking to the LSA SAM
Luke Leighton [Sat, 25 Oct 1997 17:38:37 +0000 (17:38 +0000)]
added correct client-side credential generation / checking to the LSA SAM
Logon query.  i think i even got the client-side checking of the response
credentials right!
(This used to be commit f14c111835e18e361468cc6a1666a02654afe743)

26 years agogot the SAM logon request generated, and received a SAM logon response back.
Luke Leighton [Sat, 25 Oct 1997 15:49:27 +0000 (15:49 +0000)]
got the SAM logon request generated, and received a SAM logon response back.
YEAH!

need to add:

- client-side credential calculation
- client-side parsing of the SAM logon response.
(This used to be commit 349677de3f06bb0892862de0e11172adeffda18a)

26 years agosam logon query creation functions. written twice because i deleted it.
Luke Leighton [Sat, 25 Oct 1997 13:15:52 +0000 (13:15 +0000)]
sam logon query creation functions.  written twice because i deleted it.
(This used to be commit 9eee8c2007bf4f7756f6d645a61055101d280316)

26 years agoMakefile :
Luke Leighton [Sat, 25 Oct 1997 10:58:18 +0000 (10:58 +0000)]
Makefile :

adding bits for new nt domain code

byteorder.h :

trying to get macros right, and not to crash on SUNOS5...

client.c :

added #ifdef NTDOMAIN, and created do_nt_login() function.  don't
want to have to recompile client.c unless absolutely necessary.

credentials.c :

moved deal_with_creds() [possibly inappropriately] into credentials.c

ipc.c reply.c server.c uid.c :

attempting to make (un)become_root() functions calleable from smbclient.
this is a little tricky: smbclient might have to be another setuid
root program, immediately setuid'ing to non-root, so that we can
reset-uid to root to get at the smbpasswd file.  or, have a secure
pipe mechanism to smbd to grab smbpasswd entries.  or the like.

smbdes.c smbencrypt.c :

created a function to generate lm and nt owf hashes.

lsaparse.c ntclient.c smbparse.c :

added nt client LSA_AUTH2 code.  it works, too!

pipenetlog.c pipentlsa.c pipesrvsvc.c :

simplification.  code-shuffling.  getting that damn offset right
for the opcode in RPC_HDR.

smb.h :

changed dcinfo xxx_creds to DOM_CRED structures instead of DOM_CHAL.
we might need to store the server times as well.

proto.h :

the usual.
(This used to be commit 82436a3d99d4bdce249ce9ff27fd2ca4b2447e07)

26 years agoupdate SGI build files to latest source
Herb Lewis [Fri, 24 Oct 1997 18:41:08 +0000 (18:41 +0000)]
update SGI build files to latest source
(This used to be commit f492bd51a61cbe6dd4f1971491b760fc7ebd2554)

26 years agopreparing for release of 1.9.18alpha4
Samba Release Account [Fri, 24 Oct 1997 14:40:37 +0000 (14:40 +0000)]
preparing for release of 1.9.18alpha4
(This used to be commit bf5b060bd9d210efe95b3529dfba98c5c49716e0)

26 years agopreparing for release of samba-1.9.18alpha4
Samba Release Account [Fri, 24 Oct 1997 14:39:28 +0000 (14:39 +0000)]
preparing for release of samba-1.9.18alpha4
(This used to be commit e24465890a2fd87fce4f88b97f7ad84a4cc34d7b)