1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
Commit Graph

50768 Commits

Author SHA1 Message Date
Jelmer Vernooij
d30b6af953 pyrpc: Raise proper NDR error codes with matching strings rather than mapping
to NTSTATUS first.
2009-01-26 17:31:50 +01:00
Jelmer Vernooij
79255cec6a Add function for mapping NDR error codes to strings. 2009-01-26 17:31:22 +01:00
Jelmer Vernooij
5baac15781 Merge branch 'master' of ssh://git.samba.org/data/git/samba 2009-01-25 05:35:21 +01:00
Jelmer Vernooij
c9d193eb08 Add prototypes required by samba-gtk. 2009-01-25 05:32:30 +01:00
Volker Lendecke
8b80407712 Fix a segfault in parse_logentry
entry->data_record.strings is type smb_ucs2, so the pointer arithmetic
increments by two :-)
2009-01-24 15:08:21 +01:00
todd stecher
c23f0f13b4 Modify OneFS module to support new NTIMES interfaces 2009-01-23 21:05:38 -08:00
todd stecher
48b0016cff Extend NTIMES to allow setting create_time
1) Add in smb_file_time struct to clarify code and make room for createtime.
2) Get and set create time from SMB messages.
3) Fixup existing VFS modules + examples Some OS'es allow for the
setting of the birthtime through kernel interfaces. This value is
generically used for Windows createtime, but is not settable in the
code today.
2009-01-23 21:05:38 -08:00
todd stecher
7bb3860f49 This change allows for the autoconfigre detection of sub-second time resolution in the FreeBSD stat structure 2009-01-23 21:05:38 -08:00
Günther Deschner
ab2ee0711e s4-smbtorture: add my copyright.
Guenther
2009-01-24 03:33:55 +01:00
Günther Deschner
da338efbf9 s4-smbtorture: add BackupLog handling in eventlog test.
Guenther
2009-01-24 03:33:55 +01:00
Günther Deschner
2eb5dacbb8 s3-rpcclient: add eventlog_loginfo command.
Guenther
2009-01-24 03:33:47 +01:00
Günther Deschner
ecad0b9335 s3-rpcclient: add eventlog_backuplog command.
Guenther
2009-01-24 03:33:44 +01:00
Günther Deschner
c92ec31d30 s3-rpcclient: add eventlog_registerevsource command.
Guenther
2009-01-24 03:33:43 +01:00
Günther Deschner
bfc2d3bf0a s3-rpcclient: add eventlog_reporteventsource command.
Guenther
2009-01-24 03:33:25 +01:00
Günther Deschner
d3b8fdd71e s4-smbtorture: add test_GetLogIntormation test.
Guenther
2009-01-24 03:33:23 +01:00
Günther Deschner
f1067c0ffc s3-rpcclient: add eventlog_reportevent command.
Guenther
2009-01-24 03:33:23 +01:00
Günther Deschner
a6131f2a8b s4-smbtorture: add ReportEventW test.
Guenther
2009-01-24 03:33:23 +01:00
Günther Deschner
9629897094 s3-eventlog: add missing _eventlog_ReportEventAndSourceW stub call.
Guenther
2009-01-24 03:33:22 +01:00
Günther Deschner
4cac1da142 s3: re-run make samba3-idl.
Guenther
2009-01-24 03:33:22 +01:00
Günther Deschner
b57c37d6ae eventlog: fill in IDL for eventlog_OpenBackupEventLogW.
Guenther
2009-01-24 03:33:10 +01:00
Günther Deschner
466872e9ff eventlog: fill in IDL for eventlog_BackupEventLogW.
Guenther
2009-01-24 03:32:59 +01:00
Günther Deschner
ca799da823 eventlog: fill in IDL for eventlog_DeregisterEventSource.
Guenther
2009-01-24 03:32:56 +01:00
Günther Deschner
7dad861627 eventlog: fill in IDL for eventlog_RegisterEventSourceW.
Guenther
2009-01-24 03:32:49 +01:00
Günther Deschner
ab6e4dd9fd eventlog: add missing IDL (opnum 24) for eventlog_ReportEventAndSourceW.
Guenther
2009-01-24 03:32:46 +01:00
Günther Deschner
02a3a7f1ed eventlog: fill in IDL for eventlog_GetLogIntormation.
Guenther
2009-01-24 03:32:46 +01:00
Günther Deschner
321983a68e eventlog: fill in IDL for eventlog_ReportEventW.
Guenther
2009-01-24 03:32:34 +01:00
Günther Deschner
5bcd6d760b Revert "s3-eventlog: trying to avoid to pass around full ndr structures in rpc_server."
This reverts commit c0f1309010.
2009-01-24 03:00:38 +01:00
Günther Deschner
dd2695fe52 s3-eventlog: fix various invalid memcpy in read_package_entry().
Guenther
2009-01-24 03:00:38 +01:00
Günther Deschner
cf41042a3c s3-eventlog: fix buffer allocation in eventlog read call.
This broke with f6fa3080fe back in April 2007...

Guenther
2009-01-24 03:00:37 +01:00
Tim Prouty
d629ba480b talloc: Change the two other definitions of TALLOC_FREE to match the primary version
Eventually these two other definitions should be removed and all of
the TALLOC macros should live in the same header.  Until then, this
patch eliminates some build warnings.
2009-01-23 17:29:21 -08:00
Tim Prouty
0998d172db s3 ldb: Fix vasprintf segfault that has been the source of build machine failures this week
The bug was introduced when converting samba3's ldb_search interface
to match samba4:
47951fc5d0
f3ecb70133
2009-01-23 16:18:21 -08:00
Volker Lendecke
48a6feef40 talloc_free() copes with a NULL pointer just fine
Saved around 10kb of code on my box :-)
2009-01-24 01:05:22 +01:00
Dan Sledz
b7eabeb347 s3: OneFS unmappable sids support.
Updates the onefs vfs module to add configurable behavior to deal
with sids that are unknown to us.  The best examples are aces that
come from robocopy/xcopy.

Adds the following share level options (which are specific to the vfs_onefs
module):

onefs: ignore unmappable sids (Default = false)
If this option is set to true, sids which could not be resolved to
a uid/gid are ignored.  If an unmappable sid is encountered as the owner
or group, the owner/group is converted to BUILTIN\Administrators.

onefs: unmappable sids ignore list (Default = empty)
Only the sids in the list are ignored.

onefs: ignore sacls (Default = false)
SACLs are ignored

onefs: unmappable sids deny everyone (Default = false)
If an unmappable sid is found in a deny ACE, the ACE's identity is
changed to Everyone.
2009-01-23 13:49:12 -08:00
Kai Blin
481183ab02 s4: add ../lib/async_req to the s4 build 2009-01-23 17:57:33 +01:00
Kai Blin
85b36d95fb async_req: Move to top level dir 2009-01-23 17:57:33 +01:00
Karolin Seeger
aa2fb0efb7 docs: Fix formatting issue in man libsmbclient.
Karolin
2009-01-23 13:04:11 +01:00
Stefan Metzmacher
232560627f s4: we're on the way to alhpa7
metze
2009-01-23 11:27:19 +01:00
Jeremy Allison
b30b1cfcaf Apply same logic fix for #4308 Excel save operation corrupts file ACLs
to NFSv4 ACL code as this uses the same flawed logic as posix_acls.c.
Jeremy.
2009-01-22 16:21:02 -08:00
Jeremy Allison
634cc6b64a Fix logic error in try_chown - we shouldn't arbitrarily chown
to ourselves unless that was passed in.
Jeremy.
2009-01-22 15:57:41 -08:00
Jeremy Allison
81533e2d39 Second part of the attemt to fix #4308 - Excel save operation corrupts file ACLs.
If the chown succeeds then the ACL set should also. Ensure this is the case
(refactor some of this code to make it simpler to read also).
Jeremy.
2009-01-22 14:38:57 -08:00
Volker Lendecke
b7094c0b80 Abstract away the transport in cli_pipe.c
Sorry for the monster checkin, I could not really find a way to do this in
steps.
2009-01-22 22:59:54 +01:00
Volker Lendecke
b7bd71b349 Add the socket rpc client transport 2009-01-22 22:59:54 +01:00
Volker Lendecke
c5b4371054 Add the named pipe rpc client transport 2009-01-22 22:59:53 +01:00
Volker Lendecke
9b140c7c81 RPC_CLIENT_OBJ is the right variable for cli_pipe.o 2009-01-22 22:59:53 +01:00
Volker Lendecke
42fa1441bf Add struct rpc_cli_transport 2009-01-22 22:59:53 +01:00
Jelmer Vernooij
1fcd85e8b9 Merge branch 'master' of ssh://git.samba.org/data/git/samba 2009-01-22 22:49:30 +01:00
Tim Prouty
8e2b48e1b7 s3: Fix warning 2009-01-22 13:14:04 -08:00
Jeremy Allison
2d81c9e957 Another attempt to fix bug #4308 - Excel save operation corrupts file ACLs.
Simo is completely correct. We should be doing the chown *first*, and fail the
ACL set if this fails. The long standing assumption I made when writing the
initial POSIX ACL code was that Windows didn't control who could chown a file
in the same was as POSIX. In POSIX only root can do this whereas I wasn't sure
who could do this in Windows at the time (I didn't understand the privilege
model). So the assumption was that setting the ACL was more important (early
tests showed many failed ACL set's due to inability to chown). But now we have
privileges in smbd, and we must always fail an ACL set when we can't chown
first. The key that Simo noticed is that the CREATOR_OWNER bits in the ACL
incoming are relative to the *new* owner, not the old one. This is why the old
user owner disappears on ACL set - their access was set via the USER_OBJ in the
creator POSIX ACL and when the ownership changes they lose their access.

Patch is simple - just ensure we do the chown first before evaluating the
incoming ACL re-read the owners. We already have code to do this it just wasn't
rigorously being applied.
Jeremy.
2009-01-22 10:57:10 -08:00
Simo Sorce
3942e53357 Do not start a transaction this way.
Because we still want to commit any changes that successfully apply we
never want to do a global cancel, and because of how transaction nesting
works that means we never cancel any "transaction" at the single modify
operation level.

Let each operation start its own transaction so that the transaction is
properly canceled if any error is returned and half committed operations
(though plugins failing) are properly reverted on a per operation basis.
2009-01-22 11:54:51 -05:00
Volker Lendecke
031f246941 Fix a segfault: rpccli_* expect the reply_pdu to always be initialized 2009-01-22 17:54:16 +01:00