kai/samba.git
9 years agos3-printing: Handled case when smbd spools a file on behalf of spoolss.
Simo Sorce [Tue, 4 May 2010 06:51:12 +0000 (02:51 -0400)]
s3-printing: Handled case when smbd spools a file on behalf of spoolss.

9 years agos3-printing: Made print_job_start more robust.
Simo Sorce [Sat, 1 May 2010 21:42:52 +0000 (17:42 -0400)]
s3-printing: Made print_job_start more robust.

Explicitly return ntstatus errors instead of relying on elusive errno.
Split the function to make it easier to follow.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-printing: Moved remaining prototypes to nt_printing.h.
Andreas Schneider [Tue, 11 May 2010 09:14:55 +0000 (11:14 +0200)]
s3-printing: Moved remaining prototypes to nt_printing.h.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-printing: Remove unused printer registry key functions.
Andreas Schneider [Tue, 11 May 2010 09:07:36 +0000 (11:07 +0200)]
s3-printing: Remove unused printer registry key functions.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-printing: Removed unused security descriptor functions.
Andreas Schneider [Tue, 11 May 2010 09:02:59 +0000 (11:02 +0200)]
s3-printing: Removed unused security descriptor functions.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-printing: Removed unused nt_forms.
Andreas Schneider [Tue, 11 May 2010 08:55:20 +0000 (10:55 +0200)]
s3-printing: Removed unused nt_forms.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-printing: Removed unsuded c_setprinter functions.
Andreas Schneider [Tue, 11 May 2010 08:52:11 +0000 (10:52 +0200)]
s3-printing: Removed unsuded c_setprinter functions.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-printing: Removed unused free_a_printer function.
Andreas Schneider [Tue, 11 May 2010 08:49:46 +0000 (10:49 +0200)]
s3-printing: Removed unused free_a_printer function.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-printing: Removed unused mod_a_printer functions.
Andreas Schneider [Tue, 11 May 2010 08:49:03 +0000 (10:49 +0200)]
s3-printing: Removed unused mod_a_printer functions.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-printing: Removed unused get_a_printer functions.
Andreas Schneider [Tue, 11 May 2010 08:46:10 +0000 (10:46 +0200)]
s3-printing: Removed unused get_a_printer functions.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-smbd: Added code to print via spoolss.
Simo Sorce [Wed, 28 Apr 2010 22:55:20 +0000 (18:55 -0400)]
s3-smbd: Added code to print via spoolss.

9 years agos3-spoolss: Removed wrong comment.
Andreas Schneider [Mon, 10 May 2010 14:46:34 +0000 (16:46 +0200)]
s3-spoolss: Removed wrong comment.

This doesn't reflect the current implementation.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-spoolss: Moved shared printing functions to nt_printing.h
Andreas Schneider [Mon, 10 May 2010 14:41:10 +0000 (16:41 +0200)]
s3-spoolss: Moved shared printing functions to nt_printing.h

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-spoolss: Removed the last free_a_printer() call in spoolss_nt.c.
Andreas Schneider [Mon, 10 May 2010 14:44:47 +0000 (16:44 +0200)]
s3-spoolss: Removed the last free_a_printer() call in spoolss_nt.c.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-spoolss: Removed unused set_printer_dataex().
Simo Sorce [Fri, 7 May 2010 13:42:55 +0000 (09:42 -0400)]
s3-spoolss: Removed unused set_printer_dataex().

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-spoolss: Create and update DsSpooler values.
Andreas Schneider [Fri, 30 Apr 2010 08:35:08 +0000 (10:35 +0200)]
s3-spoolss: Create and update DsSpooler values.

9 years agos3-spoolss: Use a temporary talloc context in update_printer.
Andreas Schneider [Fri, 30 Apr 2010 08:14:09 +0000 (10:14 +0200)]
s3-spoolss: Use a temporary talloc context in update_printer.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-spoolss: Use the existing memory context for winreg_get_printer.
Andreas Schneider [Thu, 29 Apr 2010 12:07:10 +0000 (14:07 +0200)]
s3-spoolss: Use the existing memory context for winreg_get_printer.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-spoolss: Don't return the printer devicemode in spoolss_EnumJobs.
Andreas Schneider [Wed, 28 Apr 2010 20:46:22 +0000 (22:46 +0200)]
s3-spoolss: Don't return the printer devicemode in spoolss_EnumJobs.

Jobs have their own DeviceMode, see print_job_devmode().

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-spoolss: Fixed the driver unc strings for dependent files.
Andreas Schneider [Wed, 28 Apr 2010 10:41:23 +0000 (12:41 +0200)]
s3-spoolss: Fixed the driver unc strings for dependent files.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-spoolss: Use winreg_delete_printer_key to delete printers.
Simo Sorce [Mon, 26 Apr 2010 22:50:44 +0000 (18:50 -0400)]
s3-spoolss: Use winreg_delete_printer_key to delete printers.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-spoolss: Get rid of get_server_name.
Simo Sorce [Mon, 26 Apr 2010 22:33:20 +0000 (18:33 -0400)]
s3-spoolss: Get rid of get_server_name.

This function was useless the structure is public and used everywhere.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-printing: Converted printer publishing functions.
Simo Sorce [Mon, 26 Apr 2010 21:34:24 +0000 (17:34 -0400)]
s3-printing: Converted printer publishing functions.

Use spoolss_PrintInfo2 and winreg calls.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-printing: Convert print_driver_in_use.
Simo Sorce [Mon, 26 Apr 2010 18:46:33 +0000 (14:46 -0400)]
s3-printing: Convert print_driver_in_use.

Use spoolss_PrintInfo2 and winreg calls.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-printing: Convert print_time_access_check.
Simo Sorce [Mon, 26 Apr 2010 17:51:33 +0000 (13:51 -0400)]
s3-printing: Convert print_time_access_check.

use spoolss_PrintInfo2 and winreg calls

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-spoolss: Use spoolss_PrinterInfo2 in notify code.
Simo Sorce [Mon, 26 Apr 2010 17:08:32 +0000 (13:08 -0400)]
s3-spoolss: Use spoolss_PrinterInfo2 in notify code.

9 years agos3-spoolss: Convert do_drv_upgrade_printer() to winreg functions.
Simo Sorce [Mon, 26 Apr 2010 15:56:00 +0000 (11:56 -0400)]
s3-spoolss: Convert do_drv_upgrade_printer() to winreg functions.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-spoolss: Removed construct_dev_mode() function.
Simo Sorce [Mon, 26 Apr 2010 14:24:46 +0000 (10:24 -0400)]
s3-spoolss: Removed construct_dev_mode() function.

Replace it with spoolss_create_default_devmode() or
copy_devicemode() where needed.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-spoolss: Use spoolss_PrinterInfo2 in construct_printer_driver_info_level.
Simo Sorce [Mon, 26 Apr 2010 13:30:10 +0000 (09:30 -0400)]
s3-spoolss: Use spoolss_PrinterInfo2 in construct_printer_driver_info_level.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-spoolss: Use spoolss_PrinterInfo2 for job info.
Simo Sorce [Fri, 23 Apr 2010 21:58:10 +0000 (17:58 -0400)]
s3-spoolss: Use spoolss_PrinterInfo2 for job info.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-spoolss: Migrated driver functions to winreg.
Simo Sorce [Thu, 15 Apr 2010 00:48:00 +0000 (20:48 -0400)]
s3-spoolss: Migrated driver functions to winreg.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-spoolss: Set c_setprinter always to 0.
Andreas Schneider [Mon, 26 Apr 2010 09:52:19 +0000 (11:52 +0200)]
s3-spoolss: Set c_setprinter always to 0.

This value is only used for the well known printers list which Samba
doesn't implement.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-spoolss: Migrated spoolss_DeletePrinter to cleanup winreg keys.
Andreas Schneider [Thu, 22 Apr 2010 21:52:33 +0000 (23:52 +0200)]
s3-spoolss: Migrated spoolss_DeletePrinter to cleanup winreg keys.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-spoolss: Migrated spoolss_GetPrinter and spoolss_EnumPrinters to winreg_update_pri...
Andreas Schneider [Mon, 26 Apr 2010 09:53:25 +0000 (11:53 +0200)]
s3-spoolss: Migrated spoolss_GetPrinter and spoolss_EnumPrinters to winreg_update_printer.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-spoolss: Migrated spoolss_OpenPrinter to create defaults with winreg_create_printer.
Andreas Schneider [Thu, 22 Apr 2010 08:59:27 +0000 (10:59 +0200)]
s3-spoolss: Migrated spoolss_OpenPrinter to create defaults with winreg_create_printer.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-spoolss: Removed unused function printer_info2_to_nt_printer_info2().
Andreas Schneider [Fri, 7 May 2010 08:38:54 +0000 (10:38 +0200)]
s3-spoolss: Removed unused function printer_info2_to_nt_printer_info2().

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-spoolss: Removed unused function convert_printer_info().
Andreas Schneider [Fri, 7 May 2010 08:38:17 +0000 (10:38 +0200)]
s3-spoolss: Removed unused function convert_printer_info().

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-spoolss: Migrated spoolss_AddPrinter and spoolss_SetPrinter.
Andreas Schneider [Fri, 16 Apr 2010 09:35:05 +0000 (11:35 +0200)]
s3-spoolss: Migrated spoolss_AddPrinter and spoolss_SetPrinter.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-spoolss: Migrated spoolss_Forms to use the winreg changeid function.
Andreas Schneider [Thu, 15 Apr 2010 13:20:42 +0000 (15:20 +0200)]
s3-spoolss: Migrated spoolss_Forms to use the winreg changeid function.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-spoolss: Migrated spoolss_GetForm to the winreg function.
Andreas Schneider [Thu, 1 Apr 2010 10:46:22 +0000 (12:46 +0200)]
s3-spoolss: Migrated spoolss_GetForm to the winreg function.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-spoolss: Migrated spoolss_SetForm to the winreg function.
Andreas Schneider [Thu, 1 Apr 2010 09:53:01 +0000 (11:53 +0200)]
s3-spoolss: Migrated spoolss_SetForm to the winreg function.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-spoolss: Migrated spoolss_DeleteForm to the winreg function.
Andreas Schneider [Wed, 31 Mar 2010 13:31:53 +0000 (15:31 +0200)]
s3-spoolss: Migrated spoolss_DeleteForm to the winreg function.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-spoolss: Migrated spoolss_AddForm to the winreg function.
Andreas Schneider [Wed, 31 Mar 2010 12:48:27 +0000 (14:48 +0200)]
s3-spoolss: Migrated spoolss_AddForm to the winreg function.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-spoolss: Migrated spoolss_EnumForms to the winreg function.
Andreas Schneider [Wed, 31 Mar 2010 11:04:30 +0000 (13:04 +0200)]
s3-spoolss: Migrated spoolss_EnumForms to the winreg function.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-spoolss: Migrated spoolss_DeletePrinterKey to the winreg functions.
Andreas Schneider [Fri, 26 Mar 2010 12:22:57 +0000 (13:22 +0100)]
s3-spoolss: Migrated spoolss_DeletePrinterKey to the winreg functions.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-spoolss: Migrated spoolss_DeletePrinterDataEx to the winreg functions.
Andreas Schneider [Mon, 15 Mar 2010 11:30:32 +0000 (12:30 +0100)]
s3-spoolss: Migrated spoolss_DeletePrinterDataEx to the winreg functions.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-spoolss: Migrated spoolss_EnumPrinterKey to the winreg functions.
Andreas Schneider [Wed, 17 Mar 2010 15:38:52 +0000 (16:38 +0100)]
s3-spoolss: Migrated spoolss_EnumPrinterKey to the winreg functions.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-spoolss: Migrated spoolss_EnumPrinterDataEx to the winreg functions.
Andreas Schneider [Mon, 15 Mar 2010 13:01:01 +0000 (14:01 +0100)]
s3-spoolss: Migrated spoolss_EnumPrinterDataEx to the winreg functions.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-spoolss: Migrated spoolss_GetPrinterDataEx to the winreg functions.
Andreas Schneider [Mon, 15 Mar 2010 11:28:09 +0000 (12:28 +0100)]
s3-spoolss: Migrated spoolss_GetPrinterDataEx to the winreg functions.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-spoolss: Migrated spoolss_SetPrinterDataEx to the winreg functions.
Andreas Schneider [Mon, 15 Mar 2010 11:20:31 +0000 (12:20 +0100)]
s3-spoolss: Migrated spoolss_SetPrinterDataEx to the winreg functions.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-registry: Redirect KEY_CONTROL_PRINTERS to KEY_WINNT_PRINTERS.
Andreas Schneider [Wed, 26 May 2010 09:27:28 +0000 (11:27 +0200)]
s3-registry: Redirect KEY_CONTROL_PRINTERS to KEY_WINNT_PRINTERS.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-registry: Init all needed registry keys for printing.
Andreas Schneider [Thu, 8 Apr 2010 09:26:40 +0000 (11:26 +0200)]
s3-registry: Init all needed registry keys for printing.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos3-spoolss: Migrated NT_DEVICEMODE to spoolss_DeviceMode.
Simo Sorce [Thu, 22 Apr 2010 20:53:15 +0000 (16:53 -0400)]
s3-spoolss: Migrated NT_DEVICEMODE to spoolss_DeviceMode.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agos4-torture: Disable setting REG_BINARY printer data with size 0.
Andreas Schneider [Fri, 26 Mar 2010 13:40:05 +0000 (14:40 +0100)]
s4-torture: Disable setting REG_BINARY printer data with size 0.

Signed-off-by: Jim McDonough <jmcd@samba.org>
9 years agoFix several places where talloc_asprintf returns were unchecked.
Jeremy Allison [Tue, 27 Jul 2010 09:36:57 +0000 (02:36 -0700)]
Fix several places where talloc_asprintf returns were unchecked.

Jeremy.

9 years agoWHATSNEW: Update changes.
Karolin Seeger [Tue, 27 Jul 2010 07:48:05 +0000 (09:48 +0200)]
WHATSNEW: Update changes.

Thanks to Jeremy for providing this summary!

Karolin

9 years agoSecond part of fix for bug 7578 - 'net idmap restore' fails to set HWM, causing dupli...
Jeremy Allison [Tue, 27 Jul 2010 07:23:37 +0000 (00:23 -0700)]
Second part of fix for bug 7578 - 'net idmap restore' fails to set HWM, causing duplicates.

Jeremy.

9 years agoWHATSNEW: Update changes.
Karolin Seeger [Tue, 27 Jul 2010 07:02:36 +0000 (09:02 +0200)]
WHATSNEW: Update changes.

Thanks to Holger for providing!

Karolin

9 years agos3: Fix bug 7578
Justin Maggard [Tue, 27 Jul 2010 06:42:04 +0000 (08:42 +0200)]
s3: Fix bug 7578

Uninitialized variable read in _wbint_SetHWM

9 years agos3: Early start of an async nbench
Volker Lendecke [Fri, 23 Jul 2010 18:08:58 +0000 (20:08 +0200)]
s3: Early start of an async nbench

The current nbench implementations have the problem that they fork a child
per simulated client. With hundreds or thousands of clients this can put
quite some load on the client. This test (when finished) will read the
standard dbench client.txt and run completely async from within one
process.

Volker

9 years agos3: Convert cli_qpathinfo_streams to cli_qpathinfo_send
Volker Lendecke [Mon, 26 Jul 2010 08:35:15 +0000 (10:35 +0200)]
s3: Convert cli_qpathinfo_streams to cli_qpathinfo_send

9 years agos3: Factor out parse_streams_blob
Volker Lendecke [Mon, 26 Jul 2010 08:08:38 +0000 (10:08 +0200)]
s3: Factor out parse_streams_blob

9 years agos3: Convert cli_qpathinfo_basic to cli_qpathinfo_send
Volker Lendecke [Mon, 26 Jul 2010 07:41:25 +0000 (09:41 +0200)]
s3: Convert cli_qpathinfo_basic to cli_qpathinfo_send

9 years agos3: Convert cli_qpathinfo2 to cli_qpathinfo_send
Volker Lendecke [Mon, 26 Jul 2010 07:27:11 +0000 (09:27 +0200)]
s3: Convert cli_qpathinfo2 to cli_qpathinfo_send

9 years agos3: Use error status instead of cli_errstr
Volker Lendecke [Mon, 26 Jul 2010 07:21:17 +0000 (09:21 +0200)]
s3: Use error status instead of cli_errstr

9 years agos3: Callers of cli_qpathinfo_recv might ignore the output
Volker Lendecke [Mon, 26 Jul 2010 20:57:47 +0000 (22:57 +0200)]
s3: Callers of cli_qpathinfo_recv might ignore the output

9 years agos3: Log the correct core path on Linux if core_pattern is set
Volker Lendecke [Fri, 23 Jul 2010 10:22:23 +0000 (12:22 +0200)]
s3: Log the correct core path on Linux if core_pattern is set

Contributions from Bill Hymas, IBM

9 years agos3: fix a typo
Volker Lendecke [Mon, 26 Jul 2010 13:04:52 +0000 (15:04 +0200)]
s3: fix a typo

9 years agos3: cli_qpathinfo2 expects at least 68 bytes
Volker Lendecke [Mon, 26 Jul 2010 07:11:40 +0000 (09:11 +0200)]
s3: cli_qpathinfo2 expects at least 68 bytes

9 years agos3: Convert cli_qpathinfo1 to cli_qpathinfo
Volker Lendecke [Mon, 26 Jul 2010 06:34:35 +0000 (08:34 +0200)]
s3: Convert cli_qpathinfo1 to cli_qpathinfo

9 years agos3: Fix a structure mess-up
Volker Lendecke [Mon, 26 Jul 2010 05:49:58 +0000 (07:49 +0200)]
s3: Fix a structure mess-up

I wonder why the compiler did not complain -- maybe because
the structs have the same data members? No clue.

9 years agos3: Remove some unused struct members
Volker Lendecke [Mon, 26 Jul 2010 05:47:39 +0000 (07:47 +0200)]
s3: Remove some unused struct members

9 years agolib: added samba-util.pc creation
Andrew Tridgell [Mon, 26 Jul 2010 01:15:14 +0000 (11:15 +1000)]
lib: added samba-util.pc creation

Thanks to Brad Hards for this patch

9 years agos3: Convert cli_get_ea_list_path to cli_qpathinfo_send
Volker Lendecke [Sun, 25 Jul 2010 19:32:13 +0000 (21:32 +0200)]
s3: Convert cli_get_ea_list_path to cli_qpathinfo_send

9 years agos3: Factor out parse_ea_blob
Volker Lendecke [Sun, 25 Jul 2010 17:42:22 +0000 (19:42 +0200)]
s3: Factor out parse_ea_blob

9 years agos3: Convert cli_posix_stat to cli_qpathinfo_send
Volker Lendecke [Sun, 25 Jul 2010 15:49:20 +0000 (17:49 +0200)]
s3: Convert cli_posix_stat to cli_qpathinfo_send

9 years agos3: Convert cli_posix_getfacl to cli_qpathinfo_send
Volker Lendecke [Sun, 25 Jul 2010 15:46:01 +0000 (17:46 +0200)]
s3: Convert cli_posix_getfacl to cli_qpathinfo_send

9 years agos3: Convert cli_posix_readlink to cli_qpathinfo_send
Volker Lendecke [Sun, 25 Jul 2010 15:37:16 +0000 (17:37 +0200)]
s3: Convert cli_posix_readlink to cli_qpathinfo_send

9 years agos3: Add async cli_qpathinfo
Volker Lendecke [Sun, 25 Jul 2010 15:26:43 +0000 (17:26 +0200)]
s3: Add async cli_qpathinfo

9 years agos3: cli_qpathinfo->cli_qpathinfo1
Volker Lendecke [Sun, 25 Jul 2010 11:19:34 +0000 (13:19 +0200)]
s3: cli_qpathinfo->cli_qpathinfo1

9 years agos3: Fix cli_posix_stat
Volker Lendecke [Sun, 25 Jul 2010 17:12:28 +0000 (19:12 +0200)]
s3: Fix cli_posix_stat

nlink seems to be defined as 8 bytes, not 4

Jeremy, please check!

9 years agos3: use dump_data in query FILE_BASIC_UNIX_INFO
Volker Lendecke [Sun, 25 Jul 2010 17:11:30 +0000 (19:11 +0200)]
s3: use dump_data in query FILE_BASIC_UNIX_INFO

Jeremy, please check! To me this is a lot more readable than the decimal
listing of the bytes.

9 years agos3: Fix a typo (missing space)
Volker Lendecke [Sat, 24 Jul 2010 11:17:15 +0000 (13:17 +0200)]
s3: Fix a typo (missing space)

9 years agoFix bug 7583 - Smbclient fails to kerberos connect to a Alfresco JLAN CIFS Server
Jeremy Allison [Fri, 23 Jul 2010 17:54:46 +0000 (10:54 -0700)]
Fix bug 7583 - Smbclient fails to kerberos connect to a Alfresco JLAN CIFS Server

Correctly calculate the gssapi channel binding checkum.

Jeremy

Signed off by: simo <idra@samba.org>

9 years agos3: not use as-needed by default and auto use if enable-developer is active
Björn Jacke [Tue, 20 Jul 2010 17:48:39 +0000 (19:48 +0200)]
s3: not use as-needed by default and auto use if enable-developer is active

as discussed on samba-technical, we don't want people out there to use it
unwittingly by default. However by enabling it when enable-developer is used we
make sure that we don't break the feature.

9 years agos3-rpc_server: Cleanup the way we free pipe auth data
Simo Sorce [Sat, 17 Jul 2010 20:34:33 +0000 (16:34 -0400)]
s3-rpc_server: Cleanup the way we free pipe auth data

9 years agocleaup: Reformat cli_get_session_key()
Simo Sorce [Mon, 19 Jul 2010 19:43:22 +0000 (15:43 -0400)]
cleaup: Reformat cli_get_session_key()

merge cli_get_session_key

9 years agos3-dcerpc: Fix potential memleak
Simo Sorce [Sat, 17 Jul 2010 20:01:07 +0000 (16:01 -0400)]
s3-dcerpc: Fix potential memleak

Use a free function for schannel data too for now.

9 years agos3-dcerpc: Properly initialize output buffers on nak/fault
Simo Sorce [Tue, 20 Jul 2010 17:56:25 +0000 (13:56 -0400)]
s3-dcerpc: Properly initialize output buffers on nak/fault

9 years agos3-libsmb: Use data_blob_talloc to get krb5 ticket and session keys
Simo Sorce [Wed, 21 Jul 2010 00:00:12 +0000 (20:00 -0400)]
s3-libsmb: Use data_blob_talloc to get krb5 ticket and session keys

9 years agomisc: cleanup get_krb5_smb_session_key()
Simo Sorce [Tue, 20 Jul 2010 23:45:00 +0000 (19:45 -0400)]
misc: cleanup get_krb5_smb_session_key()

9 years agomisc: cleanup cli_krb5_get_ticket()
Simo Sorce [Tue, 20 Jul 2010 23:41:19 +0000 (19:41 -0400)]
misc: cleanup cli_krb5_get_ticket()

9 years agoAdd approriate TALLOC_CTX's thoughout the spnego code. No more implicit NULL contexts.
Jeremy Allison [Tue, 20 Jul 2010 23:17:58 +0000 (16:17 -0700)]
Add approriate TALLOC_CTX's thoughout the spnego code. No more implicit NULL contexts.

Jeremy.

9 years agoFix warning on 64-bit machines.
Jeremy Allison [Tue, 20 Jul 2010 22:12:07 +0000 (15:12 -0700)]
Fix warning on 64-bit machines.

Jeremy.

9 years agoFix one more data_blob -> data_blob_talloc. Move away from implicit NULL context...
Jeremy Allison [Tue, 20 Jul 2010 21:59:31 +0000 (14:59 -0700)]
Fix one more data_blob -> data_blob_talloc. Move away from implicit NULL context tallocs.

Jeremy.

9 years agoAdd TALLOC_CTX argument to spnego_parse_negTokenInit, reduce
Jeremy Allison [Tue, 20 Jul 2010 20:35:43 +0000 (13:35 -0700)]
Add TALLOC_CTX argument to spnego_parse_negTokenInit, reduce
use of malloc, and data_blob().

Jeremy.

9 years agos3: Fix two uninitialized variables
Volker Lendecke [Tue, 20 Jul 2010 19:54:45 +0000 (21:54 +0200)]
s3: Fix two uninitialized variables

9 years agoRename spnego_gen_negTokenTarg() -> spnego_gen_krb5_negTokenInit()
Jeremy Allison [Tue, 20 Jul 2010 18:14:49 +0000 (11:14 -0700)]
Rename spnego_gen_negTokenTarg() -> spnego_gen_krb5_negTokenInit()
as this correctly describes what this function does.

Jeremy.

9 years agoRemove gen_negTokenTarg(), as it's not actually creating a TokenTarg frame, but a...
Jeremy Allison [Tue, 20 Jul 2010 18:04:19 +0000 (11:04 -0700)]
Remove gen_negTokenTarg(), as it's not actually creating a TokenTarg frame, but a TokenInit one.
Move to using spnego_gen_negTokenInit() instead.

Jeremy

9 years agoFixes pointed out by <david.kondrad@legrand.us>. Free memory if not being
Jeremy Allison [Tue, 20 Jul 2010 16:51:48 +0000 (09:51 -0700)]
Fixes pointed out by <david.kondrad@legrand.us>. Free memory if not being
returned to caller. Remove unneeded asn1_tag_remaining() calls.

Jeremy.