kai/samba.git
21 years agoAdd make target 'modules' that currently builds vfs_audit, vfs_recycle and vfs_netatalk
Jelmer Vernooij [Wed, 13 Nov 2002 13:19:24 +0000 (13:19 +0000)]
Add make target 'modules' that currently builds vfs_audit, vfs_recycle and vfs_netatalk

21 years agoMove working VFS modules to source/modules/
Jelmer Vernooij [Wed, 13 Nov 2002 13:11:04 +0000 (13:11 +0000)]
Move working VFS modules to source/modules/

21 years agoMove VFS documentation to the HOWTO collection
Jelmer Vernooij [Wed, 13 Nov 2002 13:08:56 +0000 (13:08 +0000)]
Move VFS documentation to the HOWTO collection

21 years agoMove VFS documentation to SGML
Jelmer Vernooij [Wed, 13 Nov 2002 13:04:16 +0000 (13:04 +0000)]
Move VFS documentation to SGML

21 years agoTry to bring libsmbclient in line with the new global_myname stuff
Andrew Bartlett [Wed, 13 Nov 2002 06:38:33 +0000 (06:38 +0000)]
Try to bring libsmbclient in line with the new global_myname stuff

21 years agoUndo the new --enable-developer flags that caused breakage on gcc != 3.2, and
Andrew Bartlett [Wed, 13 Nov 2002 04:14:21 +0000 (04:14 +0000)]
Undo the new --enable-developer flags that caused breakage on gcc != 3.2, and
rerun autoconf

21 years agoSorry Jim we can't assign to global_xxx(), we need to call set_global_xxx()
Jeremy Allison [Wed, 13 Nov 2002 02:21:55 +0000 (02:21 +0000)]
Sorry Jim we can't assign to global_xxx(), we need to call set_global_xxx()
to ensure the malloc is done.
Jeremy.

21 years agoBring smbmount.c in line with jra's global-cide. global_scope was used here...
Jim McDonough [Wed, 13 Nov 2002 01:54:44 +0000 (01:54 +0000)]
Bring smbmount.c in line with jra's global-cide.  global_scope was used here...

21 years ago- Add some more warning flags for --enable-developer.
Andrew Bartlett [Wed, 13 Nov 2002 01:22:25 +0000 (01:22 +0000)]
- Add some more warning flags for --enable-developer.
- patch from SUSE for hiemdal headers in /usr/include/heimdal

21 years agoRemoved global_myworkgroup, global_myname, global_myscope. Added liberal
Jeremy Allison [Tue, 12 Nov 2002 23:15:52 +0000 (23:15 +0000)]
Removed global_myworkgroup, global_myname, global_myscope. Added liberal
dashes of const. This is a rather large check-in, some things may break.
It does compile though :-).
Jeremy.

21 years agoRename unpack_* functions to be consistent
Martin Pool [Tue, 12 Nov 2002 22:23:36 +0000 (22:23 +0000)]
Rename unpack_* functions to be consistent

Decode CP850 strings when unpacking

Add variable giving default encoding name

21 years agoRename pytdbpack_unpack -> pytdbunpack
Martin Pool [Tue, 12 Nov 2002 22:08:59 +0000 (22:08 +0000)]
Rename pytdbpack_unpack -> pytdbunpack

21 years agoJust reorder functions to put related ones together
Martin Pool [Tue, 12 Nov 2002 22:07:11 +0000 (22:07 +0000)]
Just reorder functions to put related ones together

21 years agoRemove dead code for packing buffers which has now been reimplemented.
Martin Pool [Tue, 12 Nov 2002 22:00:57 +0000 (22:00 +0000)]
Remove dead code for packing buffers which has now been reimplemented.

21 years agoRemove dead code for packing buffers which has now been reimplemented.
Martin Pool [Tue, 12 Nov 2002 21:42:36 +0000 (21:42 +0000)]
Remove dead code for packing buffers which has now been reimplemented.

21 years agoRemove non-integer Pointer values, which are no longer supported.
Martin Pool [Tue, 12 Nov 2002 21:40:37 +0000 (21:40 +0000)]
Remove non-integer Pointer values, which are no longer supported.

21 years agoDon't throw out WEIRD - yet (I committed my local changes together with my last fix...
Jelmer Vernooij [Tue, 12 Nov 2002 18:11:00 +0000 (18:11 +0000)]
Don't throw out WEIRD - yet (I committed my local changes together with my last fix. D'oh!)

21 years agoFix segfault with high debug levels
Jelmer Vernooij [Tue, 12 Nov 2002 18:07:51 +0000 (18:07 +0000)]
Fix segfault with high debug levels

21 years agoAdd smb_register_charset() and use it
Jelmer Vernooij [Tue, 12 Nov 2002 15:18:12 +0000 (15:18 +0000)]
Add smb_register_charset() and use it

21 years agoFix all returns to be size_t (they are all unsigned). Fixup strlen being
Jeremy Allison [Mon, 11 Nov 2002 22:12:48 +0000 (22:12 +0000)]
Fix all returns to be size_t (they are all unsigned). Fixup strlen being
done on ucs2 strings.
Jeremy.

21 years agofix for CR 601. Only call addprinter command when the port, driver, comment, or...
Gerald Carter [Mon, 11 Nov 2002 22:05:05 +0000 (22:05 +0000)]
fix for CR 601.  Only call addprinter command when the port, driver, comment, or location field changed

21 years agofix typo(s/plaintext pass column/plain pass column/)
Jelmer Vernooij [Mon, 11 Nov 2002 19:20:23 +0000 (19:20 +0000)]
fix typo(s/plaintext pass column/plain pass column/)

21 years agoMore improvement of DEBUG output
Jelmer Vernooij [Mon, 11 Nov 2002 18:53:23 +0000 (18:53 +0000)]
More improvement of DEBUG output

21 years agoAdd extra debug info
Jelmer Vernooij [Mon, 11 Nov 2002 18:41:28 +0000 (18:41 +0000)]
Add extra debug info

21 years agoAdd getdata and getdataex commands
Jim McDonough [Mon, 11 Nov 2002 15:41:04 +0000 (15:41 +0000)]
Add getdata and getdataex commands

21 years agoFix typo
Jelmer Vernooij [Mon, 11 Nov 2002 13:49:25 +0000 (13:49 +0000)]
Fix typo

21 years agoAdd note about error that happens when the loopback device doesn't work
Jelmer Vernooij [Mon, 11 Nov 2002 13:29:46 +0000 (13:29 +0000)]
Add note about error that happens when the loopback device doesn't work

21 years agounion is better to avoid problems with pointers
Simo Sorce [Mon, 11 Nov 2002 09:01:24 +0000 (09:01 +0000)]
union is better to avoid problems with pointers

21 years agoFirst cut of fix for changenotify on a print server handle. Use the connections tdb
Jeremy Allison [Sun, 10 Nov 2002 22:24:10 +0000 (22:24 +0000)]
First cut of fix for changenotify on a print server handle. Use the connections tdb
with an snum of -1 and a special printername.
Jeremy.

21 years agoPrint the number of returned rows, not the number of fields
Jelmer Vernooij [Sun, 10 Nov 2002 16:29:50 +0000 (16:29 +0000)]
Print the number of returned rows, not the number of fields

21 years agoAdd $(POPT_LIB_OBJ) to PROTO_OBJ
Jelmer Vernooij [Sun, 10 Nov 2002 16:01:04 +0000 (16:01 +0000)]
Add $(POPT_LIB_OBJ) to PROTO_OBJ

21 years agoAdd example for MySQL
Jelmer Vernooij [Sun, 10 Nov 2002 12:07:54 +0000 (12:07 +0000)]
Add example for MySQL

21 years agoconsolidate error mapping functions into a single file
Simo Sorce [Sun, 10 Nov 2002 04:16:59 +0000 (04:16 +0000)]
consolidate error mapping functions into a single file

21 years agoFix for scalable printing noticed by tpot. Don't loop infinately
Jeremy Allison [Sun, 10 Nov 2002 03:00:28 +0000 (03:00 +0000)]
Fix for scalable printing noticed by tpot. Don't loop infinately
when holding a mutex.... :-).
Jeremy.

21 years agomake sure we don't try to decode any null password buffers during a
Andrew Tridgell [Sun, 10 Nov 2002 02:16:43 +0000 (02:16 +0000)]
make sure we don't try to decode any null password buffers during a
SAM sync. This copes with both unset passwords from NT4 DCs and the
null passwords you get from w2k domains.

21 years agomake sure that if kerberos fails we can fall back on NTLMSSP for SASL
Andrew Tridgell [Sun, 10 Nov 2002 00:35:04 +0000 (00:35 +0000)]
make sure that if kerberos fails we can fall back on NTLMSSP for SASL

21 years agoKill append_log from smbmount (thanks vance for reminding me).
Andrew Bartlett [Sat, 9 Nov 2002 23:17:01 +0000 (23:17 +0000)]
Kill append_log from smbmount (thanks vance for reminding me).

Andrew Bartlett

21 years agoAdd net help join text, from Steve Langasek.
Jim McDonough [Sat, 9 Nov 2002 17:59:24 +0000 (17:59 +0000)]
Add net help join text, from Steve Langasek.

Also update the other commands to his correct example of [<method>], since
it is optional.

Thanks, Steve.

21 years agodeldriver fix
Gerald Carter [Sat, 9 Nov 2002 14:48:27 +0000 (14:48 +0000)]
deldriver fix

21 years agore-enable ffpcn on print server handle
Gerald Carter [Sat, 9 Nov 2002 05:41:27 +0000 (05:41 +0000)]
re-enable ffpcn on print server handle

21 years agoremove accidental debug code..
Gerald Carter [Sat, 9 Nov 2002 04:37:07 +0000 (04:37 +0000)]
remove accidental debug code..

21 years agoFix bug found by tpot with given password server.
Jeremy Allison [Sat, 9 Nov 2002 03:57:28 +0000 (03:57 +0000)]
Fix bug found by tpot with given password server.
Jeremy.

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

21 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

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

21 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

21 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

21 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

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

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

21 years agoAdd enumdataex command
Jim McDonough [Fri, 8 Nov 2002 21:39:53 +0000 (21:39 +0000)]
Add enumdataex command

21 years agoImplement enumdata command
Jim McDonough [Fri, 8 Nov 2002 20:51:04 +0000 (20:51 +0000)]
Implement enumdata command

21 years agoAdd enumkey command (EnumPrinterKey api)
Jim McDonough [Fri, 8 Nov 2002 19:06:34 +0000 (19:06 +0000)]
Add enumkey command (EnumPrinterKey api)

21 years agopatches from Urban
Gerald Carter [Fri, 8 Nov 2002 18:44:57 +0000 (18:44 +0000)]
patches from Urban

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

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

21 years agoMake append_log work again
Jelmer Vernooij [Thu, 7 Nov 2002 21:39:51 +0000 (21:39 +0000)]
Make append_log work again

21 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

21 years agoFix small typo
Jelmer Vernooij [Thu, 7 Nov 2002 19:45:55 +0000 (19:45 +0000)]
Fix small typo

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

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

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

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/