tprouty/samba.git
21 years agoStop using hardcoded transact commands
Jim McDonough [Thu, 7 Nov 2002 14:39:49 +0000 (14:39 +0000)]
Stop using hardcoded transact commands

21 years agoAdd smbtrans subcommands so we can stop hardcoding them
Jim McDonough [Thu, 7 Nov 2002 14:38:53 +0000 (14:38 +0000)]
Add smbtrans subcommands so we can stop hardcoding them

21 years agoRemove lp_security() checks for winbindd as this is how we act as a PDC.
Tim Potter [Thu, 7 Nov 2002 07:23:37 +0000 (07:23 +0000)]
Remove lp_security() checks for winbindd as this is how we act as a PDC.
Keep the rest of the cleanups though.

21 years agoKeeping branches in sync....
Jeremy Allison [Thu, 7 Nov 2002 07:14:14 +0000 (07:14 +0000)]
Keeping branches in sync....
Jeremy.

21 years agofixed some formatting errors and improved some debug statements in
Andrew Tridgell [Thu, 7 Nov 2002 04:53:18 +0000 (04:53 +0000)]
fixed some formatting errors and improved some debug statements in
'net rpc vampire'

21 years agowhen doing a 'net rpc vampire' a pdb_init_sam_pw() is used to create a
Andrew Tridgell [Thu, 7 Nov 2002 04:52:04 +0000 (04:52 +0000)]
when doing a 'net rpc vampire' a pdb_init_sam_pw() is used to create a
sam account object, then pdb_update_sam_account() can be used to
update an account. This code path could lead to the methods element of
the account being used when uninitialised (leading to a segv)

Easiest fix is to always make that that when creating a sam_account
object we initialise the methods to null, so that the passdb code
knows that it needs to be filled in.

21 years agoMerge of scalable printing code fix... Needs testing.
Jeremy Allison [Thu, 7 Nov 2002 02:38:42 +0000 (02:38 +0000)]
Merge ... scalable printing code fix... Needs testing.
Also tidied up some of Richard's code (I don't think he uses the compiler
flags -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual like
I do :-) :-).
Jeremy.

21 years agoCall winbindd_param_init() earlier on in the piece so we don't get stuck in
Tim Potter [Thu, 7 Nov 2002 01:06:38 +0000 (01:06 +0000)]
Call winbindd_param_init() earlier on in the piece so we don't get stuck in
the holding pattern when started up when security = user or security = ads.

Clean up return value of winbindd_common_init() - what a mess!

21 years agoFor a BUFFER5, don't parse the buffer if the buffer length is zero.
Tim Potter [Wed, 6 Nov 2002 23:43:21 +0000 (23:43 +0000)]
For a BUFFER5, don't parse the buffer if the buffer length is zero.

21 years agoClient side functions for enumprinterkey.
Tim Potter [Wed, 6 Nov 2002 23:38:39 +0000 (23:38 +0000)]
Client side functions for enumprinterkey.

21 years agoAdded enumprinterkey function.
Tim Potter [Wed, 6 Nov 2002 23:36:07 +0000 (23:36 +0000)]
Added enumprinterkey function.

Stub for deleteprinterkey.

21 years agoMoved function to parse a list of unicode strings into util file.
Tim Potter [Wed, 6 Nov 2002 23:34:12 +0000 (23:34 +0000)]
Moved function to parse a list of unicode strings into util file.
It's now used in parsing printer driver structures and the response
from the enumprinterkey rpc.

21 years agoAdd group management support (patch from metze)
Jelmer Vernooij [Wed, 6 Nov 2002 22:10:16 +0000 (22:10 +0000)]
Add group management support (patch from metze)

21 years agoFix compiler warnings.
Tim Potter [Wed, 6 Nov 2002 20:13:02 +0000 (20:13 +0000)]
Fix compiler warnings.

21 years agoAdapt to latest pdb API changes - only thing left is group support
Jelmer Vernooij [Wed, 6 Nov 2002 12:26:21 +0000 (12:26 +0000)]
Adapt to latest pdb API changes - only thing left is group support

21 years agopdb_get_unknown? -> pdb_get_unknown_?
Jelmer Vernooij [Wed, 6 Nov 2002 11:21:47 +0000 (11:21 +0000)]
pdb_get_unknown? -> pdb_get_unknown_?

21 years agoRemove pdb_sql.o.. this one got in by accident
Jelmer Vernooij [Wed, 6 Nov 2002 11:17:53 +0000 (11:17 +0000)]
Remove pdb_sql.o.. this one got in by accident

21 years agopytdbpack_unpack: Clean up, and correct the handling of '$'.
Martin Pool [Wed, 6 Nov 2002 01:59:57 +0000 (01:59 +0000)]
pytdbpack_unpack: Clean up, and correct the handling of '$'.

21 years agoAdd another test case for repeated-unpack ('$')
Martin Pool [Wed, 6 Nov 2002 01:50:31 +0000 (01:50 +0000)]
Add another test case for repeated-unpack ('$')

21 years agoMerge of get_dc_list() api change. This was slightly more intrusive
Tim Potter [Wed, 6 Nov 2002 01:29:07 +0000 (01:29 +0000)]
Merge ... get_dc_list() api change.  This was slightly more intrusive
than the version in APPLIANCE so watch out for boogs.

21 years agoIgnore profiles binary.
Tim Potter [Wed, 6 Nov 2002 01:18:30 +0000 (01:18 +0000)]
Ignore profiles binary.

21 years agoMerge of lp_talloc_free() call in init_domain_list() from APPLIANCE.
Tim Potter [Tue, 5 Nov 2002 23:19:38 +0000 (23:19 +0000)]
Merge ... lp_talloc_free() call in init_domain_list() from APPLIANCE.

21 years agoEnsure can_delete returns correct error code.
Jeremy Allison [Tue, 5 Nov 2002 22:49:54 +0000 (22:49 +0000)]
Ensure can_delete returns correct error code.
Jeremy.

21 years agocorrect make
Jelmer Vernooij [Tue, 5 Nov 2002 22:28:45 +0000 (22:28 +0000)]
correct make

21 years agoMissed extern declaration.
Jeremy Allison [Tue, 5 Nov 2002 21:49:45 +0000 (21:49 +0000)]
Missed extern declaration.
Jeremy.

21 years agoFix to correctly return NT_STATUS_DELETE_PENDING.
Jeremy Allison [Tue, 5 Nov 2002 21:46:33 +0000 (21:46 +0000)]
Fix to correctly return NT_STATUS_DELETE_PENDING.
Jeremy.

21 years agoSmall fix from Guenther Deschner <guenther.deschner@suse.de>
Jelmer Vernooij [Tue, 5 Nov 2002 21:45:16 +0000 (21:45 +0000)]
Small fix from Guenther Deschner <guenther.deschner@suse.de>
(remove junk chars)

21 years ago'make everything' in docs
Jelmer Vernooij [Tue, 5 Nov 2002 21:41:04 +0000 (21:41 +0000)]
'make everything' in docs

21 years agoFix small syntax errors
Jelmer Vernooij [Tue, 5 Nov 2002 21:35:22 +0000 (21:35 +0000)]
Fix small syntax errors

21 years agopytdbpack_pack_data: Allow first argument to be any kind of Number,
Martin Pool [Tue, 5 Nov 2002 21:26:35 +0000 (21:26 +0000)]
pytdbpack_pack_data: Allow first argument to be any kind of Number,
not just an Integer.  Coerce appropriately.

21 years agopytdbpack_pack_data: If the first argument to a 'B' code is not an
Martin Pool [Tue, 5 Nov 2002 21:22:14 +0000 (21:22 +0000)]
pytdbpack_pack_data: If the first argument to a 'B' code is not an
Integer, raise an error rather than just returning Null, which breaks
the interpreter.

21 years agoA small fix by Andy Thomas. Now that incrementing the Auth index has
Richard Sharpe [Tue, 5 Nov 2002 20:40:55 +0000 (20:40 +0000)]
A small fix by Andy Thomas. Now that incrementing the Auth index has
been pushed into a macro, things do not work so well. Move the increment out
of the array index.

21 years agoAdd note about obsolete section
Jelmer Vernooij [Tue, 5 Nov 2002 18:48:59 +0000 (18:48 +0000)]
Add note about obsolete section

21 years agoTell popt this command requires 1 'normal' argument and has two optional 'normal...
Jelmer Vernooij [Tue, 5 Nov 2002 18:30:47 +0000 (18:30 +0000)]
Tell popt this command requires 1 'normal' argument and has two optional 'normal' parameters

21 years agoDon't generate ../examples/pdb/{xml,mysql}/configure
Jelmer Vernooij [Tue, 5 Nov 2002 17:18:30 +0000 (17:18 +0000)]
Don't generate ../examples/pdb/{xml,mysql}/configure

21 years agoDon't generate ../examples/pdb/mysql/Makefile and ../examples/pdb/xml/Makefile
Jelmer Vernooij [Tue, 5 Nov 2002 17:15:24 +0000 (17:15 +0000)]
Don't generate ../examples/pdb/mysql/Makefile and ../examples/pdb/xml/Makefile

21 years agoAdd pdb_xml docs
Jelmer Vernooij [Tue, 5 Nov 2002 17:11:23 +0000 (17:11 +0000)]
Add pdb_xml docs

21 years agoMove pdb_xml to source/
Jelmer Vernooij [Tue, 5 Nov 2002 17:08:32 +0000 (17:08 +0000)]
Move pdb_xml to source/

21 years agoFix various small syntax errors
Jelmer Vernooij [Tue, 5 Nov 2002 16:59:45 +0000 (16:59 +0000)]
Fix various small syntax errors
add docs for pdb_mysql
don't build obsolete docs in Makefile

21 years agoConvert pdb_mysql docs to sgml
Jelmer Vernooij [Tue, 5 Nov 2002 16:55:21 +0000 (16:55 +0000)]
Convert pdb_mysql docs to sgml

21 years agoMove pdb_mysql to source/passdb
Jelmer Vernooij [Tue, 5 Nov 2002 16:48:23 +0000 (16:48 +0000)]
Move pdb_mysql to source/passdb

21 years agoRerun autoconf
Jelmer Vernooij [Tue, 5 Nov 2002 16:36:37 +0000 (16:36 +0000)]
Rerun autoconf

21 years agoAdd support to build plugins in source/
Jelmer Vernooij [Tue, 5 Nov 2002 16:33:26 +0000 (16:33 +0000)]
Add support to build plugins in source/

21 years agoThe default for 'announce version' is 4.9, not 4.5 or 4.2
Jelmer Vernooij [Tue, 5 Nov 2002 16:26:19 +0000 (16:26 +0000)]
The default for 'announce version' is 4.9, not 4.5 or 4.2

21 years agoSee if char * makes the Irix C compiler happier than void *?
Richard Sharpe [Tue, 5 Nov 2002 04:23:48 +0000 (04:23 +0000)]
See if char * makes the Irix C compiler happier than void *?

21 years agoRemove DRIVERFILE constant. It was removed with the old win95
Tim Potter [Tue, 5 Nov 2002 03:05:29 +0000 (03:05 +0000)]
Remove DRIVERFILE constant.  It was removed with the old win95
printer driver stuff.

21 years agopytdbpack_pack_data: Oops, since B is separately encoded as buffer and
Martin Pool [Tue, 5 Nov 2002 02:54:07 +0000 (02:54 +0000)]
pytdbpack_pack_data: Oops, since B is separately encoded as buffer and
length we need separate counters traversing the format and value
sequences to pack them.

21 years agoUpdate test cases.
Martin Pool [Tue, 5 Nov 2002 02:52:01 +0000 (02:52 +0000)]
Update test cases.

21 years agoMake all of the required (I think) changes to make this code work for
Richard Sharpe [Tue, 5 Nov 2002 02:11:42 +0000 (02:11 +0000)]
Make all of the required (I think) changes to make this code work for
big endian and little endian systems.

21 years agoRerun autoconf.
Tim Potter [Tue, 5 Nov 2002 02:03:01 +0000 (02:03 +0000)]
Rerun autoconf.

21 years agoFix mysterious error message when running 'make python_{ext,install}'
Tim Potter [Tue, 5 Nov 2002 02:00:36 +0000 (02:00 +0000)]
Fix mysterious error message when running 'make python_{ext,install}'
without configuring with python.

21 years agoStart handling Big Endian machines as well as little endian.
Richard Sharpe [Tue, 5 Nov 2002 01:29:29 +0000 (01:29 +0000)]
Start handling Big Endian machines as well as little endian.

21 years agopytdbpack_unpack: Handle unpacking Buffers into (LEN, DATA): form list
Martin Pool [Tue, 5 Nov 2002 00:24:32 +0000 (00:24 +0000)]
pytdbpack_unpack: Handle unpacking Buffers into (LEN, DATA): form list
by appending, rather than preallocating.

21 years agoVFStest already has pop_common via smbd, so don't link it twice.
Andrew Bartlett [Mon, 4 Nov 2002 23:49:41 +0000 (23:49 +0000)]
VFStest already has pop_common via smbd, so don't link it twice.

Andrew Bartlett

21 years agoAdd more test cases that now work.
Martin Pool [Mon, 4 Nov 2002 23:10:47 +0000 (23:10 +0000)]
Add more test cases that now work.

21 years agopytdbpack_pack_data: Allow 'd' and 'w' formats to take either Integer
Martin Pool [Mon, 4 Nov 2002 23:08:53 +0000 (23:08 +0000)]
pytdbpack_pack_data: Allow 'd' and 'w' formats to take either Integer
or Long arguments.

21 years agoMake sure uint32 unpacking is unsigned, and generates a Python long so
Martin Pool [Mon, 4 Nov 2002 22:59:48 +0000 (22:59 +0000)]
Make sure uint32 unpacking is unsigned, and generates a Python long so
that it can represent all the unsigned values

21 years agoRe-add some tests which do work with both implementations
Martin Pool [Mon, 4 Nov 2002 22:50:24 +0000 (22:50 +0000)]
Re-add some tests which do work with both implementations

21 years agoComment out test cases where the old and new parser are different.
Martin Pool [Mon, 4 Nov 2002 22:48:06 +0000 (22:48 +0000)]
Comment out test cases where the old and new parser are different.

21 years agopytdbpack_calc_reqd_len: Correct calculation of packed length of
Martin Pool [Mon, 4 Nov 2002 22:29:03 +0000 (22:29 +0000)]
pytdbpack_calc_reqd_len: Correct calculation of packed length of
string types

21 years agoChange to representing buffers ('B') as (LEN, STRING) in Python,
Martin Pool [Mon, 4 Nov 2002 22:22:12 +0000 (22:22 +0000)]
Change to representing buffers ('B') as (LEN, STRING) in Python,
rather than as just a string.  Makes the code more messy, but needed
for compatibility with existing PSA Python code which seems to be too
knotty to separate out.

21 years agotest_pack_extra: Add additional cases.
Martin Pool [Mon, 4 Nov 2002 22:01:25 +0000 (22:01 +0000)]
test_pack_extra: Add additional cases.

test_pack_failures: Remove cases for which old code is too lax.

21 years agotest_pack_extra: Better way of testing packing with extra values.
Martin Pool [Mon, 4 Nov 2002 21:57:53 +0000 (21:57 +0000)]
test_pack_extra: Better way of testing packing with extra values.

21 years agopytdbpack_calc_reqd_len: It's no longer an error to supply more data
Martin Pool [Mon, 4 Nov 2002 21:56:24 +0000 (21:56 +0000)]
pytdbpack_calc_reqd_len: It's no longer an error to supply more data
values than are consumed.

21 years agoDoc
Martin Pool [Mon, 4 Nov 2002 20:34:50 +0000 (20:34 +0000)]
Doc

21 years agotest_pack_extra: The old code does not complain when there are too
Martin Pool [Mon, 4 Nov 2002 20:34:25 +0000 (20:34 +0000)]
test_pack_extra: The old code does not complain when there are too
many data values for the format.  Test that the new code behaves the
same way.

21 years agotest_pack_failures: The old code does not complain when there are too
Martin Pool [Mon, 4 Nov 2002 20:30:09 +0000 (20:30 +0000)]
test_pack_failures: The old code does not complain when there are too
many data values for the format, so we don't test that here.

test_large: New test case for packing/unpack a thousand values.

21 years agopytdbpack_calc_reqd_len: Make exception be thrown correctly when a
Martin Pool [Mon, 4 Nov 2002 20:22:03 +0000 (20:22 +0000)]
pytdbpack_calc_reqd_len: Make exception be thrown correctly when a
non-string is used with a string format code.  (It was being generated
but not thrown.)

Also call checked versions of some functions rather than FAST_*
versions.

21 years agotest_pack_failures: The old and new code is not exactly the same about
Martin Pool [Mon, 4 Nov 2002 20:04:16 +0000 (20:04 +0000)]
test_pack_failures: The old and new code is not exactly the same about
error detection, so now we don't care what exact error is returned as
long as we get something.

21 years agotest_pack: Coercing a dictionary to a sequence as it is packed is not
Martin Pool [Mon, 4 Nov 2002 19:54:06 +0000 (19:54 +0000)]
test_pack: Coercing a dictionary to a sequence as it is packed is not
compatible with the old code, and so it is removed from the test case.

21 years agoSync to actual state
Jelmer Vernooij [Mon, 4 Nov 2002 19:38:15 +0000 (19:38 +0000)]
Sync to actual state

21 years agoAdd FIXME about --with-python
Martin Pool [Mon, 4 Nov 2002 19:36:34 +0000 (19:36 +0000)]
Add FIXME about --with-python

21 years agoLarge number of updates - new structure of the HOWTO, better names, introductions...
Jelmer Vernooij [Mon, 4 Nov 2002 18:25:25 +0000 (18:25 +0000)]
Large number of updates - new structure of the HOWTO, better names, introductions, updating to 3.0

21 years agoMove testsmbc.c to examples
Jelmer Vernooij [Mon, 4 Nov 2002 17:11:18 +0000 (17:11 +0000)]
Move testsmbc.c to examples

21 years agotestsmbc should only be in examples
Jelmer Vernooij [Mon, 4 Nov 2002 17:10:08 +0000 (17:10 +0000)]
testsmbc should only be in examples

21 years agoMove encryption algorithm explanation to dev-doc
Jelmer Vernooij [Mon, 4 Nov 2002 16:23:00 +0000 (16:23 +0000)]
Move encryption algorithm explanation to dev-doc

21 years agoMove explanation of encryption algorithm to dev-doc
Jelmer Vernooij [Mon, 4 Nov 2002 16:20:15 +0000 (16:20 +0000)]
Move explanation of encryption algorithm to dev-doc

21 years agoAdd @BUILD_POPT@ to smbclient
Jelmer Vernooij [Mon, 4 Nov 2002 15:43:21 +0000 (15:43 +0000)]
Add @BUILD_POPT@ to smbclient

21 years agoDon't pass any booleans to pdb_set_* functions
Jelmer Vernooij [Mon, 4 Nov 2002 15:04:26 +0000 (15:04 +0000)]
Don't pass any booleans to pdb_set_* functions

21 years agoDon't pass true to pdb_set_* functions
Jelmer Vernooij [Mon, 4 Nov 2002 15:03:58 +0000 (15:03 +0000)]
Don't pass true to pdb_set_* functions

21 years agoHandle -p correctly
Jelmer Vernooij [Mon, 4 Nov 2002 14:50:08 +0000 (14:50 +0000)]
Handle -p correctly

21 years agoAdapt to metze's PDB_SET patch
Jelmer Vernooij [Mon, 4 Nov 2002 14:36:34 +0000 (14:36 +0000)]
Adapt to metze's PDB_SET patch

21 years agoMake IRIX happy
Jelmer Vernooij [Mon, 4 Nov 2002 14:08:11 +0000 (14:08 +0000)]
Make IRIX happy

21 years agoBecouse lib/popt_common.c uses POPT, we must not include it in LIB, we must
Andrew Bartlett [Mon, 4 Nov 2002 13:39:40 +0000 (13:39 +0000)]
Becouse lib/popt_common.c uses POPT, we must not include it in LIB, we must
link it on a per-program basis.

Next step is to make -lpopt apply only to the right programs, which might
help some of this kind of thing show up on Linux.

Andrew Bartlett

21 years agoAllow 'normal' accounts in the non-unix-account range for smbpasswd - I hope
Andrew Bartlett [Mon, 4 Nov 2002 13:15:53 +0000 (13:15 +0000)]
Allow 'normal' accounts in the non-unix-account range for smbpasswd - I hope
this will fix some of the problems on the build farm @ Compaq (where they have
a *lot* of accounts...).

21 years agoFix debug
Andrew Bartlett [Mon, 4 Nov 2002 12:47:07 +0000 (12:47 +0000)]
Fix debug

21 years agoMove to the use of the 'initialised' flag, rather than the fact the pointer is
Andrew Bartlett [Mon, 4 Nov 2002 12:36:37 +0000 (12:36 +0000)]
Move to the use of the 'initialised' flag, rather than the fact the pointer is
NULL.

Andrew Bartlett

21 years agoTry to fix popt dependencies - we were linking to popt before we built with it.
Andrew Bartlett [Mon, 4 Nov 2002 12:02:48 +0000 (12:02 +0000)]
Try to fix popt dependencies - we were linking to popt before we built with it.

Andrew Bartlett

21 years agoAny conversion to POPT must *always* add @BUILD_POPT@ or it just won't work on
Andrew Bartlett [Mon, 4 Nov 2002 02:49:20 +0000 (02:49 +0000)]
Any conversion to POPT must *always* add @BUILD_POPT@ or it just won't work on
systems other than linux.

Andrew Bartlett

21 years agoThe fixes from Tom plus a minor update from me.
Richard Sharpe [Mon, 4 Nov 2002 02:01:48 +0000 (02:01 +0000)]
The fixes from Tom plus a minor update from me.

21 years agoExtra little fix to vl's patch. Make sure the passdb and testparm messages
Andrew Bartlett [Sun, 3 Nov 2002 14:13:43 +0000 (14:13 +0000)]
Extra little fix to vl's patch.  Make sure the passdb and testparm messages
say exactly the same thing - in particular that we can algorithmic rid base ==
1000, and use the BASE_RID macro to avoid the use of magic numbers.

Andrew Bartlett

21 years agomake_server_info_guest() can need root for the ldapsam backend
Andrew Tridgell [Sun, 3 Nov 2002 13:33:00 +0000 (13:33 +0000)]
make_server_info_guest() can need root for the ldapsam backend

21 years agoForce algorithmic rid base to sane values and talk about it.
Volker Lendecke [Sun, 3 Nov 2002 12:54:12 +0000 (12:54 +0000)]
Force algorithmic rid base to sane values and talk about it.

Volker

21 years agoRemove obsolete function usage and some unused variables
Jelmer Vernooij [Sat, 2 Nov 2002 18:58:55 +0000 (18:58 +0000)]
Remove obsolete function usage and some unused variables

21 years agoRemove dummy function I used for testing
Jelmer Vernooij [Sat, 2 Nov 2002 16:40:14 +0000 (16:40 +0000)]
Remove dummy function I used for testing

21 years agoConvert to popt.
Jelmer Vernooij [Sat, 2 Nov 2002 16:36:39 +0000 (16:36 +0000)]
Convert to popt.
Removed -o and -a options - these have been broken since 2.2 without complaints from users

21 years agoAdd more options to popt_common and use them. Current ones are:
Jelmer Vernooij [Sat, 2 Nov 2002 16:16:15 +0000 (16:16 +0000)]
Add more options to popt_common and use them. Current ones are:
 -V Version information
 -n Set netbios name
 -l Set directory to store log files in
 -d Set debuglevel
 -s Load specified configuration file
 -O Set socket options

21 years agoFix typo
Andrew Bartlett [Sat, 2 Nov 2002 11:35:43 +0000 (11:35 +0000)]
Fix typo

21 years agoClean up this a little - add comments describing a bit of what is going on
Andrew Bartlett [Sat, 2 Nov 2002 07:54:04 +0000 (07:54 +0000)]
Clean up this a little - add comments describing a bit of what is going on
here.

21 years agoAdd a 'ldap trust ids' option that lets pdb_ldap check for posixAccount
Andrew Bartlett [Sat, 2 Nov 2002 07:09:17 +0000 (07:09 +0000)]
Add a 'ldap trust ids' option that lets pdb_ldap check for posixAccount
attributes rather than calling getpwnam() on the user.

This should help fix some of metze's performance issues - particularly on
enumerations.

There is a consequential change to the operation of 'non unix account's in LDAP
- they are no longer restricted to being 'within' the NUA range, but will
always be added to that range.

Finally, there is the doco for this and the previous LDAP SSL changes.