kai/samba.git
21 years agofixed tar command line
Andrew Tridgell [Fri, 12 May 2000 05:43:02 +0000 (05:43 +0000)]
fixed tar command line

21 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

21 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

21 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

21 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.

21 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

21 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

21 years agofixed a typo
Andrew Tridgell [Fri, 12 May 2000 05:13:51 +0000 (05:13 +0000)]
fixed a typo

21 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

21 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

21 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

21 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

21 years agoupdated the appliance README
Andrew Tridgell [Fri, 12 May 2000 05:06:27 +0000 (05:06 +0000)]
updated the appliance README

21 years agoManpage version of yodl doc.
Tim Potter [Fri, 12 May 2000 04:07:44 +0000 (04:07 +0000)]
Manpage version of yodl doc.

21 years agoHTML version of yodl doc.
Tim Potter [Fri, 12 May 2000 04:03:35 +0000 (04:03 +0000)]
HTML version of yodl doc.

21 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.

21 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.

21 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

21 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.

21 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.

21 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.

21 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.

21 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

21 years agoupdated appliance Makefile
Andrew Tridgell [Wed, 10 May 2000 14:47:12 +0000 (14:47 +0000)]
updated appliance Makefile

21 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

21 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

21 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

21 years agoproto rebuild
Andrew Tridgell [Wed, 10 May 2000 11:50:28 +0000 (11:50 +0000)]
proto rebuild

21 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

21 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

21 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

21 years agoformatting fix
Andrew Tridgell [Wed, 10 May 2000 11:45:16 +0000 (11:45 +0000)]
formatting fix

21 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

21 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>

21 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

21 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

21 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

21 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.

21 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.

21 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.

21 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.

21 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.

21 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

21 years agofixed some winbind cache bugs
Andrew Tridgell [Tue, 9 May 2000 15:08:46 +0000 (15:08 +0000)]
fixed some winbind cache bugs

21 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.

21 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

21 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

21 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.

21 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

21 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.

21 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

21 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.

21 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.

21 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

21 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.

21 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.

21 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

21 years agofixed a vfs crash bug
Andrew Tridgell [Sat, 6 May 2000 15:00:49 +0000 (15:00 +0000)]
fixed a vfs crash bug

21 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

21 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.

21 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.

21 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

21 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.

21 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.

21 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.

21 years agomake debug easier to read
Andrew Tridgell [Fri, 5 May 2000 01:26:52 +0000 (01:26 +0000)]
make debug easier to read

21 years agomake debug easier to read
Andrew Tridgell [Fri, 5 May 2000 01:20:25 +0000 (01:20 +0000)]
make debug easier to read

21 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

21 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

21 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.

21 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.

21 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.

21 years agoparameterize the lock timeout
Andrew Tridgell [Thu, 4 May 2000 09:32:21 +0000 (09:32 +0000)]
parameterize the lock timeout

21 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

21 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.

21 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

21 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

21 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.

21 years agofixed message text
Andrew Tridgell [Thu, 4 May 2000 06:29:13 +0000 (06:29 +0000)]
fixed message text

21 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

21 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

21 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

21 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

21 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

21 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.

21 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

21 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.

21 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.

21 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.

21 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.

21 years agoimproved the lock test program
Andrew Tridgell [Wed, 3 May 2000 14:49:15 +0000 (14:49 +0000)]
improved the lock test program

21 years ago- clear dead locks at startup
Andrew Tridgell [Wed, 3 May 2000 14:29:05 +0000 (14:29 +0000)]
- clear dead locks at startup

- fixed a bug which caused lock records to not decrease in size

21 years agoadded a nasty lock testing program
Andrew Tridgell [Wed, 3 May 2000 13:54:28 +0000 (13:54 +0000)]
added a nasty lock testing program

it opens 2 connections to each of 2 servers, and opens 2 fnums on the
same file on each connection (a total of 8 file descriptors)

then it does random lock/unlock/reopen requests in a 100 byte range on
the file and compares the results from the 2 servers.

strangely enough, NT fails this test against itself right now - I'm
still trying to figure that out.

21 years agoFix for stacking locks in brlock and POSIX. Windows only allows a read lock
Jeremy Allison [Wed, 3 May 2000 02:27:41 +0000 (02:27 +0000)]
Fix for stacking locks in brlock and POSIX. Windows only allows a read lock
to overlay a write lock on the same fnum. When overlaying read locks onto
a write lock, the number of locks is counted, and the first unlock removes
the write lock and downgrades this to a read lock. Do the same when mapping
to POSIX.
Jeremy.

21 years agoAdded read overlay write lock on same fnum test to locktest2.
Jeremy Allison [Wed, 3 May 2000 02:24:56 +0000 (02:24 +0000)]
Added read overlay write lock on same fnum test to locktest2.
Added locktest5 for locking stacks.
Jeremy.

21 years agoInsure uninitialized memory read fixes.
Jeremy Allison [Wed, 3 May 2000 02:24:01 +0000 (02:24 +0000)]
Insure uninitialized memory read fixes.
Jeremy.

21 years agomerge 2.0 changes
Herb Lewis [Wed, 3 May 2000 01:07:33 +0000 (01:07 +0000)]
merge 2.0 changes

21 years agoFixed wild pointer diff found by insure.
Jeremy Allison [Tue, 2 May 2000 23:56:24 +0000 (23:56 +0000)]
Fixed wild pointer diff found by insure.
Jeremy.

21 years agoImplemented the last (I hope:-) part of the locking puzzle, the reference
Jeremy Allison [Tue, 2 May 2000 21:07:25 +0000 (21:07 +0000)]
Implemented the last (I hope:-) part of the locking puzzle, the reference
counting when Windows downgrades a write lock to a read lock, then reference
counts the unlocks to match the locks.
With this code the POSIX unlock isn't done until the final Windows unlock.
Jeremy.

21 years agoadded support for deleting printers into the spoolss system
Andrew Tridgell [Tue, 2 May 2000 15:31:55 +0000 (15:31 +0000)]
added support for deleting printers into the spoolss system