tprouty/samba.git
24 years agoreverted jeremy's changes that removed NET_USER_INFO_3. will you please
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.

24 years agoChange from "David S. Chappell" <David.Chappell@mail.cc.trincoll.edu>
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.

24 years agoFix for map_share_mode to allow desired access of zero map to stat open.
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.

24 years agoinclude/smb.h: Removed NET_USER_3 struct from user struct. It doesn't belong there...
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.

24 years agoAgain, just syncronizing. The a function name was changed in the sll
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.

24 years agoBringing these up to date with what I've got on my site. The fixes include
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 -)-----

24 years agoadded a NET_USER_INFO_3 struct to user_struct.
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.

24 years agoadded se_access_check.
Luke Leighton [Thu, 8 Jun 2000 08:41:28 +0000 (08:41 +0000)]
added se_access_check.

24 years agomake_sec_acl was passed pointer to static array ace[2], oops.
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.

24 years ago- changed HAVE_KERNEL_OPLOCKS to HAVE_KERNEL_OPLOCKS_IRIX
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

24 years agoMoved tdb functions that access parse structs into parse_prs.c
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.

24 years agoCause printer SD's to be displayed correctly (full control).
Jeremy Allison [Thu, 8 Jun 2000 00:17:05 +0000 (00:17 +0000)]
Cause printer SD's to be displayed correctly (full control).
Jeremy.

24 years agoFixing get/set of security descriptors.
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.

24 years agoMemory leak fixes.
Jeremy Allison [Tue, 6 Jun 2000 20:44:58 +0000 (20:44 +0000)]
Memory leak fixes.
Jeremy.

24 years agofixed sizeof() typo
Andrew Tridgell [Tue, 6 Jun 2000 01:53:05 +0000 (01:53 +0000)]
fixed sizeof() typo

24 years agofixed!!
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.

24 years agoCreate elements in default, not in read.
Jeremy Allison [Tue, 6 Jun 2000 01:34:20 +0000 (01:34 +0000)]
Create elements in default, not in read.
Jeremy.

24 years agoSome tidyup fixes (memory leaks etc.). Still no progress with the
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.

24 years agosimple increment bug in uniarray_2_dosarray
Andrew Tridgell [Mon, 5 Jun 2000 14:06:13 +0000 (14:06 +0000)]
simple increment bug in uniarray_2_dosarray

24 years agodon't ue nasty /proc/locks hack by default
Andrew Tridgell [Mon, 5 Jun 2000 13:54:26 +0000 (13:54 +0000)]
don't ue nasty /proc/locks hack by default

24 years agoadded locktest2
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

24 years agoForgot attr entry for private dir.
Tim Potter [Mon, 5 Jun 2000 13:02:09 +0000 (13:02 +0000)]
Forgot attr entry for private dir.

24 years agoUpdated samba appliance example.
Tim Potter [Mon, 5 Jun 2000 12:58:47 +0000 (12:58 +0000)]
Updated samba appliance example.

24 years agofixed a off by one bug in ntforms read from the database
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

24 years agoCopied across NT_Security documentation from 2.0
Tim Potter [Mon, 5 Jun 2000 11:35:26 +0000 (11:35 +0000)]
Copied across NT_Security documentation from 2.0

24 years agoSomeone wrote a man page for smbspool - how nice!
Tim Potter [Mon, 5 Jun 2000 10:44:56 +0000 (10:44 +0000)]
Someone wrote a man page for smbspool - how nice!

24 years agoadded -O (use oplocks) option to locktest
Andrew Tridgell [Mon, 5 Jun 2000 09:40:58 +0000 (09:40 +0000)]
added -O (use oplocks) option to locktest

24 years agowe no longer need the code to cope with setprinter having corrupted
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

24 years agono space was being reserved for the security descriptor in the parse
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

24 years agosec_desc_size() needs to handle a null secdesc
Andrew Tridgell [Sun, 4 Jun 2000 23:34:11 +0000 (23:34 +0000)]
sec_desc_size() needs to handle a null secdesc

24 years agosome printer parameters are getting corrupted, possibly by the client
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.

24 years agoadded some debug code to track down pack/unpack problems
Andrew Tridgell [Sun, 4 Jun 2000 02:29:45 +0000 (02:29 +0000)]
added some debug code to track down pack/unpack problems

24 years agofixed the pack/unpack of the devicemode
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

24 years agoadded a MANGLE_DRIVER_PATH define to chooose whether we stuff with the
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.

24 years agosomeone forgot a !
Andrew Tridgell [Sun, 4 Jun 2000 00:08:50 +0000 (00:08 +0000)]
someone forgot a !

24 years agonew protos
Andrew Tridgell [Sat, 3 Jun 2000 07:20:57 +0000 (07:20 +0000)]
new protos

24 years agofixed some ptr declarations
Andrew Tridgell [Sat, 3 Jun 2000 07:20:44 +0000 (07:20 +0000)]
fixed some ptr declarations

24 years agomoved secrets fns into secrets.c
Andrew Tridgell [Sat, 3 Jun 2000 06:34:40 +0000 (06:34 +0000)]
moved secrets fns into secrets.c

24 years agomoved secrets fns into secrets.c
Andrew Tridgell [Sat, 3 Jun 2000 06:22:19 +0000 (06:22 +0000)]
moved secrets fns into secrets.c

24 years agoadded %J and %T to run_print_command()
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

24 years agomoved secrets handling into secrets.c
Andrew Tridgell [Sat, 3 Jun 2000 06:16:11 +0000 (06:16 +0000)]
moved secrets handling into secrets.c

24 years agorpc_client/cli_lsarpc.c: Removed unused variable.
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.

24 years agoMore memory leak and PANIC action fixes.
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.

24 years agoMore memory leak fixes.
Jeremy Allison [Fri, 2 Jun 2000 20:08:28 +0000 (20:08 +0000)]
More memory leak fixes.
Jeremy.

24 years agoMore memory corruption (leaks etc.) fixes.
Jeremy Allison [Fri, 2 Jun 2000 19:42:11 +0000 (19:42 +0000)]
More memory corruption (leaks etc.) fixes.
Jeremy.

24 years agoFixed null pointer indirect in addprinterex. Still working on problem
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.

24 years agoMore insure found memory leak and corruption fixes.
Jeremy Allison [Thu, 1 Jun 2000 21:52:49 +0000 (21:52 +0000)]
More insure found memory leak and corruption fixes.
Jeremy.

24 years agoparam/loadparm.c: Looks like someone ran indent on this !
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.

24 years agoBack to building. Now to test with insure.
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.

24 years agoGetting back to a compilable state (not there yet but close).
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.

24 years agoMore stuff I cvan't afford to lose. I'm realizing how dependent I am
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.

24 years agoChanges I really don't want to lose whilst CVS is playing up.
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.

24 years agoChanged interface to set_nt_acl slightly.
Jeremy Allison [Wed, 31 May 2000 17:56:47 +0000 (17:56 +0000)]
Changed interface to set_nt_acl slightly.
Jeremy.

24 years agoWorking UNIX -> NT ACL mapper.
Jeremy Allison [Wed, 31 May 2000 17:56:08 +0000 (17:56 +0000)]
Working UNIX -> NT ACL mapper.
Jeremy.

24 years agoFixed interface between new ACLS and nttrans code.
Jeremy Allison [Wed, 31 May 2000 17:51:28 +0000 (17:51 +0000)]
Fixed interface between new ACLS and nttrans code.
Jeremy.

24 years agoThe functionality in this file has been moved into smbd/unix_acls.c in order
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.

24 years agospace in front of lp_preexec() causing make proto to not detect this fn.
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.

24 years agomessing about.
Luke Leighton [Wed, 31 May 2000 05:39:54 +0000 (05:39 +0000)]
messing about.

24 years agoif the tdb stored driver isn't formatted right then return a default
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

24 years agoFixed LsaQueryInformationPolicy level 3 to return primary domain info.
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).

24 years agofixed some more crashes
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

24 years agodon't return a passwd struct for usernames that don't
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

24 years agomake proto
Luke Leighton [Mon, 29 May 2000 00:20:21 +0000 (00:20 +0000)]
make proto

24 years agomore templates.
Luke Leighton [Mon, 29 May 2000 00:15:44 +0000 (00:15 +0000)]
more templates.

24 years agolp_server_role() + use in srv_reg.
Luke Leighton [Sun, 28 May 2000 23:34:34 +0000 (23:34 +0000)]
lp_server_role() + use in srv_reg.

24 years agoupdated proto.h
Andrew Tridgell [Sun, 28 May 2000 23:07:50 +0000 (23:07 +0000)]
updated proto.h

24 years agoinit_unistr takes a const 2nd arg
Andrew Tridgell [Sun, 28 May 2000 23:07:26 +0000 (23:07 +0000)]
init_unistr takes a const 2nd arg
(ps: I hate const)

24 years agodon't build cli_reg in rpc client library until we merge that from tng
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

24 years agodon't free a driver structure from the stack!
Andrew Tridgell [Sun, 28 May 2000 23:00:23 +0000 (23:00 +0000)]
don't free a driver structure from the stack!

24 years agofixed return error code that had 0xC with not enough zeros
Andrew Tridgell [Sun, 28 May 2000 22:59:13 +0000 (22:59 +0000)]
fixed return error code that had 0xC with not enough zeros

24 years agofixed a couple of bugs in the driver return code
Andrew Tridgell [Sun, 28 May 2000 22:50:30 +0000 (22:50 +0000)]
fixed a couple of bugs in the driver return code

24 years ago#ifdef not #if
Luke Leighton [Sun, 28 May 2000 21:21:07 +0000 (21:21 +0000)]
#ifdef not #if

24 years agomoved notif_y_table struct to spoolss_nt.c only used there.
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).

24 years agodebug output to /tmp.
Luke Leighton [Sun, 28 May 2000 20:11:04 +0000 (20:11 +0000)]
debug output to /tmp.

24 years agomore SMBtrans, SMBnttrans stuff.
Luke Leighton [Sun, 28 May 2000 20:05:30 +0000 (20:05 +0000)]
more SMBtrans, SMBnttrans stuff.

24 years agoSMBulogoffX
Luke Leighton [Sat, 27 May 2000 19:49:07 +0000 (19:49 +0000)]
SMBulogoffX

24 years agooptional (0of or 1of) with "[+]" semantics.
Luke Leighton [Sat, 27 May 2000 11:08:05 +0000 (11:08 +0000)]
optional (0of or 1of) with "[+]" semantics.

24 years agoSMBntcreateX
Luke Leighton [Sat, 27 May 2000 10:34:21 +0000 (10:34 +0000)]
SMBntcreateX

24 years agoSMBnttrans. modified io_uint8s to return address of actual data instead
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.

24 years agogetting and setting security descriptors on printers now works
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

24 years agoprs_give_memory in wrong place, also poss. was losing mem.
Luke Leighton [Sat, 27 May 2000 09:19:57 +0000 (09:19 +0000)]
prs_give_memory in wrong place, also poss. was losing mem.

24 years agoSMBtrans response.
Luke Leighton [Sat, 27 May 2000 09:19:02 +0000 (09:19 +0000)]
SMBtrans response.

24 years agoSMBtrans and SMBtrans2, some of it.
Luke Leighton [Sat, 27 May 2000 08:21:59 +0000 (08:21 +0000)]
SMBtrans and SMBtrans2, some of it.

24 years agofixed return from nt_printing_init()
Andrew Tridgell [Sat, 27 May 2000 07:27:21 +0000 (07:27 +0000)]
fixed return from nt_printing_init()

24 years agoSMBlockingX
Luke Leighton [Sat, 27 May 2000 06:02:14 +0000 (06:02 +0000)]
SMBlockingX

24 years agohack to get setprinter working, level2, null sec desc.
Luke Leighton [Sat, 27 May 2000 04:51:02 +0000 (04:51 +0000)]
hack to get setprinter working, level2, null sec desc.

24 years agofixed call of firstkey/nextkey to traverse driver database
Andrew Tridgell [Sat, 27 May 2000 03:37:05 +0000 (03:37 +0000)]
fixed call of firstkey/nextkey to traverse driver database

24 years agouninitialised variable "list"
Luke Leighton [Sat, 27 May 2000 03:12:06 +0000 (03:12 +0000)]
uninitialised variable "list"

24 years agoTIMESTAMPS ARE IRRITATING AS HELL WHEN DEBUGGING! NGGGH!!
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.

24 years agodummy trash in secdesc.
Luke Leighton [Sat, 27 May 2000 02:27:44 +0000 (02:27 +0000)]
dummy trash in secdesc.

24 years agobug-fix from tim (insure). dummy fn call for andrew to fill in.
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.

24 years agounistr_to_dos not unistr_to_ascii
Luke Leighton [Sat, 27 May 2000 02:05:15 +0000 (02:05 +0000)]
unistr_to_dos not unistr_to_ascii

24 years agofixed nttrans.c
Luke Leighton [Sat, 27 May 2000 01:56:26 +0000 (01:56 +0000)]
fixed nttrans.c

24 years agosecurity descs in spoolss. needs parse_sec.c nttrans.c broken.
Luke Leighton [Sat, 27 May 2000 01:26:34 +0000 (01:26 +0000)]
security descs in spoolss.  needs parse_sec.c nttrans.c broken.

24 years agocifs parser.
Luke Leighton [Sat, 27 May 2000 01:21:27 +0000 (01:21 +0000)]
cifs parser.

24 years agofixed bugs in fdpass tests
Andrew Tridgell [Sat, 27 May 2000 00:29:10 +0000 (00:29 +0000)]
fixed bugs in fdpass tests

24 years agomove srandom to after connect so random stuff in clientgen doesn't
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

24 years agoFixed memory leak in RPC parsing code.
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.

24 years agoCompile time warning fixes and a time_t -> uint32 conversion fix.
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.

24 years agoFixed last remaining instance of MS_DFS to WITH_MSDFS.
Tim Potter [Fri, 26 May 2000 18:44:40 +0000 (18:44 +0000)]
Fixed last remaining instance of MS_DFS to WITH_MSDFS.