kai/samba.git
21 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.

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

21 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

21 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

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

21 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

21 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

21 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

21 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

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

21 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

21 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

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

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

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

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

21 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

21 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

21 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

21 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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

21 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

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

21 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

21 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

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

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

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

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

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

21 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

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

21 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

21 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

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

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

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

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

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

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

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

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

21 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

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

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

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

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

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

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

21 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

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

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

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

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

21 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

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

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

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

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

21 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

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

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

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

21 years agoChanged MS_DFS to WITH_MSDFS throughout.
Shirish Kalele [Fri, 26 May 2000 17:10:40 +0000 (17:10 +0000)]
Changed MS_DFS to WITH_MSDFS throughout.
Fixed trans2 calls on IPC$ to let dfs referral calls through.

21 years agoFixed misunderstanding found during CIFS conference. Overlapping lock
Jeremy Allison [Thu, 25 May 2000 20:05:50 +0000 (20:05 +0000)]
Fixed misunderstanding found during CIFS conference. Overlapping lock
ranges (not just included lock ranges) should be handled correctly.
UNIT test still needed.
Jeremy.

21 years agominor fixes
Andrew Tridgell [Wed, 24 May 2000 21:11:34 +0000 (21:11 +0000)]
minor fixes

21 years ago2nd evil simultaneous read-write test. forks. one writer. others
Luke Leighton [Wed, 24 May 2000 07:29:45 +0000 (07:29 +0000)]
2nd evil simultaneous read-write test.  forks.  one writer.  others
are readers.  writes between 1 and 20 bytes.  reads as much as possible.
compares.  repeat until end of buffer (fixed size: 131072 bytes) reached.

21 years agoremoved lp_revalidate()
Andrew Tridgell [Wed, 24 May 2000 07:21:22 +0000 (07:21 +0000)]
removed lp_revalidate()

21 years agonew prototypes
Andrew Tridgell [Wed, 24 May 2000 07:20:27 +0000 (07:20 +0000)]
new prototypes

21 years agowe don't do "revalidate = yes" any more
Andrew Tridgell [Wed, 24 May 2000 07:18:34 +0000 (07:18 +0000)]
we don't do "revalidate = yes" any more

21 years agoadded -u hide_unlock_fails option
Andrew Tridgell [Wed, 24 May 2000 07:15:54 +0000 (07:15 +0000)]
added -u hide_unlock_fails option

21 years agoStart of test blurb.
Tim Potter [Wed, 24 May 2000 06:40:39 +0000 (06:40 +0000)]
Start of test blurb.

21 years agoTest transfer of large random file w/o corruption.
Tim Potter [Wed, 24 May 2000 06:40:11 +0000 (06:40 +0000)]
Test transfer of large random file w/o corruption.

21 years agoFix to return buffer output properly.
Tim Potter [Wed, 24 May 2000 06:39:48 +0000 (06:39 +0000)]
Fix to return buffer output properly.

21 years agoadded tdb_pack() and tdb_unpack()
Andrew Tridgell [Wed, 24 May 2000 06:36:58 +0000 (06:36 +0000)]
added tdb_pack() and tdb_unpack()

21 years agogot rid of lp_revalidate()
Andrew Tridgell [Wed, 24 May 2000 06:36:10 +0000 (06:36 +0000)]
got rid of lp_revalidate()

21 years agoa fairly big change in spoolss.
Andrew Tridgell [Wed, 24 May 2000 06:34:47 +0000 (06:34 +0000)]
a fairly big change in spoolss.
got rid of the forms, drivers and printers files in the nt drivers
directory and instead use a single tdb

note that this is _not_ all finished.

21 years agoa fairly big change in spoolss.
Andrew Tridgell [Wed, 24 May 2000 06:20:42 +0000 (06:20 +0000)]
a fairly big change in spoolss.
got rid of the forms, drivers and printers files in the nt drivers
directory and instead use a single tdb

note that this is _not_ all finished.

21 years agoTest various operations on ipc$ share.
Tim Potter [Wed, 24 May 2000 06:20:08 +0000 (06:20 +0000)]
Test various operations on ipc$ share.

21 years agoa fairly big change in spoolss.
Andrew Tridgell [Wed, 24 May 2000 06:10:21 +0000 (06:10 +0000)]
a fairly big change in spoolss.
got rid of the forms, drivers and printers files in the nt drivers
directory and instead use a single tdb

note that this is _not_ all finished.

21 years agoTestharness for masktest program.
Tim Potter [Wed, 24 May 2000 06:03:00 +0000 (06:03 +0000)]
Testharness for masktest program.

21 years agouse \\ in front of filenames
Andrew Tridgell [Wed, 24 May 2000 06:01:05 +0000 (06:01 +0000)]
use \\ in front of filenames

21 years agoTest wildcard rename function.
Tim Potter [Wed, 24 May 2000 05:58:58 +0000 (05:58 +0000)]
Test wildcard rename function.

21 years agouse lp_workgroup()
Andrew Tridgell [Wed, 24 May 2000 05:56:34 +0000 (05:56 +0000)]
use lp_workgroup()
use \\ in front of filenames
get short name via a separate trans2 level 260 call