1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
Commit Graph

49533 Commits

Author SHA1 Message Date
Volker Lendecke
783ab0480b Convert move_driver_to_download_area to use create_conn_struct
This removes a use of struct current_user and the vuid

The become_user() here is unnecessary, within the spoolss handling code we have
switched to the authenticated pipe user anyway.

Jerry, please check!
2008-11-24 11:39:03 +01:00
Steven Danneman
798b9e1ad6 Fix to allow setting of NULL DACL/SACL
This is a modification of Jeremy's 7522ef15ac
commit.

If no DACL/SACL is present in the packet, the SEC_INFO field should still be
passed down as is to the VFS layer to signal the creation of a NULL DACL/SACL.

As seen in metze RAW-ACL test_nttrans_create_null_dacl(), a NULL DACL is set
regardless of the SEC_DESC_DACL_PRESENT bit being set.
2008-11-23 18:30:56 -08:00
Kai Blin
a36415a565 s3-rpcclient; Really fix compile warning.
Screwed up in 526c609d, now the real fix.
2008-11-23 23:54:27 +01:00
Michael Adam
b416135f6b libcli/nbt: fix some extrasemi compile warnings.
Michael
2008-11-23 23:01:04 +01:00
Volker Lendecke
ed27d91068 Add auth_serversupplied_info to create_conn_struct
srvsvc needs it, as will printing
2008-11-23 22:41:59 +01:00
Kai Blin
526c609d5f s3-rpcclient: Fix a compile warning. 2008-11-23 22:21:31 +01:00
Kai Blin
671d68d573 ctags: Ignore source3/includes/proto.h for tags. 2008-11-23 22:21:31 +01:00
Volker Lendecke
9c3173142d Fix an uninitialized variable warning
Andreas Schneider, please check!
2008-11-23 19:38:21 +01:00
Volker Lendecke
34fc529d95 fix the build 2008-11-23 12:13:48 +01:00
Stefan Metzmacher
3080fd6624 RPC sessions on np connections need the real session key transferred 2008-11-23 11:48:20 +01:00
Michael Adam
09bc3a2f9c s3 build: when detecting to use internal zlib, put "-I../lib/zlib" first in CFLAGS
This should fix a build error on our Tru64 build farm box where a zlib.h is
found in an include path handed in via external CFLAGS, but that zlib.h belongs
to an old zlib. So in ndr_compression.c, "#include <zlib.h>" includes the wrong
header for the internal zlib.

Michael
2008-11-23 02:02:26 +01:00
Michael Adam
71c782c72a s3-build: do not auto-genereate ndr tables but use checked-in tables.
This removes the build-dependency on perl that was introduced in
commit e0905c3090.

The tables can now be re-built with "make ndr-tables".
This is also called by make samba3-idl to ensure that the tables
are updated after idl changes.

This hopefully fixes the build on some build farm hosts (e.g. gwen).

Michael
2008-11-23 01:16:20 +01:00
Michael Adam
84e37eb5f5 s3 build: don't specify ZLIB_LIBS (i.e. "-lz") in object collections.
This causes make to fail on at least HP-UX and MacOS X with message
"no rule to make target -lz" or similar, when these object collections
are specified in dependencies.

Michael
2008-11-22 23:28:45 +01:00
Volker Lendecke
a6aa72001e Add "net machinepw"
Provide a C-based alternative to the python script "mymachinepw"
2008-11-22 19:30:10 +01:00
Jeremy Allison
d205766e60 Fix a C90 error.
Jeremy.
2008-11-21 22:51:20 -08:00
Jeremy Allison
338303eb37 Rever 83ff6979f5 - "Fix the logic bug that caused us to
run into kernel oplocks on an open for a stream inside a file with stream_xattr module. On
opening the base_fsp we must break existing oplocks." as it broke make test.
Jeremy.
2008-11-21 22:48:37 -08:00
Jeremy Allison
83ff6979f5 Fix the logic bug that caused us to run into kernel oplocks on an open for a stream inside a file with stream_xattr module. On opening the base_fsp we must break existing oplocks.
Jeremy.
2008-11-21 18:20:38 -08:00
Jeremy Allison
dcc4661d4a Merge branch 'master' of ssh://jra@git.samba.org/data/git/samba 2008-11-21 18:20:33 -08:00
Michael Adam
3d30d5945c [s3]nfs4_acls: make prototype header match definition for smb_set_nt_acl_nfs4()
Add the const from nfs4_acls.c to nfs4_acls.h
This fixes my build of the zfsacl module on solaris.

Michael
2008-11-22 01:53:37 +01:00
Dan Sledz
c23a6dc3ec FreeBSD configure check for backtrace_symbols
On FreeBSD backtrace_symbols is defined in libexecinfo.so.1.  Look for it
there as well.
2008-11-21 16:37:43 -08:00
Jeremy Allison
ecd8c5d307 Use fxattr calls whenever possible (trying to work around the strange Linux kernel oplock bug).
Jeremy.
2008-11-21 16:02:31 -08:00
Jeremy Allison
8d674e351a Second part of the fix for bug #5903 - vfs_streams_xattr breaks contents of the file
(also fix a bad merge of the previous patch from 3.3).
Jeremy.
2008-11-21 15:42:03 -08:00
Michael Adam
dd54e68014 s3-winbindd: make all winbind rpc-methods static.
Now that the methods are no longer needed in winbindd_ads,
we can make them static again.

Michael
2008-11-21 23:32:30 +01:00
Michael Adam
e179c41718 s3-winbindd_ads: use the reconnect methods instead of the rpc methods directly
Some of the ads methods just point to the rpc methods.
This makes winbindd_ads use the reconnect methods instead of
calling the rpc methods directly in order to prevent
negative cache entries for e.g. name_to_sid, when the dc
has closed the connection without sending a reset.

Michael
2008-11-21 23:32:29 +01:00
Michael Adam
fa60e4e97d s3-winbindd_ads: prevent negative GM/ cache entries due to broken connections
The ads lookup_groupmem() function calls lda_lookupsids to resolve sids
to names. This is tried only once. So in case the connection was broken,
e.g. closed by the server (without a reset packet), there will be an empty
GM/ cache entry for the requested group which will prevent proper working
of access checks among other checks for the expiry period.

This patch works around this problem by retrying once if the lsa_lookupsids
call fails, re-establishing the dc-connection, as we already do in many other
places (e.g. the winbindd retry methods for the rpc layer).

Michael
2008-11-21 23:32:29 +01:00
Jeremy Allison
97fb05c2c0 First part of fix for bug #5903 - vfs_streams_xattr breaks contents of the file.
Restructures parts of open code so that fsp must be allocated before calling
open_file_ntcreate(_internal). Also fix up file ref-counting inside files.c.
Jeremy.
2008-11-21 12:14:53 -08:00
Jelmer Vernooij
9164b14a9f Fix include path for installation. 2008-11-21 17:57:44 +01:00
Günther Deschner
98e1dd64ab s3-libnetjoin: fix build warning.
Guenther
2008-11-21 15:57:14 +01:00
Günther Deschner
35ac6236bd s3-libnetjoin: try to show a better error message upon invalid configuration.
Guenther
2008-11-21 14:49:53 +01:00
Tim Prouty
363fe11536 s3/s4 build: Fix "might be unitialized" warning 2008-11-20 18:04:42 -08:00
Günther Deschner
03e0d0fb37 s3-winbindd: for now only change machine pwd when not using a system krb5 keytab.
Guenther
2008-11-21 00:57:22 +01:00
Tim Prouty
2b85288e82 s3 build: Fix incomplete types warnings 2008-11-20 13:11:59 -08:00
Yasuma Takeda
293372ff8d Fix bug #5909 - MS-DFS does not work on Vista, if link name includes multibyte character. 2008-11-20 11:38:37 -08:00
Jeremy Allison
98bf3ee2f6 Second part of fix for bug #5891 - smbd crashed when viewing the eventlog exported by "eventlog list". Don't leak memory on error paths.
Jeremy.
2008-11-20 10:56:14 -08:00
Jeremy Allison
53903d9eb1 Fix the build, by some cut-and-paste error I got two versions of the same functions here.
Jeremy.
2008-11-20 10:45:18 -08:00
Günther Deschner
f0e75484a7 s3-eventlog: remove trailing whitespace.
Guenther
2008-11-20 17:16:03 +01:00
Günther Deschner
6ed83d3d45 s3-build: re-run make samba3-idl.
Guenther
2008-11-20 17:15:55 +01:00
Günther Deschner
2736650f0c eventlog: fill in some unknowns and use flags bitmap in IDL.
Guenther
2008-11-20 17:15:47 +01:00
Günther Deschner
70f55ddb70 s3-eventlog: avoid passing down full prs_struct in eventlog server.
Guenther
2008-11-20 17:15:38 +01:00
Günther Deschner
afd57a16d8 s3-eventlog: move non rpc eventlog headers to own include file.
Guenther
2008-11-20 17:15:29 +01:00
Michael Adam
172628dca2 eventlog: don't crash in sync_eventlog_params().
When freeing the talloc ctx at the end of the routine,
it must be a talloc ctx created inside. talloc_tos() needs
to be valid after the function finishes, since callers
(may) have data attached to it.

Michael

Signed-off-by: Günther Deschner <gd@samba.org>
2008-11-20 17:08:37 +01:00
Jeremy Allison
da683d6a73 This code mixes up int and uint32 when pulling out of a TDB. This is very bad. Fixing... May fix bug #5891, not sure.
Jeremy.
2008-11-19 16:49:03 -08:00
Jeremy Allison
bc070b1c14 Merge branch 'master' of ssh://jra@git.samba.org/data/git/samba 2008-11-19 16:36:59 -08:00
Günther Deschner
54e832c171 s4-smbtorture: fix segfault in RPC-EVENTLOG test.
Guenther
2008-11-20 00:47:18 +01:00
Jeremy Allison
804e63909b Merge branch 'master' of ssh://jra@git.samba.org/data/git/samba 2008-11-19 15:06:05 -08:00
Jeremy Allison
31a8c4df13 Fix build farm breakage. 2008-11-19 14:51:55 -08:00
Günther Deschner
f9d691d9d8 s3-ntsvcs: remove old hand-marshalling for ntsvcs getdevregprop.
Guenther
2008-11-19 23:25:33 +01:00
Günther Deschner
12fdb5eb46 s3-ntsvcs: use pidl for _PNP_GetDeviceRegProp.
Guenther
2008-11-19 23:25:25 +01:00
Günther Deschner
9b40d26e30 s3-rpcclient: fix cmd_ntsvcs_get_dev_reg_prop.
Guenther
2008-11-19 23:25:16 +01:00
Günther Deschner
07b3a1e988 s3-build: re-run make samba3-idl after pidl change.
Guenther
2008-11-19 22:00:43 +01:00