Andrew Tridgell [Fri, 12 May 2000 05:06:27 +0000 (05:06 +0000)]
updated the appliance README
Tim Potter [Fri, 12 May 2000 04:07:44 +0000 (04:07 +0000)]
Manpage version of yodl doc.
Tim Potter [Fri, 12 May 2000 04:03:35 +0000 (04:03 +0000)]
HTML version of yodl doc.
Tim Potter [Fri, 12 May 2000 04:02:43 +0000 (04:02 +0000)]
Changed all references of ntdom to winbind.
Tim Potter [Fri, 12 May 2000 03:04:56 +0000 (03:04 +0000)]
Initial version of appliance spec file.
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
Jeremy Allison [Fri, 12 May 2000 00:11:49 +0000 (00:11 +0000)]
Check fstat return for error.
Jeremy.
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.
Jeremy Allison [Wed, 10 May 2000 18:53:03 +0000 (18:53 +0000)]
Ho hum - forgot timeout case.
Jeremy.
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.
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
Andrew Tridgell [Wed, 10 May 2000 14:47:12 +0000 (14:47 +0000)]
updated appliance Makefile
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
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
Andrew Tridgell [Wed, 10 May 2000 12:58:20 +0000 (12:58 +0000)]
when creating the database zero the reserved space
Andrew Tridgell [Wed, 10 May 2000 11:50:28 +0000 (11:50 +0000)]
proto rebuild
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
Andrew Tridgell [Wed, 10 May 2000 11:49:06 +0000 (11:49 +0000)]
fail a print start on a deleted auto printer
Andrew Tridgell [Wed, 10 May 2000 11:48:30 +0000 (11:48 +0000)]
I found a better way of handling deleted auto printers
Andrew Tridgell [Wed, 10 May 2000 11:45:16 +0000 (11:45 +0000)]
formatting fix
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
Andrew Tridgell [Wed, 10 May 2000 11:08:08 +0000 (11:08 +0000)]
patch from Dominik Kubla <dominik.kubla@uni-mainz.de>
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
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
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
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.
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.
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.
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.
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.
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
Andrew Tridgell [Tue, 9 May 2000 15:08:46 +0000 (15:08 +0000)]
fixed some winbind cache bugs
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.
Andrew Tridgell [Tue, 9 May 2000 13:21:58 +0000 (13:21 +0000)]
don't attempt to build rpcclient in the head branch
Andrew Tridgell [Tue, 9 May 2000 11:44:09 +0000 (11:44 +0000)]
brought across some rpc header files from tng
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.
Andrew Tridgell [Tue, 9 May 2000 11:41:38 +0000 (11:41 +0000)]
added some rules for winbindd and pam_winbind
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.
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
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.
Jeremy Allison [Mon, 8 May 2000 18:14:25 +0000 (18:14 +0000)]
Someone :-) forgot to add secrets.c to HEAD.
Jeremy.
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
Tim Potter [Mon, 8 May 2000 10:38:52 +0000 (10:38 +0000)]
Added winbindd parameters to smb.conf documentation.
Tim Potter [Mon, 8 May 2000 10:00:02 +0000 (10:00 +0000)]
Initial version of winbindd manual page.
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
Andrew Tridgell [Sat, 6 May 2000 15:00:49 +0000 (15:00 +0000)]
fixed a vfs crash bug
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
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.
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.
Herb Lewis [Fri, 5 May 2000 14:31:36 +0000 (14:31 +0000)]
add new release notes chapter to samba for irix package
Tim Potter [Fri, 5 May 2000 04:18:22 +0000 (04:18 +0000)]
Fix for crash bug in OpenConfFile() if no smb.conf exists.
Jeremy Allison [Fri, 5 May 2000 02:39:02 +0000 (02:39 +0000)]
Fix for read_file() returning -1.
Jeremy.
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.
Andrew Tridgell [Fri, 5 May 2000 01:26:52 +0000 (01:26 +0000)]
make debug easier to read
Andrew Tridgell [Fri, 5 May 2000 01:20:25 +0000 (01:20 +0000)]
make debug easier to read
Andrew Tridgell [Fri, 5 May 2000 01:11:23 +0000 (01:11 +0000)]
nasty hack to print posix locks
Andrew Tridgell [Fri, 5 May 2000 00:46:38 +0000 (00:46 +0000)]
example of broken posix lock behaviour
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.
Jeremy Allison [Thu, 4 May 2000 19:01:14 +0000 (19:01 +0000)]
Updated to fix overlapping problem.
Jeremy.
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.
Andrew Tridgell [Thu, 4 May 2000 09:32:21 +0000 (09:32 +0000)]
parameterize the lock timeout
Andrew Tridgell [Thu, 4 May 2000 09:31:57 +0000 (09:31 +0000)]
added a test for the NT byte range lock into smbtorture
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.
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
Andrew Tridgell [Thu, 4 May 2000 06:57:26 +0000 (06:57 +0000)]
need LOCKING_OBJ in locktest now
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.
Andrew Tridgell [Thu, 4 May 2000 06:29:13 +0000 (06:29 +0000)]
fixed message text
Andrew Tridgell [Thu, 4 May 2000 06:28:38 +0000 (06:28 +0000)]
if the stat cache is off then don't initialise it
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
Andrew Tridgell [Thu, 4 May 2000 02:12:33 +0000 (02:12 +0000)]
found a much simpler case that kills the posix locking
Andrew Tridgell [Thu, 4 May 2000 02:01:48 +0000 (02:01 +0000)]
fixed a uninit memory read that insure found
Andrew Tridgell [Thu, 4 May 2000 01:40:51 +0000 (01:40 +0000)]
added ability to present lock tests
Jeremy Allison [Thu, 4 May 2000 00:29:50 +0000 (00:29 +0000)]
Fix for debug statement crash.
Jeremy.
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
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.
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.
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.
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.
Andrew Tridgell [Wed, 3 May 2000 14:49:15 +0000 (14:49 +0000)]
improved the lock test program
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
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.
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.
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.
Jeremy Allison [Wed, 3 May 2000 02:24:01 +0000 (02:24 +0000)]
Insure uninitialized memory read fixes.
Jeremy.
Herb Lewis [Wed, 3 May 2000 01:07:33 +0000 (01:07 +0000)]
merge 2.0 changes
Jeremy Allison [Tue, 2 May 2000 23:56:24 +0000 (23:56 +0000)]
Fixed wild pointer diff found by insure.
Jeremy.
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.
Andrew Tridgell [Tue, 2 May 2000 15:31:55 +0000 (15:31 +0000)]
added support for deleting printers into the spoolss system
Andrew Tridgell [Tue, 2 May 2000 13:55:42 +0000 (13:55 +0000)]
split the username in the vuser structure into a separate
userdom_struct. As the name implies this also contains a domain
(unused at the moment).
This will be important shortly, as operation in appliance mode needs
the domain to be always carried with the username.
Andrew Tridgell [Tue, 2 May 2000 07:50:33 +0000 (07:50 +0000)]
and yet another memory leak - this one in the client
Andrew Tridgell [Tue, 2 May 2000 07:10:54 +0000 (07:10 +0000)]
fixed a memory leak (calling hash_table_init twice)
Andrew Tridgell [Tue, 2 May 2000 07:10:26 +0000 (07:10 +0000)]
fixed a memory leak
Jeremy Allison [Tue, 2 May 2000 03:20:47 +0000 (03:20 +0000)]
Moved uglyness needed in fcntl locking (64->32 bit mapping, NFS
errors etc.) into locking/posix.c, where it is needed. fcntl_lock in lib/util.c
is now very small and clean.
Added (*lock) op to vfs layer.
Jeremy.
Jeremy Allison [Tue, 2 May 2000 02:23:41 +0000 (02:23 +0000)]
Added sys_fork() and sys_getpid() functions to stop the overhead
of doing a system call every time we want to just get our pid.
Jeremy.
Jeremy Allison [Mon, 1 May 2000 19:43:50 +0000 (19:43 +0000)]
locking/posix.c: Fixed double-free nasty crash bug found by insure.
utils/make_smbcodepage.c:
utils/make_unicodemap.c: Insure 'make install' fixes.
Jeremy.
Andrew Tridgell [Mon, 1 May 2000 05:42:39 +0000 (05:42 +0000)]
handle tabs in printcap files
this is needed for lprng
Andrew Tridgell [Mon, 1 May 2000 05:42:09 +0000 (05:42 +0000)]
allow a DEFAULT_PRINTING to be specified in CFLAGS
Andrew Tridgell [Mon, 1 May 2000 00:48:41 +0000 (00:48 +0000)]
fixed typo
Andrew Tridgell [Mon, 1 May 2000 00:41:47 +0000 (00:41 +0000)]
added TDB_INTERNAL, TDB_NOLOCK and TDB_NOMMAP flags.
TDB_INTERNAL replaces the old method of passing a null filename
Andrew Tridgell [Sun, 30 Apr 2000 15:13:15 +0000 (15:13 +0000)]
- added some error checking
- removed the VTP hook in smbd