Luke Leighton [Fri, 9 Jun 2000 01:26:42 +0000 (01:26 +0000)]
reverted jeremy's changes that removed NET_USER_INFO_3. will you please
not just undercut work in progress, thank you.
Jeremy Allison [Thu, 8 Jun 2000 22:24:13 +0000 (22:24 +0000)]
Change from "David S. Chappell" <David.Chappell@mail.cc.trincoll.edu>
to make "printer driver file" a share parameter. This fits better with
the new NT printing subsystem.
Jeremy.
Jeremy Allison [Thu, 8 Jun 2000 21:54:50 +0000 (21:54 +0000)]
Fix for map_share_mode to allow desired access of zero map to stat open.
Jeremy.
Jeremy Allison [Thu, 8 Jun 2000 17:50:19 +0000 (17:50 +0000)]
include/smb.h: Removed NET_USER_3 struct from user struct. It doesn't belong there (yet)
as there is no infrastructure for it. Replaced it with a dynamic array
of group SIDs plus a user.
passdb/passdb.c: Added setup_user_sids() function. This is where the lookup should be done,
eventually calling winbind.
smbd/password.c: Changed to call setup_user_sids(). Removed spurious DEBUG(0) statements.
smbd/reply.c: Removed extra parameter to register_vuid().
Jeremy.
Christopher R. Hertel [Thu, 8 Jun 2000 17:42:20 +0000 (17:42 +0000)]
Again, just syncronizing. The a function name was changed in the sll
module but none of Samba uses it directly. The macros are used instead
so the change is hidden. Good.
Christopher R. Hertel [Thu, 8 Jun 2000 17:29:05 +0000 (17:29 +0000)]
Bringing these up to date with what I've got on my site. The fixes include
the change that prevents 'insure' from becomming confused and issuing leak
reports. Some minor speed fixes. That sort of thing.
Chris -)-----
Luke Leighton [Thu, 8 Jun 2000 13:56:07 +0000 (13:56 +0000)]
added a NET_USER_INFO_3 struct to user_struct.
register_vuid fills it with constructed info.
Luke Leighton [Thu, 8 Jun 2000 08:41:28 +0000 (08:41 +0000)]
added se_access_check.
Luke Leighton [Thu, 8 Jun 2000 07:55:24 +0000 (07:55 +0000)]
make_sec_acl was passed pointer to static array ace[2], oops.
Andrew Tridgell [Thu, 8 Jun 2000 07:40:55 +0000 (07:40 +0000)]
- changed HAVE_KERNEL_OPLOCKS to HAVE_KERNEL_OPLOCKS_IRIX
- added autoconf test for HAVE_KERNEL_OPLOCKS_LINUX
Jeremy Allison [Thu, 8 Jun 2000 01:16:42 +0000 (01:16 +0000)]
Moved tdb functions that access parse structs into parse_prs.c
to prevent builkd breaking.
Jeremy.
Jeremy Allison [Thu, 8 Jun 2000 00:17:05 +0000 (00:17 +0000)]
Cause printer SD's to be displayed correctly (full control).
Jeremy.
Jeremy Allison [Wed, 7 Jun 2000 01:49:23 +0000 (01:49 +0000)]
Fixing get/set of security descriptors.
Removed ugly hack for NT printing.
Fixed up tdb parse stuff memory leaks.
Jeremy.
Jeremy Allison [Tue, 6 Jun 2000 20:44:58 +0000 (20:44 +0000)]
Memory leak fixes.
Jeremy.
Andrew Tridgell [Tue, 6 Jun 2000 01:53:05 +0000 (01:53 +0000)]
fixed sizeof() typo
Andrew Tridgell [Tue, 6 Jun 2000 01:47:11 +0000 (01:47 +0000)]
fixed!!
yipee!
the damn "device settings cannot be displayed" error is gone. We
needed to supply a default set of forms. I've added A4 and Letter by
default.
Jeremy Allison [Tue, 6 Jun 2000 01:34:20 +0000 (01:34 +0000)]
Create elements in default, not in read.
Jeremy.
Jeremy Allison [Mon, 5 Jun 2000 20:55:57 +0000 (20:55 +0000)]
Some tidyup fixes (memory leaks etc.). Still no progress with the
"no driver" issue. I'm banging my head against comparitive packet
dumps right now...
Jeremy.
Andrew Tridgell [Mon, 5 Jun 2000 14:06:13 +0000 (14:06 +0000)]
simple increment bug in uniarray_2_dosarray
Andrew Tridgell [Mon, 5 Jun 2000 13:54:26 +0000 (13:54 +0000)]
don't ue nasty /proc/locks hack by default
Andrew Tridgell [Mon, 5 Jun 2000 13:53:56 +0000 (13:53 +0000)]
added locktest2
this uses 16 open file descriptors on 2 servers, with each server
accessed both via POSIX call and SMB calls. The idea is to test
NFS/SMB locking interaction.
Unfortunately the NT NFS locking implementation is so badly broken
that we don't have anything to test against
Tim Potter [Mon, 5 Jun 2000 13:02:09 +0000 (13:02 +0000)]
Forgot attr entry for private dir.
Tim Potter [Mon, 5 Jun 2000 12:58:47 +0000 (12:58 +0000)]
Updated samba appliance example.
Andrew Tridgell [Mon, 5 Jun 2000 11:45:56 +0000 (11:45 +0000)]
fixed a off by one bug in ntforms read from the database
Tim Potter [Mon, 5 Jun 2000 11:35:26 +0000 (11:35 +0000)]
Copied across NT_Security documentation from 2.0
Tim Potter [Mon, 5 Jun 2000 10:44:56 +0000 (10:44 +0000)]
Someone wrote a man page for smbspool - how nice!
Andrew Tridgell [Mon, 5 Jun 2000 09:40:58 +0000 (09:40 +0000)]
added -O (use oplocks) option to locktest
Andrew Tridgell [Sun, 4 Jun 2000 23:44:33 +0000 (23:44 +0000)]
we no longer need the code to cope with setprinter having corrupted
data
Andrew Tridgell [Sun, 4 Jun 2000 23:34:55 +0000 (23:34 +0000)]
no space was being reserved for the security descriptor in the parse
buffer
Andrew Tridgell [Sun, 4 Jun 2000 23:34:11 +0000 (23:34 +0000)]
sec_desc_size() needs to handle a null secdesc
Andrew Tridgell [Sun, 4 Jun 2000 04:17:59 +0000 (04:17 +0000)]
some printer parameters are getting corrupted, possibly by the client
possibly by smbd. Reset them so printing at least works while I try to
figure out what is going on.
Andrew Tridgell [Sun, 4 Jun 2000 02:29:45 +0000 (02:29 +0000)]
added some debug code to track down pack/unpack problems
Andrew Tridgell [Sun, 4 Jun 2000 02:29:00 +0000 (02:29 +0000)]
fixed the pack/unpack of the devicemode
we were being bitten by uint16/uint32 mixups
Andrew Tridgell [Sun, 4 Jun 2000 00:26:08 +0000 (00:26 +0000)]
added a MANGLE_DRIVER_PATH define to chooose whether we stuff with the
driver path do a rename etc.
I turned it off by default as it is causing me no end of problems. The
client will *cache* this path, and that screws things up badly as the
temp directory is no longer there when it is needed.
Andrew Tridgell [Sun, 4 Jun 2000 00:08:50 +0000 (00:08 +0000)]
someone forgot a !
Andrew Tridgell [Sat, 3 Jun 2000 07:20:57 +0000 (07:20 +0000)]
new protos
Andrew Tridgell [Sat, 3 Jun 2000 07:20:44 +0000 (07:20 +0000)]
fixed some ptr declarations
Andrew Tridgell [Sat, 3 Jun 2000 06:34:40 +0000 (06:34 +0000)]
moved secrets fns into secrets.c
Andrew Tridgell [Sat, 3 Jun 2000 06:22:19 +0000 (06:22 +0000)]
moved secrets fns into secrets.c
Andrew Tridgell [Sat, 3 Jun 2000 06:18:43 +0000 (06:18 +0000)]
added %J and %T to run_print_command()
made the run_print_command a varargs fn
Andrew Tridgell [Sat, 3 Jun 2000 06:16:11 +0000 (06:16 +0000)]
moved secrets handling into secrets.c
Jeremy Allison [Sat, 3 Jun 2000 00:53:07 +0000 (00:53 +0000)]
rpc_client/cli_lsarpc.c: Removed unused variable.
rpc_server/srv_spoolss_nt.c: Fixed more memory leaks.
smbd/nttrans.c: Fixed shadow variable problem.
Jeremy.
Jeremy Allison [Fri, 2 Jun 2000 21:16:39 +0000 (21:16 +0000)]
More memory leak and PANIC action fixes.
This is *horrible* code :-(.
Jeremy.
Jeremy Allison [Fri, 2 Jun 2000 20:08:28 +0000 (20:08 +0000)]
More memory leak fixes.
Jeremy.
Jeremy Allison [Fri, 2 Jun 2000 19:42:11 +0000 (19:42 +0000)]
More memory corruption (leaks etc.) fixes.
Jeremy.
Jeremy Allison [Fri, 2 Jun 2000 18:38:49 +0000 (18:38 +0000)]
Fixed null pointer indirect in addprinterex. Still working on problem
with extra directory layer in NT drivers.
Jeremy.
Jeremy Allison [Thu, 1 Jun 2000 21:52:49 +0000 (21:52 +0000)]
More insure found memory leak and corruption fixes.
Jeremy.
Jeremy Allison [Thu, 1 Jun 2000 21:00:37 +0000 (21:00 +0000)]
param/loadparm.c: Looks like someone ran indent on this !
passdb/smbpass.c: Insure uninitialized memory reference fix.
printing/nt_printing.c:
rpc_server/srv_spoolss_nt.c: Insure memory leak fixes.
smbd/unix_acls.c: Shadow ref fix.
Jeremy.
Jeremy Allison [Thu, 1 Jun 2000 18:17:22 +0000 (18:17 +0000)]
Back to building. Now to test with insure.
Added some frees needed to stop memory leaks.
Jeremy.
Jeremy Allison [Thu, 1 Jun 2000 17:01:34 +0000 (17:01 +0000)]
Getting back to a compilable state (not there yet but close).
Added patches for random -> sys_random.
Added set_effective_xxx patches for AFS code.
Memory allocation changes in spoolss code.
Jeremy.
Jeremy Allison [Thu, 1 Jun 2000 02:44:17 +0000 (02:44 +0000)]
More stuff I cvan't afford to lose. I'm realizing how dependent I am
on this bloody CVS link....
Jeremy.
Jeremy Allison [Thu, 1 Jun 2000 02:35:30 +0000 (02:35 +0000)]
Changes I really don't want to lose whilst CVS is playing up.
Dynamic changes to spoolss code.
Jeremy.
Jeremy Allison [Wed, 31 May 2000 17:56:47 +0000 (17:56 +0000)]
Changed interface to set_nt_acl slightly.
Jeremy.
Jeremy Allison [Wed, 31 May 2000 17:56:08 +0000 (17:56 +0000)]
Working UNIX -> NT ACL mapper.
Jeremy.
Jeremy Allison [Wed, 31 May 2000 17:51:28 +0000 (17:51 +0000)]
Fixed interface between new ACLS and nttrans code.
Jeremy.
Jeremy Allison [Wed, 31 May 2000 17:47:39 +0000 (17:47 +0000)]
The functionality in this file has been moved into smbd/unix_acls.c in order
to make the acl functionality regular (we can have smbd/posix_acls etc).
Jeremy.
Luke Leighton [Wed, 31 May 2000 05:42:16 +0000 (05:42 +0000)]
space in front of lp_preexec() causing make proto to not detect this fn.
Luke Leighton [Wed, 31 May 2000 05:39:54 +0000 (05:39 +0000)]
messing about.
Andrew Tridgell [Mon, 29 May 2000 01:28:33 +0000 (01:28 +0000)]
if the tdb stored driver isn't formatted right then return a default
driver
Matthew Chapman [Mon, 29 May 2000 01:23:48 +0000 (01:23 +0000)]
Fixed LsaQueryInformationPolicy level 3 to return primary domain info.
Domain SID is saved in secrets.tdb upon joining domain.
Added "Authenticated Users" and "SYSTEM" well-known SIDs (under
NT Authority).
Andrew Tridgell [Mon, 29 May 2000 01:09:14 +0000 (01:09 +0000)]
fixed some more crashes
this introduces some memory leaks that I need to fix later
Andrew Tridgell [Mon, 29 May 2000 01:08:18 +0000 (01:08 +0000)]
don't return a passwd struct for usernames that don't
belong to us
Luke Leighton [Mon, 29 May 2000 00:20:21 +0000 (00:20 +0000)]
make proto
Luke Leighton [Mon, 29 May 2000 00:15:44 +0000 (00:15 +0000)]
more templates.
Luke Leighton [Sun, 28 May 2000 23:34:34 +0000 (23:34 +0000)]
lp_server_role() + use in srv_reg.
Andrew Tridgell [Sun, 28 May 2000 23:07:50 +0000 (23:07 +0000)]
updated proto.h
Andrew Tridgell [Sun, 28 May 2000 23:07:26 +0000 (23:07 +0000)]
init_unistr takes a const 2nd arg
(ps: I hate const)
Andrew Tridgell [Sun, 28 May 2000 23:06:43 +0000 (23:06 +0000)]
don't build cli_reg in rpc client library until we merge that from tng
Andrew Tridgell [Sun, 28 May 2000 23:00:23 +0000 (23:00 +0000)]
don't free a driver structure from the stack!
Andrew Tridgell [Sun, 28 May 2000 22:59:13 +0000 (22:59 +0000)]
fixed return error code that had 0xC with not enough zeros
Andrew Tridgell [Sun, 28 May 2000 22:50:30 +0000 (22:50 +0000)]
fixed a couple of bugs in the driver return code
Luke Leighton [Sun, 28 May 2000 21:21:07 +0000 (21:21 +0000)]
#ifdef not #if
Luke Leighton [Sun, 28 May 2000 21:01:14 +0000 (21:01 +0000)]
moved notif_y_table struct to spoolss_nt.c only used there.
#ifdef'd driver-code out with define RELIES_ON_SMBD_SPECIFIC_CODE because
spoolssd doesn't link with smbd/*.c (find_service("print$") is not
possible).
Luke Leighton [Sun, 28 May 2000 20:11:04 +0000 (20:11 +0000)]
debug output to /tmp.
Luke Leighton [Sun, 28 May 2000 20:05:30 +0000 (20:05 +0000)]
more SMBtrans, SMBnttrans stuff.
Luke Leighton [Sat, 27 May 2000 19:49:07 +0000 (19:49 +0000)]
SMBulogoffX
Luke Leighton [Sat, 27 May 2000 11:08:05 +0000 (11:08 +0000)]
optional (0of or 1of) with "[+]" semantics.
Luke Leighton [Sat, 27 May 2000 10:34:21 +0000 (10:34 +0000)]
SMBntcreateX
Luke Leighton [Sat, 27 May 2000 10:18:36 +0000 (10:18 +0000)]
SMBnttrans. modified io_uint8s to return address of actual data instead
of a copy, on unmarshalling. removed fstring, made it io_string,
did same thing. io_string() and io_wstring() should be wrapped in
a STRING typedef which is bit-switched on FLG2:Unicode.
Andrew Tridgell [Sat, 27 May 2000 09:53:11 +0000 (09:53 +0000)]
getting and setting security descriptors on printers now works
this needed some fixes in tdb_unpack(). Tim, you'll need to update
Luke Leighton [Sat, 27 May 2000 09:19:57 +0000 (09:19 +0000)]
prs_give_memory in wrong place, also poss. was losing mem.
Luke Leighton [Sat, 27 May 2000 09:19:02 +0000 (09:19 +0000)]
SMBtrans response.
Luke Leighton [Sat, 27 May 2000 08:21:59 +0000 (08:21 +0000)]
SMBtrans and SMBtrans2, some of it.
Andrew Tridgell [Sat, 27 May 2000 07:27:21 +0000 (07:27 +0000)]
fixed return from nt_printing_init()
Luke Leighton [Sat, 27 May 2000 06:02:14 +0000 (06:02 +0000)]
SMBlockingX
Luke Leighton [Sat, 27 May 2000 04:51:02 +0000 (04:51 +0000)]
hack to get setprinter working, level2, null sec desc.
Andrew Tridgell [Sat, 27 May 2000 03:37:05 +0000 (03:37 +0000)]
fixed call of firstkey/nextkey to traverse driver database
Luke Leighton [Sat, 27 May 2000 03:12:06 +0000 (03:12 +0000)]
uninitialised variable "list"
Luke Leighton [Sat, 27 May 2000 02:49:23 +0000 (02:49 +0000)]
TIMESTAMPS ARE IRRITATING AS HELL WHEN DEBUGGING! NGGGH!!
switched default to False, i expect someone to revert this very soon [for
security reasons],
but for now am doing this so i don't get exasperated by seeing stupid
timestamps splitting up debug output.
Luke Leighton [Sat, 27 May 2000 02:27:44 +0000 (02:27 +0000)]
dummy trash in secdesc.
Luke Leighton [Sat, 27 May 2000 02:15:08 +0000 (02:15 +0000)]
bug-fix from tim (insure). dummy fn call for andrew to fill in.
Luke Leighton [Sat, 27 May 2000 02:05:15 +0000 (02:05 +0000)]
unistr_to_dos not unistr_to_ascii
Luke Leighton [Sat, 27 May 2000 01:56:26 +0000 (01:56 +0000)]
fixed nttrans.c
Luke Leighton [Sat, 27 May 2000 01:26:34 +0000 (01:26 +0000)]
security descs in spoolss. needs parse_sec.c nttrans.c broken.
Luke Leighton [Sat, 27 May 2000 01:21:27 +0000 (01:21 +0000)]
cifs parser.
Andrew Tridgell [Sat, 27 May 2000 00:29:10 +0000 (00:29 +0000)]
fixed bugs in fdpass tests
Andrew Tridgell [Sat, 27 May 2000 00:28:02 +0000 (00:28 +0000)]
move srandom to after connect so random stuff in clientgen doesn't
change seed
Shirish Kalele [Fri, 26 May 2000 22:37:08 +0000 (22:37 +0000)]
Fixed memory leak in RPC parsing code.
Problem in prs_set_buffer_size() was Realloc returns a NULL when newsize is zero (equivalent to a free()). We were returning a failure here without resetting the buffer_size or the data_p pointer in the prs_struct. And we weren't checking for a failure from prs_set_buffer_size(). So realloc's to zero size were not reflected in the prs_struct: memory leak.
Jeremy Allison [Fri, 26 May 2000 20:54:46 +0000 (20:54 +0000)]
Compile time warning fixes and a time_t -> uint32 conversion fix.
Jeremy.
Tim Potter [Fri, 26 May 2000 18:44:40 +0000 (18:44 +0000)]
Fixed last remaining instance of MS_DFS to WITH_MSDFS.