samba.git
19 years agoMerge from TNG.
Tim Potter [Fri, 12 May 2000 06:55:09 +0000 (06:55 +0000)]
Merge from TNG.
(This used to be commit af5ded9f17addb4bc89ecb762b9b99d2f99463ab)

19 years agofixed two uninitialised variables
Andrew Tridgell [Fri, 12 May 2000 06:38:41 +0000 (06:38 +0000)]
fixed two uninitialised variables
(This used to be commit eefb36f130f79f2f2c6cfb58c1646aa6ce4303be)

19 years agouse "winbind separator" option for domain/user separator character
Andrew Tridgell [Fri, 12 May 2000 06:30:45 +0000 (06:30 +0000)]
use "winbind separator" option for domain/user separator character
(This used to be commit 6cbb826b154e61085fd651116caf472d4d438c1d)

19 years agocompile with -O2
Andrew Tridgell [Fri, 12 May 2000 06:29:29 +0000 (06:29 +0000)]
compile with -O2
(This used to be commit 5e2a0b3cb9be19596e9885371b3dc96fc8fda1b2)

19 years agoWhile we're all making incompatible tdb changes, I changed the implementation
Tim Potter [Fri, 12 May 2000 06:27:35 +0000 (06:27 +0000)]
While we're all making incompatible tdb changes, I changed the implementation
of tdb_{store,get}_int() to store the length of the string key + 1 so the
stored key contains the trailing NULL character.  This allows normal
string library routines to manipulate keys.

Also renamed tdb_get_int() to tdb_fetch_int() to keep the set of verbs
consistent.
(This used to be commit a423c7c5f21dc4046530b85482dee88dcfcbf070)

19 years agouse "winbind separator" in tng as well
Andrew Tridgell [Fri, 12 May 2000 06:27:34 +0000 (06:27 +0000)]
use "winbind separator" in tng as well
(This used to be commit 0189af544244d7d20e4042cd1238f370968cb7a9)

19 years agobuild in /usr/src/redhat
Andrew Tridgell [Fri, 12 May 2000 06:23:38 +0000 (06:23 +0000)]
build in /usr/src/redhat
(This used to be commit 11328f27816160d77934fb9b2409263f442e4f42)

19 years agoupdated appliance Makefile
Andrew Tridgell [Fri, 12 May 2000 06:04:46 +0000 (06:04 +0000)]
updated appliance Makefile
(This used to be commit 6a89e07f0443cc48b80b22bdec6e18ab764d43f8)

19 years agoadded packaging section to README
Andrew Tridgell [Fri, 12 May 2000 05:46:25 +0000 (05:46 +0000)]
added packaging section to README
(This used to be commit 535e33adaff8cd329ed73243f26114ac3c649365)

19 years agofixed tar command line
Andrew Tridgell [Fri, 12 May 2000 05:43:02 +0000 (05:43 +0000)]
fixed tar command line
(This used to be commit b022e6ab9785588fd4123ae4d819936fb5bfdbdc)

19 years agoexclude CVS files from rpm build
Andrew Tridgell [Fri, 12 May 2000 05:41:17 +0000 (05:41 +0000)]
exclude CVS files from rpm build
(This used to be commit 14fccd68fa2f3ea38dba8da512386f334129fcd1)

19 years agofixed error code for buffer_too_large in trans reply
Andrew Tridgell [Fri, 12 May 2000 05:25:22 +0000 (05:25 +0000)]
fixed error code for buffer_too_large in trans reply
(This used to be commit a0a556a36b8ad0f14f97a1b7ccc5d429bf8f950e)

19 years agodon't install winbind man page twice
Andrew Tridgell [Fri, 12 May 2000 05:22:41 +0000 (05:22 +0000)]
don't install winbind man page twice
(This used to be commit 6e81ba8bace4d966ab53d29c49782a81f669ba24)

19 years agoNuked changelog - use cvs log instead.
Tim Potter [Fri, 12 May 2000 05:21:15 +0000 (05:21 +0000)]
Nuked changelog - use cvs log instead.

Actually install winbindd man page.

Clean up build directory after make.
(This used to be commit 3fa7141feae6fca6df1407ff162664fad44978ed)

19 years agosimple build script for appliance rpm
Tim Potter [Fri, 12 May 2000 05:18:42 +0000 (05:18 +0000)]
simple build script for appliance rpm
(This used to be commit 40b8095a9a367d2fee1e58d12affc5883d4adc0a)

19 years agoadded winbindd man page to spec file
Andrew Tridgell [Fri, 12 May 2000 05:18:33 +0000 (05:18 +0000)]
added winbindd man page to spec file
(This used to be commit 9cc81b62886ff2f6b72632c550a808889d8a47a3)

19 years agofixed a typo
Andrew Tridgell [Fri, 12 May 2000 05:13:51 +0000 (05:13 +0000)]
fixed a typo
(This used to be commit 938a7510f4af58f40b200ae733b2ca7b65740078)

19 years agofixed a problem with appliance operation
Andrew Tridgell [Fri, 12 May 2000 05:10:32 +0000 (05:10 +0000)]
fixed a problem with appliance operation
(This used to be commit acf9286e82b851e25ee863f673bff713a38002e7)

19 years agouse gcc not insure by default in tdb build
Andrew Tridgell [Fri, 12 May 2000 05:08:47 +0000 (05:08 +0000)]
use gcc not insure by default in tdb build
(This used to be commit e20ef3c082f2448587f7d9002d57a897ecde092d)

19 years agoadd winbind manual in SWAT welcome page
Andrew Tridgell [Fri, 12 May 2000 05:08:06 +0000 (05:08 +0000)]
add winbind manual in SWAT welcome page
(This used to be commit d8515aa8878480d44efa17e674bcad29387ad76f)

19 years agouse our primary domain trust account for trusted domain authentication
Andrew Tridgell [Fri, 12 May 2000 05:07:26 +0000 (05:07 +0000)]
use our primary domain trust account for trusted domain authentication
(This used to be commit db90a4b9609a980fa2f4328d38a0d2c60a1384a0)

19 years agoupdated the appliance README
Andrew Tridgell [Fri, 12 May 2000 05:06:27 +0000 (05:06 +0000)]
updated the appliance README
(This used to be commit 0e29eef8374e7bf0002acbd04d5438c5c1690c44)

19 years agoManpage version of yodl doc.
Tim Potter [Fri, 12 May 2000 04:07:44 +0000 (04:07 +0000)]
Manpage version of yodl doc.
(This used to be commit 810726a33b97ef57b8d4bde215fc9f829f59f3c8)

19 years agoHTML version of yodl doc.
Tim Potter [Fri, 12 May 2000 04:03:35 +0000 (04:03 +0000)]
HTML version of yodl doc.
(This used to be commit dce11c9cd1638f2bd4b762e309a2b2e630d8ba01)

19 years agoChanged all references of ntdom to winbind.
Tim Potter [Fri, 12 May 2000 04:02:43 +0000 (04:02 +0000)]
Changed all references of ntdom to winbind.
(This used to be commit 2463f689022812067ef54a8ff0d2346c60e3f451)

19 years agoInitial version of appliance spec file.
Tim Potter [Fri, 12 May 2000 03:04:56 +0000 (03:04 +0000)]
Initial version of appliance spec file.
(This used to be commit 1be483c90b8f59cefdaf05594564882d99f0fbd3)

19 years agoan imcompatible tdb format change (sorry!)
Andrew Tridgell [Fri, 12 May 2000 02:57:24 +0000 (02:57 +0000)]
an imcompatible tdb format change (sorry!)

this will give us a much nicer migration path for the proposed
semaphore code
(This used to be commit 491ab241897a7252fb088c718de4bdf7f43f4ddc)

19 years agoCheck fstat return for error.
Jeremy Allison [Fri, 12 May 2000 00:11:49 +0000 (00:11 +0000)]
Check fstat return for error.
Jeremy.
(This used to be commit c54e77b1f9defce3d6c2e530e0fb460c2b0c54c2)

19 years agolib/util_unistr.c:
Jeremy Allison [Wed, 10 May 2000 22:47:09 +0000 (22:47 +0000)]
lib/util_unistr.c:
libsmb/clilist.c:
rpc_server/srv_spoolss_nt.c:
smbd/trans2.c: Changed unistr_to_ascii to unistr_to_dos - do codepage conversion.
msdfs/msdfs.c: Removed stub unistr_to_dos.
libsmb/pwd_cache.c: Removed obfuscation functions as they don't do anything and
don't add any security.
Jeremy.
(This used to be commit 1ed146467e764e6a81d8f78cd58fb5765ebf5d21)

19 years agoHo hum - forgot timeout case.
Jeremy Allison [Wed, 10 May 2000 18:53:03 +0000 (18:53 +0000)]
Ho hum - forgot timeout case.
Jeremy.
(This used to be commit 597ecd724e0d4ac7c19eb9fb85b3c9910bbfb114)

19 years agoFix from David Collier-Brown - sys_select return was not being checked.
Jeremy Allison [Wed, 10 May 2000 18:27:58 +0000 (18:27 +0000)]
Fix from David Collier-Brown - sys_select return was not being checked.
Jeremy.
(This used to be commit a9c4371a2dc27e499ad6d35af1b598a4af0026c8)

19 years ago- changed smb_getpwnam() to use winbind style usernames
Andrew Tridgell [Wed, 10 May 2000 14:48:33 +0000 (14:48 +0000)]
- changed smb_getpwnam() to use winbind style usernames
- finished ntdom -> winbind rename in head
(This used to be commit ada483cb56453afc6df4ec4be18bfe5e943c7150)

19 years agoupdated appliance Makefile
Andrew Tridgell [Wed, 10 May 2000 14:47:12 +0000 (14:47 +0000)]
updated appliance Makefile
(This used to be commit bfa14cff8c0a1a7a18cb649dc33d5aabc9cd53ac)

19 years agoin head as well ...
Andrew Tridgell [Wed, 10 May 2000 14:17:21 +0000 (14:17 +0000)]
in head as well ...

renamed ntdom to winbind
I think that using winbind in /etc/nsswitch.conf is better than ntdom
(This used to be commit 80f85b5359c26dc26f8f88b984f27cfa4ac34e61)

19 years agotreat a blank "password server =" line as a "*" if in domain security
Andrew Tridgell [Wed, 10 May 2000 13:21:32 +0000 (13:21 +0000)]
treat a blank "password server =" line as a "*" if in domain security
(This used to be commit 5a617c013cce65434d315dc33279a4bc28dc63de)

19 years agowhen creating the database zero the reserved space
Andrew Tridgell [Wed, 10 May 2000 12:58:20 +0000 (12:58 +0000)]
when creating the database zero the reserved space
(This used to be commit a5ca60f62bea988e74e2827fbb848770ac5ae444)

19 years agoproto rebuild
Andrew Tridgell [Wed, 10 May 2000 11:50:28 +0000 (11:50 +0000)]
proto rebuild
(This used to be commit b396dbb1a7a498f9e815f914aa391ccf6f635e20)

19 years agocheck for sighup on each packet - otherwise it can take a _long_ time
Andrew Tridgell [Wed, 10 May 2000 11:49:55 +0000 (11:49 +0000)]
check for sighup on each packet - otherwise it can take a _long_ time
to reload services
(This used to be commit 0fb4ba4e037f25b8b75bcae0ecb1d9b43f0f9e5f)

19 years agofail a print start on a deleted auto printer
Andrew Tridgell [Wed, 10 May 2000 11:49:06 +0000 (11:49 +0000)]
fail a print start on a deleted auto printer
(This used to be commit f1f92bf4da75ec6fccd34b07719d642196665258)

19 years agoI found a better way of handling deleted auto printers
Andrew Tridgell [Wed, 10 May 2000 11:48:30 +0000 (11:48 +0000)]
I found a better way of handling deleted auto printers
(This used to be commit f838707820175f97db82fc32f124c3b69b051e6b)

19 years agoformatting fix
Andrew Tridgell [Wed, 10 May 2000 11:45:16 +0000 (11:45 +0000)]
formatting fix
(This used to be commit 3e710f660253fe6fa5c0ed7435ec66a2ed908b28)

19 years agoremove autoloaded printers that are no longer in /etc/printcap when we
Andrew Tridgell [Wed, 10 May 2000 11:20:46 +0000 (11:20 +0000)]
remove autoloaded printers that are no longer in /etc/printcap when we
get a HUP
(This used to be commit 23f16c5ce60f76633458cc21b2d260d347b1b459)

19 years agopatch from Dominik Kubla <dominik.kubla@uni-mainz.de>
Andrew Tridgell [Wed, 10 May 2000 11:08:08 +0000 (11:08 +0000)]
patch from Dominik Kubla <dominik.kubla@uni-mainz.de>
(This used to be commit 9c598e571decb449607042ba9628f68de9b45043)

19 years agomore merging voodoo
Andrew Tridgell [Wed, 10 May 2000 10:41:59 +0000 (10:41 +0000)]
more merging voodoo

this adds "#define OLD_NTDOMAIN 1" in lots of places. Don't panic -
this isn't permanent, it should go after another few merge steps have
been done
(This used to be commit 92109d7b3c06f240452d39f669ecb8c9c86ab610)

19 years agomore merging
Andrew Tridgell [Wed, 10 May 2000 09:49:55 +0000 (09:49 +0000)]
more merging

it is now at the stage that winbindd can compile in the head branch,
but not link
(This used to be commit d178c00aae77710ae6ff20a7f54a30e3bd8232bb)

19 years ago- add some reserved space to every tdb, this will be
Andrew Tridgell [Wed, 10 May 2000 06:02:37 +0000 (06:02 +0000)]
- add some reserved space to every tdb, this will be
  used for semaphores and future expansion
- update tdb version number to 2
(This used to be commit 5e04885b86791e6ef8b4a316e64d56c6eb05f35d)

19 years agoUse a prime for default tdb hash size - this makes a difference !
Herb Lewis [Wed, 10 May 2000 01:32:51 +0000 (01:32 +0000)]
Use a prime for default tdb hash size - this makes a difference !
Jeremy.
(This used to be commit 400906e6421c150b591b4bf978a641d5aaf8fd09)

19 years agoFix for misunderstanding of fsync added when vfs layer
Herb Lewis [Wed, 10 May 2000 01:31:46 +0000 (01:31 +0000)]
Fix for misunderstanding of fsync added when vfs layer
was done. Samba was doing fsync's (bleagh).
Jeremy.
(This used to be commit f9a52cadbf11f7afcef754a59d783964a2edb5bc)

19 years agoUsing a structure for a tdb key can lead to insideous, hard
Herb Lewis [Wed, 10 May 2000 00:05:27 +0000 (00:05 +0000)]
Using a structure for a tdb key can lead to insideous, hard
to find bugs. On 64 bit IRIX, structure packing means that
a
struct {
SMB_DEV_T dev /* 4 bytes */
SMB_INO_T ino /* 8 bytes */
}

has 4 bytes of padding between the two members. If you
don't null the memory before using it as a tdb key,
you randomly can't find keys depending on what is in
the padding. This caused me immense pain and was hard
to track down.... :-)

Jeremy.
(This used to be commit f2a5ba3f0939f59097f0ef6a25f1cf9b5574f157)

19 years agoFix for check_kernel_oplocks looking for the var directory
Herb Lewis [Tue, 9 May 2000 22:07:07 +0000 (22:07 +0000)]
Fix for check_kernel_oplocks looking for the var directory
before it may need to be created.
Jeremy.
(This used to be commit 6bf74da8b84a22aaddb0fbb160f02621abba01ba)

19 years agoThis is reall Jeremy commiting as Herb at SGI labs. Fix
Herb Lewis [Tue, 9 May 2000 22:05:39 +0000 (22:05 +0000)]
This is reall Jeremy commiting as Herb at SGI labs. Fix
for "socket operation on non-socket" error in log.smb
on HEAD branch startup (server_fd not initialized to -1).
Jeremy.
(This used to be commit ebb4f76550062b0ea2005a2b8842641a2c91f528)

19 years ago- use smb_gwtpwnam() in another couple of places
Andrew Tridgell [Tue, 9 May 2000 15:09:52 +0000 (15:09 +0000)]
- use smb_gwtpwnam() in another couple of places
- don't call add/del user if the scripts are empty
(This used to be commit 43860215d4d16cb1bacdc77f1c46c54e4c54abd7)

19 years agofixed some winbind cache bugs
Andrew Tridgell [Tue, 9 May 2000 15:08:46 +0000 (15:08 +0000)]
fixed some winbind cache bugs
(This used to be commit 3cac3ccf047ce9a5c28916f9a2b1b3d38741e373)

19 years agothe beginnings of a new scheme I've working on to allow an easier
Andrew Tridgell [Tue, 9 May 2000 13:28:19 +0000 (13:28 +0000)]
the beginnings of a new scheme I've working on to allow an easier
head/tng merge.

It goes something like this:

- headers from tng get copied over one at a time

- the old headers get renamed to *_old.h

- server side code that used the old headers gets a
  #define OLD_NTDOMAIN 1
  #undef OLD_NTDOMAIN
  at the start and end of the code

- mkproto.awk recognises these special defines and does magic stuff so
  that each .c file sees the right headers

- we start moving the rpc client libraries from tng to head.

if this goes OK then, in theory, we should be able to move the client
side rpc code from tng to head without disturbing the existing head
server side code. Then when that works we can consider merging the
server side.

it remains to be seen if this scheme will work. So far I've moved
rpc_samr.h and don't seem to have broken anything.

Note this this is still a very delicate operation, as at every step of
the way I want to keep head fully functional. Please don't take part
unless you discuss it with me first.
(This used to be commit f76c037255a6a79d11bec65e863e009a41a4f0fd)

19 years agodon't attempt to build rpcclient in the head branch
Andrew Tridgell [Tue, 9 May 2000 13:21:58 +0000 (13:21 +0000)]
don't attempt to build rpcclient in the head branch
(This used to be commit 1b6d01e1152d1ac64e3b1f721227d06061982112)

19 years agobrought across some rpc header files from tng
Andrew Tridgell [Tue, 9 May 2000 11:44:09 +0000 (11:44 +0000)]
brought across some rpc header files from tng
(This used to be commit db241a0b09fc38916db3b1a30aa493910d22567b)

19 years agobrought the winbindd code into head
Andrew Tridgell [Tue, 9 May 2000 11:43:00 +0000 (11:43 +0000)]
brought the winbindd code into head

this does not yet compile, but I'm working on that.
(This used to be commit 3fb862531a4e78dca13d16d958517b16e5bdd4e2)

19 years agoadded some rules for winbindd and pam_winbind
Andrew Tridgell [Tue, 9 May 2000 11:41:38 +0000 (11:41 +0000)]
added some rules for winbindd and pam_winbind
(This used to be commit 6c5d139844334191f78257fbc9f01d0fa0c2bcf0)

19 years agoAdded tdb_store_by_string() and tdb_fetch_by_string() functions to store
Tim Potter [Tue, 9 May 2000 06:22:12 +0000 (06:22 +0000)]
Added tdb_store_by_string() and tdb_fetch_by_string() functions to store
data with null terminated string keys.
(This used to be commit d58146321b6fe50e1cc1a73da80c3d2e8c3412dc)

19 years agothe beginnings of a description of how to setup a Samba appliance
Andrew Tridgell [Tue, 9 May 2000 04:02:31 +0000 (04:02 +0000)]
the beginnings of a description of how to setup a Samba appliance
(This used to be commit ec2b77e97d8beaee9d2352411da01b302d0875c3)

19 years agoFix for VMS platforms from "John E. Malmberg" <wb8tyw@qsl.net>
Jeremy Allison [Mon, 8 May 2000 18:24:26 +0000 (18:24 +0000)]
Fix for VMS platforms from "John E. Malmberg" <wb8tyw@qsl.net>
Jeremy.
(This used to be commit eb281324fa409296bb3f29c9b7c59b2337fadc0d)

19 years agoSomeone :-) forgot to add secrets.c to HEAD.
Jeremy Allison [Mon, 8 May 2000 18:14:25 +0000 (18:14 +0000)]
Someone :-) forgot to add secrets.c to HEAD.
Jeremy.
(This used to be commit ac40971f30e00a93fc5e138bfd1afa05cd8dea4b)

19 years agoadded secrets.tdb and changed storage of trust account password to use
Andrew Tridgell [Mon, 8 May 2000 10:42:21 +0000 (10:42 +0000)]
added secrets.tdb and changed storage of trust account password to use
it
(This used to be commit 88ad00b82acc4636ab57dfe710af08ea85b82ff1)

19 years agoAdded winbindd parameters to smb.conf documentation.
Tim Potter [Mon, 8 May 2000 10:38:52 +0000 (10:38 +0000)]
Added winbindd parameters to smb.conf documentation.
(This used to be commit 1d3bd3c486bf9f6b6c9d5f6207f591f465517e1e)

19 years agoInitial version of winbindd manual page.
Tim Potter [Mon, 8 May 2000 10:00:02 +0000 (10:00 +0000)]
Initial version of winbindd manual page.
(This used to be commit dbe26556e70bf1b3d5770b4fd21e146650e82a91)

19 years agoadded winbindd options in head branch, so it is possible to combine
Andrew Tridgell [Sat, 6 May 2000 15:06:45 +0000 (15:06 +0000)]
added winbindd options in head branch, so it is possible to combine
branches
(This used to be commit cd5e2494279792f8516947a63bf313f8142a52c0)

19 years agofixed a vfs crash bug
Andrew Tridgell [Sat, 6 May 2000 15:00:49 +0000 (15:00 +0000)]
fixed a vfs crash bug
(This used to be commit 76da586396c85b6614579b9234eec34f57c12ffe)

19 years agosigned/unsigned fixes so we can handle a lock base close to 2^32
Andrew Tridgell [Sat, 6 May 2000 01:36:59 +0000 (01:36 +0000)]
signed/unsigned fixes so we can handle a lock base close to 2^32
(This used to be commit 0ce2ca5ccdd0e2e7711dcbf66b72a183b2692cfe)

19 years agoFix for uninitialized memory read in brlock code. brl_locktest now needs
Jeremy Allison [Fri, 5 May 2000 20:50:22 +0000 (20:50 +0000)]
Fix for uninitialized memory read in brlock code. brl_locktest now needs
to correctly set the fnum, as the brl_conflict code looks at it.
Jeremy.
(This used to be commit df87259a356b91989604a10b3691480dcd16cf3f)

19 years agoFix for dual unix_to_dos conversion in readdir from A.V.Shutko <AVShutko@mail.khstu.ru>
Jeremy Allison [Fri, 5 May 2000 19:57:02 +0000 (19:57 +0000)]
Fix for dual unix_to_dos conversion in readdir from A.V.Shutko <AVShutko@mail.khstu.ru>
Jeremy.
(This used to be commit 1152f2ed008dbfa7e2b1cb9719d31575e7d05b89)

19 years agoadd new release notes chapter to samba for irix package
Herb Lewis [Fri, 5 May 2000 14:31:36 +0000 (14:31 +0000)]
add new release notes chapter to samba for irix package
(This used to be commit e2de1cf2221f56a5ee3537664d211cdcdfe74785)

19 years agoFix for crash bug in OpenConfFile() if no smb.conf exists.
Tim Potter [Fri, 5 May 2000 04:18:22 +0000 (04:18 +0000)]
Fix for crash bug in OpenConfFile() if no smb.conf exists.
(This used to be commit b531ddb2657e9eac1c1e9f32344b67c3963ce30a)

19 years agoFix for read_file() returning -1.
Jeremy Allison [Fri, 5 May 2000 02:39:02 +0000 (02:39 +0000)]
Fix for read_file() returning -1.
Jeremy.
(This used to be commit b899943658bee90994b416aa6caff0ee7cab5f28)

19 years agoTwo fixes. Added missong logic & case in lock split code.
Jeremy Allison [Fri, 5 May 2000 02:17:39 +0000 (02:17 +0000)]
Two fixes. Added missong logic & case in lock split code.
Fixed range split into two, as DLIST_ADD has the wrong semantics...
Jeremy.
(This used to be commit 82681edda14dcc3d58bb303cfac5452072de67df)

19 years agomake debug easier to read
Andrew Tridgell [Fri, 5 May 2000 01:26:52 +0000 (01:26 +0000)]
make debug easier to read
(This used to be commit c14a2616441b2f3357a081c6dbae7d5b677e5a12)

19 years agomake debug easier to read
Andrew Tridgell [Fri, 5 May 2000 01:20:25 +0000 (01:20 +0000)]
make debug easier to read
(This used to be commit d64bb07f0ad0efa1a20015b620ae33fb082b1e44)

19 years agonasty hack to print posix locks
Andrew Tridgell [Fri, 5 May 2000 01:11:23 +0000 (01:11 +0000)]
nasty hack to print posix locks
(This used to be commit efc9752f1e00b38abe3b5d3a98627a9fe6122bc4)

19 years agoexample of broken posix lock behaviour
Andrew Tridgell [Fri, 5 May 2000 00:46:38 +0000 (00:46 +0000)]
example of broken posix lock behaviour
(This used to be commit b3999f3b20d470b9c873b297e7aeb043da61588d)

19 years agorpc_server/srv_lsa.c: Bring into sync with 2.0.x.
Jeremy Allison [Thu, 4 May 2000 21:57:28 +0000 (21:57 +0000)]
rpc_server/srv_lsa.c: Bring into sync with 2.0.x.
rpc_server/srv_pipe_hnd.c: Bring into sync with 2.0.x.
smbd/blocking.c: Improve blocking debug reporting.
utils/torture.c: Added check for NT locking bug.
Jeremy.
(This used to be commit e8ff6d3fb5537c39611a5784bf7216ae812acd27)

19 years agoUpdated to fix overlapping problem.
Jeremy Allison [Thu, 4 May 2000 19:01:14 +0000 (19:01 +0000)]
Updated to fix overlapping problem.
Jeremy.
(This used to be commit 9bdfe0f5023988962f8a8b4d847de7a0ee27f85c)

19 years agoa minimal change to get appliance mode to work with winbindd
Andrew Tridgell [Thu, 4 May 2000 16:01:47 +0000 (16:01 +0000)]
a minimal change to get appliance mode to work with winbindd

we needed to accept usernames of the form DOMAIN/user, which means we
needed to pass the domain to a getpwnam() like routine in certain
critical spots.

What I'd rather do is get rid of "char *user" everywhere and use the
new userdom_struct, but that will have to wait a few days.
(This used to be commit 8b7a10febead8be182e7d5b1d68259e31530b69c)

19 years agoparameterize the lock timeout
Andrew Tridgell [Thu, 4 May 2000 09:32:21 +0000 (09:32 +0000)]
parameterize the lock timeout
(This used to be commit 98ad4095ccc8d0349d05e6e9223eaad057029626)

19 years agoadded a test for the NT byte range lock into smbtorture
Andrew Tridgell [Thu, 4 May 2000 09:31:57 +0000 (09:31 +0000)]
added a test for the NT byte range lock into smbtorture
(This used to be commit 7cfd45cc56e01a20a122c7742dc7e6a4ed59415f)

19 years agoan even simpler example of NT gettings its locking code wrong. This
Andrew Tridgell [Thu, 4 May 2000 08:58:07 +0000 (08:58 +0000)]
an even simpler example of NT gettings its locking code wrong. This
one doesn't even need two connections to the box, just two file handles.

it is a very simple case actually, and one I think will happen quite a
lot in real life. I wonder how they haven't noticed it? I checked and
W2K has the same bug.
(This used to be commit 0b335e415818028ac0daad5f99c2fd9086a2a656)

19 years ago - use full_name instead of real_name
Andrew Tridgell [Thu, 4 May 2000 07:59:34 +0000 (07:59 +0000)]
 - use full_name instead of real_name
 - got rid of guest map code in lpq parser
(This used to be commit 8e53f781d3cf6a7007764916a0d8e8f1abea1f66)

19 years agoneed LOCKING_OBJ in locktest now
Andrew Tridgell [Thu, 4 May 2000 06:57:26 +0000 (06:57 +0000)]
need LOCKING_OBJ in locktest now
(This used to be commit 89e71994450f479a0f3839f192d868924626fc84)

19 years agomore locktest improvements
Andrew Tridgell [Thu, 4 May 2000 06:30:17 +0000 (06:30 +0000)]
more locktest improvements

the current preset tests show a very interesting NT bug - it sometimes
refuses a lock that it shouldn't.
(This used to be commit 85b5dc64cf7cc80567f9069a48c4d20c10ccec01)

19 years agofixed message text
Andrew Tridgell [Thu, 4 May 2000 06:29:13 +0000 (06:29 +0000)]
fixed message text
(This used to be commit 99e522023eae7cf1a88e5de50f2b09df3ea318d3)

19 years agoif the stat cache is off then don't initialise it
Andrew Tridgell [Thu, 4 May 2000 06:28:38 +0000 (06:28 +0000)]
if the stat cache is off then don't initialise it
(This used to be commit cd5dcd9e659a7255f03eb496c0202986375e73a6)

19 years agoadded -A analyze mode to locktest - it can now automatically prune
Andrew Tridgell [Thu, 4 May 2000 04:14:23 +0000 (04:14 +0000)]
added -A analyze mode to locktest - it can now automatically prune
the list of locks that cause a failure
(This used to be commit 0beee59432f17f90a1c4c2c68a7ea6022b5d0908)

19 years agofound a much simpler case that kills the posix locking
Andrew Tridgell [Thu, 4 May 2000 02:12:33 +0000 (02:12 +0000)]
found a much simpler case that kills the posix locking
(This used to be commit b703cecf81dc62234171eaaa4c0cae448f144e1f)

19 years agofixed a uninit memory read that insure found
Andrew Tridgell [Thu, 4 May 2000 02:01:48 +0000 (02:01 +0000)]
fixed a uninit memory read that insure found
(This used to be commit 43fe5b98b4514d59e1c4bbc54a628cfbd771fc4f)

19 years agoadded ability to present lock tests
Andrew Tridgell [Thu, 4 May 2000 01:40:51 +0000 (01:40 +0000)]
added ability to present lock tests
(This used to be commit 3fc6a467fc3dfd2a59d4509ec52172d2dd048c80)

19 years agoFix for debug statement crash.
Jeremy Allison [Thu, 4 May 2000 00:29:50 +0000 (00:29 +0000)]
Fix for debug statement crash.
Jeremy.
(This used to be commit 57bf92d90147b207664152d44ce4bfb5235dc7d8)

19 years agounicode code pages are detected as compiler intermediate file so set to
Herb Lewis [Wed, 3 May 2000 22:29:54 +0000 (22:29 +0000)]
unicode code pages are detected as compiler intermediate file so set to
nostrip
(This used to be commit 5e7bc9c3e705cfaa12bd0071a873c79e2097a5a0)

19 years agoFix based on Elrond's code to reduce the store size on removing dead records.
Jeremy Allison [Wed, 3 May 2000 20:33:25 +0000 (20:33 +0000)]
Fix based on Elrond's code to reduce the store size on removing dead records.
Jeremy.
(This used to be commit 09e92a61a966d09f543ba541ddb3240cc4718579)

19 years agoFixed the bug locktest.c found, it was an off-by-one error in the non-overlap
Jeremy Allison [Wed, 3 May 2000 19:37:47 +0000 (19:37 +0000)]
Fixed the bug locktest.c found, it was an off-by-one error in the non-overlap
case.
Jeremy.
(This used to be commit 65150c408a5254215de89c8c774c33c4d011c2c0)

19 years agoFixed silly bug where I wasn't checking for matching fd's in closing a file.
Jeremy Allison [Wed, 3 May 2000 18:57:21 +0000 (18:57 +0000)]
Fixed silly bug where I wasn't checking for matching fd's in closing a file.
This caused smbd crashes on SIGKILL.
Jeremy.
(This used to be commit d4dcefd12d14df112f083c312acbea0196bc5c23)

19 years agoAdded range info to the panic message to track down the bug with
Jeremy Allison [Wed, 3 May 2000 17:50:42 +0000 (17:50 +0000)]
Added range info to the panic message to track down the bug with
locktest.
Jeremy.
(This used to be commit 91f038356b7efa04cf4bfa5e6afd8b144b6b4ad5)

19 years agoimproved the lock test program
Andrew Tridgell [Wed, 3 May 2000 14:49:15 +0000 (14:49 +0000)]
improved the lock test program
(This used to be commit a0a3931c6e5824121bf4a8d075ef24b9b70e8aa1)