Simo Sorce [Fri, 30 Jul 2010 00:07:19 +0000 (20:07 -0400)]
rpcclient: Use DCERPC_AUTH_LEVEL_CONNECT if no sign/seal is set for ntlmssp
Volker Lendecke [Fri, 30 Jul 2010 14:18:51 +0000 (16:18 +0200)]
s3: Remove "cli" from "struct finfo"
Günther Deschner [Fri, 30 Jul 2010 09:24:23 +0000 (11:24 +0200)]
s4-smbtorture: remove ifdefed symlink test, this is already skipped internally
in the s3 case.
Guenther
Günther Deschner [Fri, 30 Jul 2010 09:23:06 +0000 (11:23 +0200)]
Revert "s4-torture: Disable setting REG_BINARY printer data with size 0."
This reverts commit
104c419345a42a9a02ae25df482f449dc41a6380.
Jeremy Allison [Thu, 29 Jul 2010 20:47:27 +0000 (13:47 -0700)]
We should be using the winbindd separator in this case, not hardcoding a \\ value.
Jeremy.
Volker Lendecke [Thu, 29 Jul 2010 12:48:06 +0000 (14:48 +0200)]
s3: Do the ftruncate write cache optimization in one place
Instead of hand-tuning all the cases that are below this piece of code, this is
a general case that we can catch upfront.
Volker Lendecke [Thu, 29 Jul 2010 12:21:14 +0000 (14:21 +0200)]
Revert "s3: Avoid pwrite calls for the 1-byte writes with zero content"
This reverts commit
6763730304627a58139450fd3e03a0ce48e31bb9.
Volker Lendecke [Thu, 29 Jul 2010 15:04:18 +0000 (17:04 +0200)]
s3: Avoid an unnecessary ftruncate call
If we just created the file, it has length 0 by definition. This is still done
while holding the share mode lock, so no race around wrt other cifs clients.
Jeremy Allison [Thu, 29 Jul 2010 19:44:00 +0000 (12:44 -0700)]
Fix bug #7589 - ntlm_auth fails to use cached credentials.
In handling the WINBINDD_PAM_AUTH message winbindd canonicalizes a *copy*
of the mapped username, but fails to canonicalize the actual username
sent to the backend domain process. When "winbind default domain"
is set this can lead to credentials being cached with an index of
user: user, not DOMAIN\user. All other code paths that use
canonicalize_username() (WINBINDD_PAM_CHAUTHTOK, WINBINDD_PAM_LOGOFF)
correctly canonicalize the data sent to the backend. All calls
the can cause credentials to be looked up (PAM_CHAUTHTOK etc.)
correctly call canonicalize_username() to create the credential
lookup key.
Jeremy.
Andreas Schneider [Thu, 29 Jul 2010 18:48:01 +0000 (20:48 +0200)]
s3-spoolss: Increased debug level for trace output.
Andreas Schneider [Thu, 29 Jul 2010 18:45:07 +0000 (20:45 +0200)]
s3-spoolss: Fixed debug statements and increased level.
Jeremy Allison [Wed, 28 Jul 2010 12:15:40 +0000 (05:15 -0700)]
Fix tdb_check() to work with read-only tdb databases. The function tdb_lockall() uses F_WRLCK internally, which doesn't work on a fd opened with O_RDONLY. Use tdb_lockall_read() instead.
Jeremy.
Kamen Mazdrashki [Fri, 16 Jul 2010 19:52:45 +0000 (22:52 +0300)]
s4-test: Expand DSSYNC test to be executed against all partitions
It is still possible to supply specific partition
to test with on command line using
--option="dssync:partition={PARTITION_DN}"
Kamen Mazdrashki [Wed, 14 Jul 2010 02:10:34 +0000 (05:10 +0300)]
s4-test-dssync: Issue warning in case we have diffrences in link attributes
In case differences in messages are:
1. Attributes with different values, i.e. 'replace'
2. Those attributes are back-link attributes
then we just warn about those differences.
It turns out windows doesn't send all values for back-link
attributes in replicated_object but in linked_attributes.
I consider this as workaround for the problem.
A better solution might be to merge linked_attribute values
into replacted_objects before comparing those with LDB result
(although this will work for Win2k8 and latter)
Kamen Mazdrashki [Wed, 14 Jul 2010 00:42:56 +0000 (03:42 +0300)]
s4-test: Simplify test_GetInfo() - we have what we need through LDB connection
we have already opened.
Added 'config_dn' and 'schema_dn' members which are to be used
later for extending the test_FetchData() to be executed
against every partition in case partition is not specified explicitly.
DsSyncText.site_name was removed also as it is not used anymore
Kamen Mazdrashki [Mon, 12 Jul 2010 23:37:58 +0000 (02:37 +0300)]
s4-ldb: use TALLOC_CTX type instead of 'void'
Simo Sorce [Wed, 28 Jul 2010 21:06:14 +0000 (17:06 -0400)]
s3-dcerpc: Try to fix build when gssapi_ext.h is not available
Simo Sorce [Wed, 28 Jul 2010 19:53:56 +0000 (15:53 -0400)]
Do not refernece pipe_auth_data directly in dcerpc_gssapi.c
Simo Sorce [Wed, 28 Jul 2010 19:35:02 +0000 (15:35 -0400)]
s3-dcerpc: Avoid ifdef, it is handled within dcerpc_gssapi.c already
Volker Lendecke [Wed, 28 Jul 2010 18:09:48 +0000 (20:09 +0200)]
s3: Fix cli_qpathinfo2
Does not fix the DIR_CREATETIME test, but it is definitely an error.
Simo Sorce [Wed, 28 Jul 2010 16:44:37 +0000 (12:44 -0400)]
smbd: Fix build warning
Simo Sorce [Sat, 24 Jul 2010 17:02:57 +0000 (13:02 -0400)]
s3-dcerpc: Add sign/seal with gssapi
Simo Sorce [Sat, 24 Jul 2010 14:35:25 +0000 (10:35 -0400)]
s3-dcerpc: Add next authentication step with gssapi
Simo Sorce [Fri, 23 Jul 2010 18:47:36 +0000 (14:47 -0400)]
s3-decrpc: Introduce gssapi support for dcerpc krb5 auth
Simo Sorce [Wed, 21 Jul 2010 16:11:37 +0000 (12:11 -0400)]
rpcclient: Use DCERPC_AUTH_LEVEL_CONNECT if no sign/seal is set for krb5 auth
Simo Sorce [Thu, 22 Jul 2010 20:14:16 +0000 (16:14 -0400)]
s3-dcerpc: Refactor calculate_data_len_tosend()
Simo Sorce [Wed, 21 Jul 2010 17:33:09 +0000 (13:33 -0400)]
s3-dcerpc: Add auth trailer only when appropriate.
Simo Sorce [Wed, 21 Jul 2010 16:12:58 +0000 (12:12 -0400)]
s3-dcerpc: consolidate unmarshalling of dcerpc_auth
Simo Sorce [Tue, 20 Jul 2010 22:43:37 +0000 (18:43 -0400)]
s3-dcerpc: revive cli_rpc_pipe_open_krb5()
Simo Sorce [Tue, 20 Jul 2010 22:39:46 +0000 (18:39 -0400)]
misc: Remove unused structure elements
Simo Sorce [Tue, 20 Jul 2010 21:26:32 +0000 (17:26 -0400)]
s3-rpcclient: Allow choosing spnego mech: (ntlm/krb5)
Simo Sorce [Tue, 20 Jul 2010 17:26:36 +0000 (13:26 -0400)]
s3-dcerpc: Use dcerpc_AuthType in pipe_auth_data
Simo Sorce [Tue, 20 Jul 2010 15:49:23 +0000 (11:49 -0400)]
s3-dcerpc: Cleanup and refactor create_rpc_bind_req()
Simo Sorce [Tue, 20 Jul 2010 15:23:11 +0000 (11:23 -0400)]
s3-auth: Remove unimplemented functions
Simo Sorce [Tue, 20 Jul 2010 15:22:50 +0000 (11:22 -0400)]
s3-dcerpc: Set flags directly instead of calling unimplemented functions.
Simo Sorce [Tue, 20 Jul 2010 00:03:08 +0000 (20:03 -0400)]
s3-dcerpc: Use dcerpc_check_auth in client code too
Simo Sorce [Mon, 19 Jul 2010 23:49:35 +0000 (19:49 -0400)]
s3-dcerpc: Make dcerpc_check_auth() common code
Simo Sorce [Mon, 19 Jul 2010 23:42:12 +0000 (19:42 -0400)]
s3-dcerpc: Add the same paranoia checks we have in the client code
Simo Sorce [Mon, 19 Jul 2010 23:34:34 +0000 (19:34 -0400)]
s3-dcerpc: Split auth checking into a generic function.
Simo Sorce [Mon, 19 Jul 2010 21:51:18 +0000 (17:51 -0400)]
s3-dcerpc do not pass pipes_struct to dcesrv_auth_request()
Simo Sorce [Mon, 19 Jul 2010 21:14:56 +0000 (17:14 -0400)]
s3-dcerpc: Make dcesrv_auth_request() return NTSTATUS codes
Simo Sorce [Mon, 19 Jul 2010 20:16:40 +0000 (16:16 -0400)]
s3-dcerpc: Use the common dcerpc_add_auth_footer() in the server code
Simo Sorce [Mon, 19 Jul 2010 20:10:35 +0000 (16:10 -0400)]
s3-dcerpc: Move dcerpc_add_auth_footer() to the common helpers file
Simo Sorce [Mon, 19 Jul 2010 13:07:22 +0000 (09:07 -0400)]
s3-dcerpc: Introduce generic helper function to add auth trailer
Simo Sorce [Sat, 17 Jul 2010 21:53:44 +0000 (17:53 -0400)]
s3-dcerpc: Pass explicit arguments so that this is not client specific
Simo Sorce [Sat, 17 Jul 2010 21:32:35 +0000 (17:32 -0400)]
s3-dcerpc: Move marshalling of dcerpc_auth_header in the callers
Andreas Schneider [Wed, 28 Jul 2010 09:06:36 +0000 (11:06 +0200)]
s3-rpc: Use struct pipes_struct.
Andreas Schneider [Wed, 28 Jul 2010 08:28:57 +0000 (10:28 +0200)]
s3-include: Use struct pipes struct and get rid of the typedef.
Andreas Schneider [Wed, 28 Jul 2010 08:28:36 +0000 (10:28 +0200)]
s3-winbind: Use struct pipes_struct.
Andreas Schneider [Wed, 28 Jul 2010 08:28:18 +0000 (10:28 +0200)]
s3-uid: Use struct pipes_struct.
Andreas Schneider [Wed, 28 Jul 2010 08:27:55 +0000 (10:27 +0200)]
s3-wkssvc: Use struct pipes_struct.
Andreas Schneider [Wed, 28 Jul 2010 08:20:10 +0000 (10:20 +0200)]
s3-winreg: Use struct pipes_struct.
Andreas Schneider [Wed, 28 Jul 2010 08:19:26 +0000 (10:19 +0200)]
s3-svcctl: Use struct pipes_struct.
Andreas Schneider [Wed, 28 Jul 2010 08:19:05 +0000 (10:19 +0200)]
s3-srvsvc: Use struct pipes_struct.
Andreas Schneider [Wed, 28 Jul 2010 08:18:08 +0000 (10:18 +0200)]
s3-spoolss: Use struct pipes_struct.
Andreas Schneider [Wed, 28 Jul 2010 08:17:21 +0000 (10:17 +0200)]
s3-samr: Use struct pipes_struct.
Andreas Schneider [Wed, 28 Jul 2010 08:16:34 +0000 (10:16 +0200)]
s3-rpc_pipe: Use struct pipes_struct.
Andreas Schneider [Wed, 28 Jul 2010 08:15:45 +0000 (10:15 +0200)]
s3-ntsvcs: Use struct pipes_struct.
Andreas Schneider [Wed, 28 Jul 2010 07:49:07 +0000 (09:49 +0200)]
s3-netlogon: Use struct pipes_struct.
Andreas Schneider [Wed, 28 Jul 2010 07:48:42 +0000 (09:48 +0200)]
s3-lsa: Use struct pipes_struct.
Andreas Schneider [Wed, 28 Jul 2010 07:48:25 +0000 (09:48 +0200)]
s3-initshutdown: Use struct pipes_struct.
Andreas Schneider [Wed, 28 Jul 2010 07:48:08 +0000 (09:48 +0200)]
s3-eventlog: Use struct pipes_struct.
Andreas Schneider [Wed, 28 Jul 2010 07:47:40 +0000 (09:47 +0200)]
s3-echo: Use struct pipes_struct.
Andreas Schneider [Wed, 28 Jul 2010 07:47:25 +0000 (09:47 +0200)]
s3-dssetup: Use struct pipes_struct.
Andreas Schneider [Wed, 28 Jul 2010 07:47:04 +0000 (09:47 +0200)]
s3-dfs: Use struct pipes_struct.
Andreas Schneider [Wed, 28 Jul 2010 07:46:43 +0000 (09:46 +0200)]
s3-rpc_server: Use struct pipes_struct.
Andreas Schneider [Wed, 28 Jul 2010 07:23:25 +0000 (09:23 +0200)]
pidl: Use struct pipes_struct.
Andreas Schneider [Wed, 30 Jun 2010 11:18:21 +0000 (13:18 +0200)]
s3-lib: Remove redefinition of RL_COMPLETION_CAST.
This is already defined in replace/system/readline.h.
Karolin Seeger [Wed, 28 Jul 2010 07:27:43 +0000 (09:27 +0200)]
WHATSNEW: Update changes.
Thanks to Simo for providing the summary!
Karolin
Volker Lendecke [Tue, 27 Jul 2010 08:59:55 +0000 (10:59 +0200)]
s3: Remove a typedef (struct file_info)
Andreas Schneider [Tue, 27 Jul 2010 10:27:54 +0000 (12:27 +0200)]
s3-spoolss: Fixed FILL_DRIVER_STRING leading to wrong results.
Simo Sorce [Mon, 26 Jul 2010 22:28:15 +0000 (18:28 -0400)]
s3-spoolss: Avoid segfault, check drivername is actually not NULL.
Simo Sorce [Mon, 26 Jul 2010 17:14:03 +0000 (19:14 +0200)]
s3-spoolss: Fixed a possible segfault in winreg_get_printer.
Andreas Schneider [Mon, 26 Jul 2010 16:12:13 +0000 (18:12 +0200)]
s3-spoolss: Correctly set the default values.
Andreas Schneider [Tue, 15 Jun 2010 11:37:44 +0000 (13:37 +0200)]
s3-printing: Added automatic migration of printing tdbs.
Signed-off-by: Jim McDonough <jmcd@samba.org>
Andreas Schneider [Wed, 30 Jun 2010 08:40:24 +0000 (10:40 +0200)]
s3-spoolss: Move the standard mappings to spoolss.
Signed-off-by: Jim McDonough <jmcd@samba.org>
Andreas Schneider [Wed, 30 Jun 2010 08:39:43 +0000 (10:39 +0200)]
s3-lib: Make the standard_mapping parameter const.
Signed-off-by: Jim McDonough <jmcd@samba.org>
Andreas Schneider [Wed, 30 Jun 2010 08:25:08 +0000 (10:25 +0200)]
s3-spoolss: Remove the program global current_user_info.
Signed-off-by: Jim McDonough <jmcd@samba.org>
Andreas Schneider [Tue, 29 Jun 2010 13:05:00 +0000 (15:05 +0200)]
s3-spoolss: Remove unused MAGIC_DISPLAY_FREQUENCY
Signed-off-by: Jim McDonough <jmcd@samba.org>
Andreas Schneider [Mon, 28 Jun 2010 07:57:41 +0000 (09:57 +0200)]
s4-torture: Enable tests with keynames including a slash.
Signed-off-by: Jim McDonough <jmcd@samba.org>
Andreas Schneider [Tue, 15 Jun 2010 11:37:44 +0000 (13:37 +0200)]
s3-printing: Added automatic migration of printing tdbs.
Signed-off-by: Jim McDonough <jmcd@samba.org>
Andreas Schneider [Tue, 15 Jun 2010 09:48:12 +0000 (11:48 +0200)]
s3-printing: Move all tdb upgrade functions to a separate file.
Signed-off-by: Jim McDonough <jmcd@samba.org>
Simo Sorce [Fri, 7 May 2010 09:03:32 +0000 (05:03 -0400)]
s3-smbd: Convert reply_printqueue to use spoolss.
Signed-off-by: Jim McDonough <jmcd@samba.org>
Andreas Schneider [Tue, 1 Jun 2010 15:09:21 +0000 (17:09 +0200)]
Revert "s4-smbtorture: skip driverName and printerName DsSpooler tests for now."
This reverts commit
23eb2888d94b34822e4c49b1d62f4bd3fac43fcf.
Signed-off-by: Jim McDonough <jmcd@samba.org>
Andreas Schneider [Tue, 8 Jun 2010 11:03:22 +0000 (13:03 +0200)]
s3-spoolss: Create winprint print processor key.
Signed-off-by: Jim McDonough <jmcd@samba.org>
Simo Sorce [Fri, 7 May 2010 14:37:48 +0000 (10:37 -0400)]
s3-printing: Removed unused function print_job_fd().
Signed-off-by: Jim McDonough <jmcd@samba.org>
Simo Sorce [Fri, 7 May 2010 11:35:23 +0000 (07:35 -0400)]
s3-smbd: Use the right check to test if we can print.
Signed-off-by: Jim McDonough <jmcd@samba.org>
Simo Sorce [Fri, 7 May 2010 12:01:13 +0000 (08:01 -0400)]
s3-printing: Moved printing.c headers to include/printing.h.
Signed-off-by: Jim McDonough <jmcd@samba.org>
Simo Sorce [Wed, 5 May 2010 12:56:46 +0000 (08:56 -0400)]
s3-spoolss: Use WERROR for print_job_delete.
And also check for PJOB_SMBD_SPOOLING in print_job_write.
Signed-off-by: Jim McDonough <jmcd@samba.org>
Simo Sorce [Fri, 7 May 2010 11:45:25 +0000 (07:45 -0400)]
s3-printing: Removed unused printfsp.c.
Signed-off-by: Jim McDonough <jmcd@samba.org>
Simo Sorce [Tue, 4 May 2010 08:28:48 +0000 (04:28 -0400)]
s3-smbd: Migrated to new spoolss functions for printing.
Signed-off-by: Jim McDonough <jmcd@samba.org>
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.
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>
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>
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>
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>
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>
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>
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>
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>