kai/samba.git
16 years agoAdd chainlock_read functions to get a read lock. Used in *massively*
Jeremy Allison [Sat, 9 Nov 2002 03:37:01 +0000 (03:37 +0000)]
Add chainlock_read functions to get a read lock. Used in *massively*
contended tdb's (and I've got one :-).
Jeremy.
(This used to be commit 064fa201ab73f476a168c40c2b227507e7342ec4)

16 years agoFix bug where not specifying '-S PDC' in 'net join' would cause it to attempt
Andrew Bartlett [Sat, 9 Nov 2002 02:36:47 +0000 (02:36 +0000)]
Fix bug where not specifying '-S PDC' in 'net join' would cause it to attempt
to contact a random IP address.

Andrew Bartlett
(This used to be commit e6837a85605f258da1fa9ac7ad329bc62392f29a)

16 years agoRewrite all the packing stuff so that it converts 'f' strings to CP850
Martin Pool [Sat, 9 Nov 2002 01:47:54 +0000 (01:47 +0000)]
Rewrite all the packing stuff so that it converts 'f' strings to CP850
on encoding.  (Tough luck if your Samba codepage is not 850.)  It's
much cleaner and possibly more efficient now too: just build one big
list of strings, then zip it up at the end.

Still need to do this for unpacking.
(This used to be commit 2480d385db0527b71cc5cd23c4fab4655df84485)

16 years agodefunct winbindd fix from APP_HEAD
Gerald Carter [Fri, 8 Nov 2002 23:46:45 +0000 (23:46 +0000)]
defunct winbindd fix from APP_HEAD
(This used to be commit 488e985caa0b0e3e2a6665eb2515a2c99745d861)

16 years agoCompleatly remove support for logfile truncation. All logs are opened for
Andrew Bartlett [Fri, 8 Nov 2002 23:05:34 +0000 (23:05 +0000)]
Compleatly remove support for logfile truncation.  All logs are opened for
append writes.

(blessed by jra)

Andrew Bartlett
(This used to be commit 81633064dd196c40541ecece8def51745f514646)

16 years agoMake smbpasswd use the group mapping, and fix spelling in ldapsam.
Andrew Bartlett [Fri, 8 Nov 2002 22:15:34 +0000 (22:15 +0000)]
Make smbpasswd use the group mapping, and fix spelling in ldapsam.

This gets user mangler for doamins working again.

Andrew Bartlett
(This used to be commit 205209f77f154a2a5d5f7a255194d7953860a4db)

16 years agoMake it easier to track things down here - add some debugs on failure.
Andrew Bartlett [Fri, 8 Nov 2002 22:14:31 +0000 (22:14 +0000)]
Make it easier to track things down here - add some debugs on failure.
(This used to be commit 62ee7b7dc08e7be261211de8f85b8e9be4df7b54)

16 years agoMake smbpasswd tell people to use 'net join', not 'net rpc join' now we have
Andrew Bartlett [Fri, 8 Nov 2002 22:13:34 +0000 (22:13 +0000)]
Make smbpasswd tell people to use 'net join', not 'net rpc join' now we have
the automagic detection.
(This used to be commit a066bed5a4855dac955bf0bd7630939220314cfe)

16 years agoAdd enumdataex command
Jim McDonough [Fri, 8 Nov 2002 21:39:53 +0000 (21:39 +0000)]
Add enumdataex command
(This used to be commit 6d1d2849a7b2f99d927ba168ed2d01a879b09e69)

16 years agoImplement enumdata command
Jim McDonough [Fri, 8 Nov 2002 20:51:04 +0000 (20:51 +0000)]
Implement enumdata command
(This used to be commit a22fdf26fef0cd58c84ca13891a762e3fdc6af8b)

16 years agoAdd enumkey command (EnumPrinterKey api)
Jim McDonough [Fri, 8 Nov 2002 19:06:34 +0000 (19:06 +0000)]
Add enumkey command (EnumPrinterKey api)
(This used to be commit a2e17d4344f996b64cd9c4f01b6b15c069fde41b)

16 years agopatches from Urban
Gerald Carter [Fri, 8 Nov 2002 18:44:57 +0000 (18:44 +0000)]
patches from Urban
(This used to be commit da269a73edb7f637b1e1f8b3dafe677f46f66f85)

16 years agoDon't set global_machine_password_needs_changing if
Tim Potter [Fri, 8 Nov 2002 01:34:58 +0000 (01:34 +0000)]
Don't set global_machine_password_needs_changing if
lp_machine_password_timeout() is set to zero.
(This used to be commit 0fa87a68fea8b12242f644605aab7c2f81c1a4df)

16 years agoFix crash bug with overwriting memory.
Jeremy Allison [Thu, 7 Nov 2002 22:45:11 +0000 (22:45 +0000)]
Fix crash bug with overwriting memory.
Jeremy.
(This used to be commit 9b08b4e4c24290e5d90a7cc2dc442cb82e73df28)

16 years agoMake append_log work again
Jelmer Vernooij [Thu, 7 Nov 2002 21:39:51 +0000 (21:39 +0000)]
Make append_log work again
(This used to be commit 2fd496b49f76e3b593fb60fb2523a044a3814125)

16 years agoBack out lp_modules() check - this one got in by accident when I added poptSetOtherOp...
Jelmer Vernooij [Thu, 7 Nov 2002 20:17:46 +0000 (20:17 +0000)]
Back out lp_modules() check - this one got in by accident when I added poptSetOtherOptions
(This used to be commit d7388b3e1e33a3514007e0e0b508469cb1ebed64)

16 years agoFix small typo
Jelmer Vernooij [Thu, 7 Nov 2002 19:45:55 +0000 (19:45 +0000)]
Fix small typo
(This used to be commit 3c39bd9db09c59f149d77e371ed078cd7ec2d1b4)

16 years agoWhat is wrong with you, Jim? Check in the final version, not an interim one...
Jim McDonough [Thu, 7 Nov 2002 15:43:04 +0000 (15:43 +0000)]
What is wrong with you, Jim?  Check in the final version, not an interim one...
(This used to be commit 1fd6d34526e577b8a5463e3abcfb8fc3682e6473)

16 years agoFix the build.
Jim McDonough [Thu, 7 Nov 2002 15:29:09 +0000 (15:29 +0000)]
Fix the build.

Build farm! Build farm!  Please check the build farm!

...or at least run make torture.
(This used to be commit 163ac344012d4520000f2ca91da50a379c7f288d)

16 years agoAllow multiple fragment RPC's to be sent.
Jim McDonough [Thu, 7 Nov 2002 14:40:25 +0000 (14:40 +0000)]
Allow multiple fragment RPC's to be sent.
(This used to be commit d423e6424bc3c61281ad30cd1c66540b522b5d3e)

16 years agoStop using hardcoded transact commands
Jim McDonough [Thu, 7 Nov 2002 14:39:49 +0000 (14:39 +0000)]
Stop using hardcoded transact commands
(This used to be commit ec0d94b4dd8409e6bf114d013f23a52f0fc11a69)

16 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
(This used to be commit 759bcd881dd259d5ad43715f6979c5282b094d52)

16 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.
(This used to be commit f0a1177acf82fceb174df1852d87a6e16d63fd63)

16 years agoKeeping branches in sync....
Jeremy Allison [Thu, 7 Nov 2002 07:14:14 +0000 (07:14 +0000)]
Keeping branches in sync....
Jeremy.
(This used to be commit ceb01b5ab1eed6e89d66687681ff3325a21e6b88)

16 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'
(This used to be commit 1526b3b19e0be5926977d3eb1e642330bfeba5a2)

16 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.
(This used to be commit fb79fa5a31c2fa8ebdcddbc49b1d9c1aa3059691)

16 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.
(This used to be commit 10024ed06e9d91f24fdc78d59eef2f76bf395438)

16 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!
(This used to be commit 8a6d37752182e0de7fd04b2c31f90e145dde783b)

16 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.
(This used to be commit 28871bb6969ca70aabcc622410dd1fc5addcceca)

16 years agoClient side functions for enumprinterkey.
Tim Potter [Wed, 6 Nov 2002 23:38:39 +0000 (23:38 +0000)]
Client side functions for enumprinterkey.
(This used to be commit f56ce473b6964302ba51fc9796ee919738731065)

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

Stub for deleteprinterkey.
(This used to be commit 64e04380f7ad9b471a681638dfde93e0c65f9fa3)

16 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.
(This used to be commit acecee6f2bb92c4992078f4fe2dfae4414f43482)

16 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)
(This used to be commit 090a2015eb9aa4ec68d80e972ae192d19afd536e)

16 years agoFix compiler warnings.
Tim Potter [Wed, 6 Nov 2002 20:13:02 +0000 (20:13 +0000)]
Fix compiler warnings.
(This used to be commit 3a68613e934e25f2ccfbf5afa5e26b5f47b40a53)

16 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
(This used to be commit 99a2e7fde1fd4e589035c273f40419ef322e097d)

16 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_?
(This used to be commit c13ed6c866fed43e5f83e083c377a1cd7d505061)

16 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
(This used to be commit 44c894531b09856a9a485912b05f08c59caa6a00)

16 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 '$'.
(This used to be commit dd73568f97ad51c93f096001058fd31fa14e88ae)

16 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 ('$')
(This used to be commit 2a492c4854d4c6469d8c7d21aa187fef6303b641)

16 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.
(This used to be commit 1e054e3db654801fbb5580211529cdfdea9ed686)

16 years agoIgnore profiles binary.
Tim Potter [Wed, 6 Nov 2002 01:18:30 +0000 (01:18 +0000)]
Ignore profiles binary.
(This used to be commit b195b1fa156472c66f919c0441fe5466e7afb414)

16 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.
(This used to be commit 48ed9dce0dab53066d3304baa0f24639a1f1755b)

16 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.
(This used to be commit 44db20f9f63d72c2e6e1f4ffedf72d75563369fb)

16 years agocorrect make
Jelmer Vernooij [Tue, 5 Nov 2002 22:28:45 +0000 (22:28 +0000)]
correct make
(This used to be commit 836bfb3a1bd0c91df8e39d22eb76740bda805310)

16 years agoMissed extern declaration.
Jeremy Allison [Tue, 5 Nov 2002 21:49:45 +0000 (21:49 +0000)]
Missed extern declaration.
Jeremy.
(This used to be commit e39e2b4c3488fbd9e9a08dd5629a672d1459e64e)

16 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.
(This used to be commit 075987f1db4de5e21ebf205a16a847ce0b2a926e)

16 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)
(This used to be commit 2e7a904856f616605e341c897d2be0f863c4b53d)

16 years ago'make everything' in docs
Jelmer Vernooij [Tue, 5 Nov 2002 21:41:04 +0000 (21:41 +0000)]
'make everything' in docs
(This used to be commit 960082d860c36419c63094be778decdadb061c1d)

16 years agoFix small syntax errors
Jelmer Vernooij [Tue, 5 Nov 2002 21:35:22 +0000 (21:35 +0000)]
Fix small syntax errors
(This used to be commit 7f9b0dbf5bddf6b49fdb8788ab6745ed46cb9cca)

16 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.
(This used to be commit 248067931a2a8eeee86ea343bddf96d2bd727dbf)

16 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.
(This used to be commit db67c5f7e53b231fe217a29a15888e8895ce2229)

16 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.
(This used to be commit 39136827d135c91e42ec2b36f420262b1b18093c)

16 years agoAdd note about obsolete section
Jelmer Vernooij [Tue, 5 Nov 2002 18:48:59 +0000 (18:48 +0000)]
Add note about obsolete section
(This used to be commit 2d38795d3a9258babccfe52420ed83ec5a1d3f51)

16 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
(This used to be commit b4f00ceaadc77158870ea2bd9d8a0e0845c89b7a)

16 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
(This used to be commit b0788c3e8e84bec13e2d2cbf733cd37e45c7afda)

16 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
(This used to be commit e8a77556477a0ec0c83786e0c66c2caaf473ea50)

16 years agoAdd pdb_xml docs
Jelmer Vernooij [Tue, 5 Nov 2002 17:11:23 +0000 (17:11 +0000)]
Add pdb_xml docs
(This used to be commit f92f10ef253615d453aca6cb093f65a3a0a62283)

16 years agoMove pdb_xml to source/
Jelmer Vernooij [Tue, 5 Nov 2002 17:08:32 +0000 (17:08 +0000)]
Move pdb_xml to source/
(This used to be commit b68106a79e4536fa82d75dd330d07dba51bfeaf4)

16 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
(This used to be commit 1c06377f84b170fe2a6476df13f1b2a0d39d0a92)

16 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
(This used to be commit 6642f6c5a9d6fa52a41a382850ed8bb3e1ebf701)

16 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
(This used to be commit 1d742e14ad18070aee654071d159b8b7410d6f86)

16 years agoRerun autoconf
Jelmer Vernooij [Tue, 5 Nov 2002 16:36:37 +0000 (16:36 +0000)]
Rerun autoconf
(This used to be commit 53736430f8b57dbad80cce62c2472e935cdd4dd9)

16 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/
(This used to be commit eb8965eeff3fb55d7041d9998b45da403ecb03a2)

16 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
(This used to be commit 570c3b2fab6368726213bb786e33902f261eb606)

16 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 *?
(This used to be commit 6b218da6453032339f2451a434d14894050dd1b5)

16 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.
(This used to be commit cf6d2d9d9e2adbbb7a547784cb11d05ed624e410)

16 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.
(This used to be commit 49a0ba46e6693bb819440d4ab40045afc4a7ae17)

16 years agoUpdate test cases.
Martin Pool [Tue, 5 Nov 2002 02:52:01 +0000 (02:52 +0000)]
Update test cases.
(This used to be commit db2c393dd488dad2ce95f3b3cf0297d5b0159ae7)

16 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.
(This used to be commit f50051120f93b5f95f72dcb3df201979e6302f5b)

16 years agoRerun autoconf.
Tim Potter [Tue, 5 Nov 2002 02:03:01 +0000 (02:03 +0000)]
Rerun autoconf.
(This used to be commit fd9aff634be7d6e59995cc44c6b08a7ae442747a)

16 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.
(This used to be commit 01a89690a2e9d234188704c04e58b5dfa2e7d1f3)

16 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.
(This used to be commit 8f45315b913a9574dfeedaadf5560d143b38ca05)

16 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.
(This used to be commit d72b144e03b9a9cb3d676527ddc5b2d0e1ef42f8)

16 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
(This used to be commit c70a3191d4ba8864f026a2ba6b35b9e415541aa7)

16 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.
(This used to be commit 7827536c15ac27ebcc4e9c342be6e203248195f6)

16 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.
(This used to be commit 2085595565b99295d04a6663aad1ccac5bc1b657)

16 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
(This used to be commit 2593e1588355643bb76a9b8869573fe38fd3bc3e)

16 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
(This used to be commit a9c2817c79f675b82ace4e21df7fa123f9a995c3)

16 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.
(This used to be commit 6be885da2ca0ee41db86c46625301b51858061af)

16 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
(This used to be commit 30525aee33237f5b17e1067a96d09b7ee0a516a6)

16 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.
(This used to be commit 20d88a7d1e2a6d2daca29c5ffff3781197a97b57)

16 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.
(This used to be commit 631945a03a3bf4982177bc22ebccf096b2bb5b6c)

16 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.
(This used to be commit 12c3bb99a5f870b01ef389ddad1073fc92d2362c)

16 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.
(This used to be commit 0c1cfe559877d51090409d67f983a82bbbbaa7e2)

16 years agoDoc
Martin Pool [Mon, 4 Nov 2002 20:34:50 +0000 (20:34 +0000)]
Doc
(This used to be commit 21e41866425c6f8bf04b08b3edd5bf70caf56e32)

16 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.
(This used to be commit b0143e77d64f6af977395cf39e50f35e46486157)

16 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.
(This used to be commit 04cad599f40faf234b40090806bcd1ac0473470f)

16 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.
(This used to be commit 1b681bd524764deaef657ef41c39d037ac7dcc7b)

16 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.
(This used to be commit 5ade138bb815d3184fa57ff9cb548f78405059c5)

16 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.
(This used to be commit ed0e4a670d4d62b63afdaf7d9f13e39b98cdf1b2)

16 years agoSync to actual state
Jelmer Vernooij [Mon, 4 Nov 2002 19:38:15 +0000 (19:38 +0000)]
Sync to actual state
(This used to be commit bae2a38b17d4645e4faf74cd05a92511aee6c32b)

16 years agoAdd FIXME about --with-python
Martin Pool [Mon, 4 Nov 2002 19:36:34 +0000 (19:36 +0000)]
Add FIXME about --with-python
(This used to be commit 96741a251c731d71126dcf9c706f7bb7c954f6e7)

16 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
(This used to be commit dfc3d55493c40201244a9e44b89868f7128c6f85)

16 years agoMove testsmbc.c to examples
Jelmer Vernooij [Mon, 4 Nov 2002 17:11:18 +0000 (17:11 +0000)]
Move testsmbc.c to examples
(This used to be commit fdd70614d2dc29f6a676c30e254a0bf024687fb4)

16 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
(This used to be commit 7aad086c9a20c4c700dfce3f81d89ab982702198)

16 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
(This used to be commit ea026d74c1d8696e45c6bddc5b1b0029e7e41507)

16 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
(This used to be commit b279cc065385d45b8a16e220fb13b278d5921b1f)

16 years agoAdd @BUILD_POPT@ to smbclient
Jelmer Vernooij [Mon, 4 Nov 2002 15:43:21 +0000 (15:43 +0000)]
Add @BUILD_POPT@ to smbclient
(This used to be commit 24dd3886e8783b09094c3b32b4184055cd06e8c2)

16 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
(This used to be commit 91f9c9e1d8b490eb384198ff012f65e22f834c39)

16 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
(This used to be commit e803bfde3d0b199155a87975e8af65f13babe692)