import/samba-cvsimport.git
23 years agoUpdated by Patrick Powell <papowell@lprng.com> SAMBA_2_0
John Terpstra [Sat, 12 Aug 2000 02:41:19 +0000 (02:41 +0000)]
Updated by Patrick Powell <papowell@lprng.com>

23 years agotest for sys/un.h
Herb Lewis [Mon, 24 Jul 2000 19:04:10 +0000 (19:04 +0000)]
test for sys/un.h

23 years agoadd test for sys/un.h (from head)
Herb Lewis [Mon, 24 Jul 2000 18:49:28 +0000 (18:49 +0000)]
add test for sys/un.h (from head)

23 years agolooks like I did the wrong change. lib/util_array.c needs to be added
Herb Lewis [Mon, 24 Jul 2000 18:33:50 +0000 (18:33 +0000)]
looks like I did the wrong change. lib/util_array.c needs to be added
to this tree.

23 years agoremove lib/util_array.o from target LIB_OBJ. This file is not in this tree.
Herb Lewis [Mon, 24 Jul 2000 17:51:55 +0000 (17:51 +0000)]
remove lib/util_array.o from target LIB_OBJ. This file is not in this tree.

23 years agoJust messing about in a Samba Tutorial!
John Terpstra [Tue, 18 Jul 2000 16:39:12 +0000 (16:39 +0000)]
Just messing about in a Samba Tutorial!

23 years agoDon't use ksh or bash-isms.
Tim Potter [Thu, 1 Jun 2000 03:25:55 +0000 (03:25 +0000)]
Don't use ksh or bash-isms.

23 years agoPoint-n-print fixes from HEAD.
Jeremy Allison [Fri, 26 May 2000 21:04:13 +0000 (21:04 +0000)]
Point-n-print fixes from HEAD.
POSIX locking fixes discovered at CIFS connectathon.
tdb updates from HEAD.
Remove OLD_NTDOMAIN from smbd/ c files.
Jeremy.

23 years agoFixed IPC$ open problem - disabled opens on trans2 calls until pipe
Jeremy Allison [Tue, 23 May 2000 18:05:59 +0000 (18:05 +0000)]
Fixed IPC$ open problem - disabled opens on trans2 calls until pipe
open backend implemented.
Jeremy.

23 years agoFix bug where file access was allowed on IPC$.
Jeremy Allison [Tue, 23 May 2000 01:26:39 +0000 (01:26 +0000)]
Fix bug where file access was allowed on IPC$.
Return correct error codes on invalid share name.
Jeremy

23 years agorpc_parse/parse_samr.c: The prs_align at the end of samr_io_q_query_dom_info() was...
Jeremy Allison [Thu, 18 May 2000 01:46:13 +0000 (01:46 +0000)]
rpc_parse/parse_samr.c: The prs_align at the end of samr_io_q_query_dom_info() was reading 2 bytes
too much (more than the client sent).
rpc_server/srv_samr.c: Uninitialized memory read fixups.
Jeremy.

23 years agoOk - 2.2.0 now correctly compiles. Now to start the ACL work....
Jeremy Allison [Wed, 17 May 2000 20:53:21 +0000 (20:53 +0000)]
Ok - 2.2.0 now correctly compiles. Now to start the ACL work....
Jeremy.

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

23 years agosmbd/nmbd now compile.
Jeremy Allison [Wed, 17 May 2000 01:12:27 +0000 (01:12 +0000)]
smbd/nmbd now compile.
Jeremy.

23 years agoFixed up srv_samr stuff. Added error checking.
Jeremy Allison [Tue, 16 May 2000 19:46:20 +0000 (19:46 +0000)]
Fixed up srv_samr stuff. Added error checking.
Jeremy.

23 years agoGetting closer to a compile.
Jeremy Allison [Mon, 15 May 2000 21:50:06 +0000 (21:50 +0000)]
Getting closer to a compile.
Jeremy.

23 years agoMerging, merging, merging,
Jeremy Allison [Mon, 15 May 2000 19:15:42 +0000 (19:15 +0000)]
Merging, merging, merging,
keep those merges rolling,
....
Jeremy.

23 years agoThis commit was manufactured by cvs2svn to create branch 'SAMBA_2_0'.
cvs2svn Import User [Mon, 15 May 2000 17:13:51 +0000 (17:13 +0000)]
This commit was manufactured by cvs2svn to create branch 'SAMBA_2_0'.

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

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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 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

23 years agoMerge, merge, merge back from HEAD.
Jeremy Allison [Sat, 13 May 2000 01:13:19 +0000 (01:13 +0000)]
Merge, merge, merge back from HEAD.
Jeremy.

23 years agoMore merge - getting closer to a full compile.
Jeremy Allison [Sat, 13 May 2000 00:53:31 +0000 (00:53 +0000)]
More merge - getting closer to a full compile.
Jeremy.

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

23 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

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

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

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

23 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

23 years agoMore merge - getting closer to a compile....
Jeremy Allison [Fri, 12 May 2000 14:28:49 +0000 (14:28 +0000)]
More merge - getting closer to a compile....
Jeremy.

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

23 years agoThis commit was manufactured by cvs2svn to create branch 'SAMBA_2_0'.
cvs2svn Import User [Fri, 12 May 2000 14:28:47 +0000 (14:28 +0000)]
This commit was manufactured by cvs2svn to create branch 'SAMBA_2_0'.

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

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

23 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

23 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

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

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

23 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

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

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

23 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

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

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

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

23 years agofixed tar command line
Andrew Tridgell [Fri, 12 May 2000 05:43:02 +0000 (05:43 +0000)]
fixed tar command line

23 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

23 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

23 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

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

23 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

23 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

23 years agofixed a typo
Andrew Tridgell [Fri, 12 May 2000 05:13:51 +0000 (05:13 +0000)]
fixed a typo

23 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

23 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

23 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

23 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

23 years agoupdated the appliance README
Andrew Tridgell [Fri, 12 May 2000 05:06:27 +0000 (05:06 +0000)]
updated the appliance README

23 years agoManpage version of yodl doc.
Tim Potter [Fri, 12 May 2000 04:07:44 +0000 (04:07 +0000)]
Manpage version of yodl doc.

23 years agoHTML version of yodl doc.
Tim Potter [Fri, 12 May 2000 04:03:35 +0000 (04:03 +0000)]
HTML version of yodl doc.

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

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

23 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

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

23 years agoWith this commit I am currently breaking the SAMBA_2_0 build for a while.
Jeremy Allison [Thu, 11 May 2000 20:54:15 +0000 (20:54 +0000)]
With this commit I am currently breaking the SAMBA_2_0 build for a while.

The reson for this is I need to move back much of the HEAD functionality
into 2.0.8. This isn't easy, and I already have much of it and don't want
to lose it on my local machine.

nmbd builds at the moment, but that is all.

The things I am taking from HEAD are tdb, the unexpected packet database,
the brlock changes, the posix lock changes, the NT printing changes, the
open() changes, but not the vfs, dfs or NT domain server parts.

Expect this branch to be uncompilable for a few days as I gradually
beat it back into shape.

If you want to add stuff, do it to HEAD and I'll pull back the changes
as needed.

Jeremy.

23 years ago2.0.8 ACL support for NT5 clients
Shirish Kalele [Thu, 11 May 2000 17:44:24 +0000 (17:44 +0000)]
2.0.8 ACL support for NT5 clients

NT5 makes a Samr_Query_AliasInfo call with info class 1. (NT4 only makes
info class 3 calls)
Added code to handle this.

NT5 requires responses to Samr_Lookup_Domain and Samr_Enum_Domains calls to
list users and groups in the ACL dialog. Luckily, this could be creamed off
TNG :-)

Now NT5 clients list users and groups and can add them to the DACL.
TODO: "Check Names" occasionally fails.

23 years agoThis commit was manufactured by cvs2svn to create branch 'SAMBA_2_0'.
cvs2svn Import User [Wed, 10 May 2000 22:47:10 +0000 (22:47 +0000)]
This commit was manufactured by cvs2svn to create branch 'SAMBA_2_0'.

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

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

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

23 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

23 years agoupdated appliance Makefile
Andrew Tridgell [Wed, 10 May 2000 14:47:12 +0000 (14:47 +0000)]
updated appliance Makefile

23 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

23 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

23 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

23 years agoproto rebuild
Andrew Tridgell [Wed, 10 May 2000 11:50:28 +0000 (11:50 +0000)]
proto rebuild

23 years agocheck for sighup on each packet - otherwise it can take a _long_ time
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

23 years agofail a print start on a deleted auto printer
Andrew Tridgell [Wed, 10 May 2000 11:49:06 +0000 (11:49 +0000)]
fail a print start on a deleted auto printer

23 years agoI found a better way of handling deleted auto printers
Andrew Tridgell [Wed, 10 May 2000 11:48:30 +0000 (11:48 +0000)]
I found a better way of handling deleted auto printers

23 years agoformatting fix
Andrew Tridgell [Wed, 10 May 2000 11:45:16 +0000 (11:45 +0000)]
formatting fix

23 years agoremove autoloaded printers that are no longer in /etc/printcap when we
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

23 years agopatch from Dominik Kubla <dominik.kubla@uni-mainz.de>
Andrew Tridgell [Wed, 10 May 2000 11:08:08 +0000 (11:08 +0000)]
patch from Dominik Kubla <dominik.kubla@uni-mainz.de>

23 years agomore merging voodoo
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

23 years agomore merging
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

23 years ago- add some reserved space to every tdb, this will be
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

23 years agoUse a prime for default tdb hash size - this makes a difference !
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.

23 years agoFix for misunderstanding of fsync added when vfs layer
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.