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

21 years agoEnvironment variables for single server test scripts.
Tim Potter [Wed, 24 May 2000 05:52:23 +0000 (05:52 +0000)]
Environment variables for single server test scripts.

21 years agoRoutines for driving smbclient from DejaGnu.
Tim Potter [Wed, 24 May 2000 05:51:52 +0000 (05:51 +0000)]
Routines for driving smbclient from DejaGnu.

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

21 years agotorture test:
Luke Leighton [Wed, 24 May 2000 05:40:03 +0000 (05:40 +0000)]
torture test:

same cli_state:
open file rw/denynone, open *same* file r/denynone.
write to file (fd1) read from file (fd2).  compare.  repeat.

two cli_states:
open file rw/denynone (cli1), open *same* file r/denynone (cli2).
write to file (fd1) read from file (fd2).  compare.  repeat.

21 years agoDid a proper fix for the file access on IPC$. Denied all pipe opens on
Jeremy Allison [Tue, 23 May 2000 17:57:51 +0000 (17:57 +0000)]
Did a proper fix for the file access on IPC$. Denied all pipe opens on
trans2 open calls as we don't have the pipe open response coded up yet.
Jeremy.

21 years agoFixed bug where file access was allowed on IPC$ share.
Jeremy Allison [Tue, 23 May 2000 01:27:19 +0000 (01:27 +0000)]
Fixed bug where file access was allowed on IPC$ share.
Return correct error codes on invalid share name.
Jeremy.

21 years agoAdded -W workgroup command line option.
Tim Potter [Mon, 22 May 2000 23:38:56 +0000 (23:38 +0000)]
Added -W workgroup command line option.

Added call to codepage_initialise().

21 years agoModify NT driver heirarchy to fix HP bug with duplicate printer driver
Jeremy Allison [Mon, 22 May 2000 20:04:50 +0000 (20:04 +0000)]
Modify NT driver heirarchy to fix HP bug with duplicate printer driver
filenames :-).
Jeremy.

21 years agomore aparser stuff - we now handle everything but the idl headers in srvsvc.idl
Andrew Tridgell [Mon, 22 May 2000 09:09:37 +0000 (09:09 +0000)]
more aparser stuff - we now handle everything but the idl headers in srvsvc.idl

21 years agoAdded the NETDFS pipe to allow remote administration of the msdfs symlinks
Shirish Kalele [Thu, 18 May 2000 18:43:53 +0000 (18:43 +0000)]
Added the NETDFS pipe to allow remote administration of the msdfs symlinks
on the samba server.

21 years agoChanged name of case_sensitive in mask_match to avaid gcc "shadow global"
Jeremy Allison [Wed, 17 May 2000 20:54:56 +0000 (20:54 +0000)]
Changed name of case_sensitive in mask_match to avaid gcc "shadow global"
warning.
Jeremy.

21 years agoFixed bug I introduced last night (sorry). Now truncate incoming prs_struct
Jeremy Allison [Wed, 17 May 2000 19:17:16 +0000 (19:17 +0000)]
Fixed bug I introduced last night (sorry). Now truncate incoming prs_struct
buffer size to exact size of incoming data to prevent read overruns into slop
space.
Jeremy.

21 years agoerror check in vluke.c
Andrew Tridgell [Wed, 17 May 2000 08:08:09 +0000 (08:08 +0000)]
error check in vluke.c
more conversion from idl to .struct of srvsvc

21 years agostarted converting matty's srvsvc.idl to a .struct file
Andrew Tridgell [Wed, 17 May 2000 07:12:10 +0000 (07:12 +0000)]
started converting matty's srvsvc.idl to a .struct file

21 years agoadded primitive define macros
Andrew Tridgell [Wed, 17 May 2000 07:10:50 +0000 (07:10 +0000)]
added primitive define macros
started converting matty's srvsvc.idl to a .struct file

21 years ago- added typedefs
Andrew Tridgell [Wed, 17 May 2000 06:53:21 +0000 (06:53 +0000)]
- added typedefs
- added parse error checking
- made parser more flexible

21 years agoFixed bug where mallocd size of prs_struct could be larger than
Jeremy Allison [Wed, 17 May 2000 03:12:56 +0000 (03:12 +0000)]
Fixed bug where mallocd size of prs_struct could be larger than
incoming packet. Ensure new alloced memory is zeroed before use.
Jeremy.

21 years agoUpdated VFS examples to use ftruncate() and lock() functions.
Tim Potter [Wed, 17 May 2000 02:48:04 +0000 (02:48 +0000)]
Updated VFS examples to use ftruncate() and lock() functions.

21 years agominor parse updates
Andrew Tridgell [Wed, 17 May 2000 02:16:44 +0000 (02:16 +0000)]
minor parse updates

21 years agoCutover from 2.2.x - missed in merge.
Jeremy Allison [Wed, 17 May 2000 02:08:55 +0000 (02:08 +0000)]
Cutover from 2.2.x - missed in merge.
Jeremy.

21 years agoSynced up srv_samr with HP changes. Added error checking to original code
Jeremy Allison [Tue, 16 May 2000 19:45:26 +0000 (19:45 +0000)]
Synced up srv_samr with HP changes. Added error checking to original code
- what a concept :-). All this code will be replaced with TNG stuff anyway,
so not a big deal....
Jeremy.

21 years agoa useful script, just go "./build foo.struct" and you get a full
Andrew Tridgell [Tue, 16 May 2000 15:04:43 +0000 (15:04 +0000)]
a useful script, just go "./build foo.struct" and you get a full
vluke program for all structures in the foo.strct file

21 years agothe vluke program now takes a structure name on the command line
Andrew Tridgell [Tue, 16 May 2000 15:03:48 +0000 (15:03 +0000)]
the vluke program now takes a structure name on the command line

21 years agotake the sructure name to run through vluke on the command line
Andrew Tridgell [Tue, 16 May 2000 14:02:31 +0000 (14:02 +0000)]
take the sructure name to run through vluke on the command line

21 years agoadded the ".trailer" type, to mark where a packet turns into a trailer
Andrew Tridgell [Tue, 16 May 2000 12:43:53 +0000 (12:43 +0000)]
added the ".trailer" type, to mark where a packet turns into a trailer
this now gives us enough to parse complete function calls, including
the return values

21 years agoanother awk parser update
Andrew Tridgell [Tue, 16 May 2000 11:55:06 +0000 (11:55 +0000)]
another awk parser update
we can now handle arrays of structures, pointers to structures,
pointers in unions etc

21 years agoRemoved extra unistr_to_dos prototype from msdfs/msdfs.c
Shirish Kalele [Tue, 16 May 2000 01:23:12 +0000 (01:23 +0000)]
Removed extra unistr_to_dos prototype from msdfs/msdfs.c

21 years agoThe new msdfs implementation that uses symlinks to point to other
Shirish Kalele [Tue, 16 May 2000 01:13:16 +0000 (01:13 +0000)]
The new msdfs implementation that uses symlinks to point to other
servers. Very intuitive.

Removed the dfs map parsing code and tdb maintenance code (files
msdfs/parse_dfs_map.c & msdfs/msdfs_tdb.c), dfs map loading and unloading
calls (param/loadparm.c smbd/server.c).

Added code to display msdfs format symlinks as directories in a
transact2_findfirst/findnext. (smbd/trans2.c)

Modified msdfs/msdfs.c to use the msdfs symlinks to
create dfs referrals.

Changed msdfs/README to reflect new operability.

21 years agoCheck error returns.
Jeremy Allison [Mon, 15 May 2000 21:38:03 +0000 (21:38 +0000)]
Check error returns.
Jeremy.

21 years agoAdded Shirish's reg changes to HEAD. Sync up with 2.2.0 backport.
Jeremy Allison [Mon, 15 May 2000 20:53:08 +0000 (20:53 +0000)]
Added Shirish's reg changes to HEAD. Sync up with 2.2.0 backport.
Also added prs_xx error return checks to new code in rpc_parse/parse_reg.c
Jeremy.

21 years agoAdded fix for Win2k ACL query code from Shirish. I need this back ported
Jeremy Allison [Mon, 15 May 2000 20:08:26 +0000 (20:08 +0000)]
Added fix for Win2k ACL query code from Shirish. I need this back ported
to 2.2.0.
Jeremy.

21 years agopassdb/secrets.c: Fix typo in comment.
Jeremy Allison [Mon, 15 May 2000 17:13:50 +0000 (17:13 +0000)]
passdb/secrets.c: Fix typo in comment.
rpc_server/srv_pipe.c: Use accessor functions rather than diddling with structure
internals directly.
smbd/process.c:
smbd/reply.c: Remove READ_PREDICTION #ifdefs.
Jeremy.

21 years agostarted update to handle arbitrary arrays
Andrew Tridgell [Mon, 15 May 2000 13:41:05 +0000 (13:41 +0000)]
started update to handle arbitrary arrays
note: this code is currently broken.

21 years agocall prs_dump() on every input and output packet so we have plenty of
Andrew Tridgell [Mon, 15 May 2000 09:59:58 +0000 (09:59 +0000)]
call prs_dump() on every input and output packet so we have plenty of
data to work with

21 years agodon't call prs_dump() here
Andrew Tridgell [Mon, 15 May 2000 09:59:25 +0000 (09:59 +0000)]
don't call prs_dump() here

21 years agoupdate grow_size in prs_grow
Andrew Tridgell [Mon, 15 May 2000 09:58:58 +0000 (09:58 +0000)]
update grow_size in prs_grow

21 years agoaddd grow_size to prs_struct so we know how much data is actually in
Andrew Tridgell [Mon, 15 May 2000 09:58:22 +0000 (09:58 +0000)]
addd grow_size to prs_struct so we know how much data is actually in
the buffer

21 years agoneed to allocate the union pointer
Andrew Tridgell [Mon, 15 May 2000 09:57:47 +0000 (09:57 +0000)]
need to allocate the union pointer

21 years agoalign at the end of every structure parser
Andrew Tridgell [Mon, 15 May 2000 09:57:19 +0000 (09:57 +0000)]
align at the end of every structure parser

21 years agouse grow_size to determine size of dump
Andrew Tridgell [Mon, 15 May 2000 09:56:51 +0000 (09:56 +0000)]
use grow_size to determine size of dump

21 years agoadded grow_size to prs structure
Andrew Tridgell [Mon, 15 May 2000 09:56:30 +0000 (09:56 +0000)]
added grow_size to prs structure

21 years agoadd prs_dump() at the top level rpc switch
Andrew Tridgell [Mon, 15 May 2000 07:18:12 +0000 (07:18 +0000)]
add prs_dump() at the top level rpc switch
this gets us examples of all rpc messages sent to us

21 years agomake prs_dump() store up to 100 variants of each msg type
Andrew Tridgell [Mon, 15 May 2000 07:17:34 +0000 (07:17 +0000)]
make prs_dump() store up to 100 variants of each msg type

21 years agoadd uint16 support, start to parse more of spoolss
Andrew Tridgell [Sun, 14 May 2000 14:44:59 +0000 (14:44 +0000)]
add uint16 support, start to parse more of spoolss

21 years agomoved *.tpl templates into templates/ subdirectory
Andrew Tridgell [Sun, 14 May 2000 14:08:16 +0000 (14:08 +0000)]
moved *.tpl templates into templates/ subdirectory

21 years agovastly improved awk based code generator
Andrew Tridgell [Sun, 14 May 2000 14:05:10 +0000 (14:05 +0000)]
vastly improved awk based code generator
now handles recursive function definitions, unions etc
it is sufficient for some basic types like UNISTR2 and BUFFER5
to be defined in the *.struct file and used successfully

this generator uses templates (in *.tpl files) for all code
generation, allowing easy replacement of the backend functions

21 years agoremoved old files ready for new awk parser
Andrew Tridgell [Sun, 14 May 2000 14:01:50 +0000 (14:01 +0000)]
removed old files ready for new awk parser

21 years agoAdded code to do a one-way migration of the old DOMAIN.MACHINE.mac
Jeremy Allison [Sat, 13 May 2000 00:46:59 +0000 (00:46 +0000)]
Added code to do a one-way migration of the old DOMAIN.MACHINE.mac
file into the secrets tdb. Also restored check for password timeout
(this seemed to have gotten lost).
Jeremy.

21 years agorenamed the harness program to vluke (for "virtual luke")
Andrew Tridgell [Fri, 12 May 2000 14:35:15 +0000 (14:35 +0000)]
renamed the harness program to vluke (for "virtual luke")
added a couple of sample .prs files

21 years agopreliminary support for unions
Andrew Tridgell [Fri, 12 May 2000 14:35:14 +0000 (14:35 +0000)]
preliminary support for unions

21 years agothis is a awk based code generator. Very primitive at the moment, but
Andrew Tridgell [Fri, 12 May 2000 14:35:13 +0000 (14:35 +0000)]
this is a awk based code generator. Very primitive at the moment, but
it was sufficient to generate info level 6 of the add printer driver
for spoolss

It has two capabilities:

1) generate the header and C code for parsing a structure, given a
   *.struct file that describes the structure. Evetually I hope to
   make *.struct compatible with MIDL.

2) it provides a harness that can read a binary data file from
   prs_dump() which contains real data from a client and display the
   parse of it from the output of the awk parser. This allows you to
   "play" with the structure definition until it comes out right, it
   takes just a few mimutes of playing with the .struct file to work
   out the right layout.

all this is very primitive right now. I hope next to completely
replace the spoolss parser with a single .struct file that describes
all the structures, and auto-generates working code. That will require
quite a bit more work.

21 years agorebuilt proto
Andrew Tridgell [Fri, 12 May 2000 14:28:51 +0000 (14:28 +0000)]
rebuilt proto

21 years agochanged uniarray_2_ascarray to uniarray_2_dosarray
Andrew Tridgell [Fri, 12 May 2000 14:28:50 +0000 (14:28 +0000)]
changed uniarray_2_ascarray to uniarray_2_dosarray

21 years agoAdded unicode_to_dos_char() function to address converting single UNICODE
Jeremy Allison [Fri, 12 May 2000 14:28:48 +0000 (14:28 +0000)]
Added unicode_to_dos_char() function to address converting single UNICODE
characters to one or more DOS codepage characters.
Jeremy.

21 years agoadded spool_io_printer_driver_info_level_6()
Andrew Tridgell [Fri, 12 May 2000 14:28:46 +0000 (14:28 +0000)]
added spool_io_printer_driver_info_level_6()

thsi function and the associated header structure were autogenerated
using a little awk based code geerator I wroe ths evening. I'll commit
that next ...

21 years agoAdded signal handling section.
Tim Potter [Fri, 12 May 2000 13:05:26 +0000 (13:05 +0000)]
Added signal handling section.

21 years ago- added example config section to winbindd man page
Andrew Tridgell [Fri, 12 May 2000 13:05:25 +0000 (13:05 +0000)]
- added example config section to winbindd man page
- reran yodldocs with newer version of yodl

21 years agoAdded mention of the CUPS option for the printing parameter
Gerald Carter [Fri, 12 May 2000 13:05:24 +0000 (13:05 +0000)]
Added mention of the CUPS option for the printing parameter

-jerry

21 years agoMerge from TNG.
Tim Potter [Fri, 12 May 2000 06:55:09 +0000 (06:55 +0000)]
Merge from TNG.

21 years agofixed two uninitialised variables
Andrew Tridgell [Fri, 12 May 2000 06:38:41 +0000 (06:38 +0000)]
fixed two uninitialised variables

21 years agouse "winbind separator" option for domain/user separator character
Andrew Tridgell [Fri, 12 May 2000 06:30:45 +0000 (06:30 +0000)]
use "winbind separator" option for domain/user separator character

21 years agocompile with -O2
Andrew Tridgell [Fri, 12 May 2000 06:29:29 +0000 (06:29 +0000)]
compile with -O2

21 years agoWhile we're all making incompatible tdb changes, I changed the implementation
Tim Potter [Fri, 12 May 2000 06:27:35 +0000 (06:27 +0000)]
While we're all making incompatible tdb changes, I changed the implementation
of tdb_{store,get}_int() to store the length of the string key + 1 so the
stored key contains the trailing NULL character.  This allows normal
string library routines to manipulate keys.

Also renamed tdb_get_int() to tdb_fetch_int() to keep the set of verbs
consistent.

21 years agouse "winbind separator" in tng as well
Andrew Tridgell [Fri, 12 May 2000 06:27:34 +0000 (06:27 +0000)]
use "winbind separator" in tng as well

21 years agobuild in /usr/src/redhat
Andrew Tridgell [Fri, 12 May 2000 06:23:38 +0000 (06:23 +0000)]
build in /usr/src/redhat

21 years agoupdated appliance Makefile
Andrew Tridgell [Fri, 12 May 2000 06:04:46 +0000 (06:04 +0000)]
updated appliance Makefile

21 years agoadded packaging section to README
Andrew Tridgell [Fri, 12 May 2000 05:46:25 +0000 (05:46 +0000)]
added packaging section to README

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