1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +03:00
Commit Graph

49414 Commits

Author SHA1 Message Date
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
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
Günther Deschner
2865be8a1c pidl: fix generated s3-server in,out,ref qualifiers that are used for buffer allocation.
Guenther
2008-11-19 21:50:02 +01:00
Jeremy Allison
d532197042 Add functions to delete NTACL on posix ACL set.
Jeremy.
2008-11-19 12:24:53 -08:00
Jeremy Allison
cd82c07943 Fix bug #5904 - libnss_wins causes SIGABRT while servicing getaddrinfo() request.
Jeremy.
2008-11-19 11:22:50 -08:00
Jelmer Vernooij
42523498b9 Fix path for torture.h. 2008-11-19 16:27:06 +01:00
Karolin Seeger
6216e5cbd7 manpages: Document new wbinfo idmapping options.
--set-uid/gid-mapping
--remove-uid/gid-mapping

Karolin
(cherry picked from commit c9965d544f)
2008-11-19 13:19:46 +01:00
Karolin Seeger
12e72140b9 build-docs: Use 'git clean' instead of 'git-clean'.
Karolin
2008-11-19 13:16:38 +01:00
Tim Prouty
1115b7b342 s3/s4 build: Fix execinfo and sasl build error when the libs/headers are in non-standard locations.
These configure checks have the correct flags at configure time, so
let's pass them through so they are used at compile time.
2008-11-18 17:43:51 -08:00
Tim Prouty
314e5cfa7f s3/s4 build: Fix makefile expression to work on more systems 2008-11-18 17:43:38 -08:00
Steven Danneman
ce44a20323 Clean-up various trailing space and >80 column lines. 2008-11-18 17:06:22 -08:00
Steven Danneman
00c6271d5c Added ability to remove id mappings in wbinfo and libwbclient.
The idmap_tdb backend already provides an interface to remove existing id
mappings.  This commit plumbs that ability up through, winbindd, libwbclient,
and wbinfo.

Added new winbindd command:
        WINBINDD_REMOVE_MAPPING
Added new libwbclient interfaces:
        wbcRemoveUidMapping() and wbcRemoveGidMapping()
Added new wbinfo options:
        --remove-uid-mapping
        --remove-gid-mapping

Increased libwbclient version to 0.2
Increased winbind interface version to 20
2008-11-18 16:04:04 -08:00
Steven Danneman
041c5cf3b5 Added ability to set id mappings in wbinfo.
The two new parameters are:

--set-uid-mapping
--set-gid-mapping

These allow wbinfo to create new, or override existing id mappings in the
idmap backend.  These expose the exisiting ability of libwbclient
and winbindd to do this, up through a command line utility.
2008-11-18 16:04:03 -08:00
Jelmer Vernooij
15c629181a Move wireshark conformance file to top-level. 2008-11-19 00:10:15 +01:00
Steven Danneman
6d59be1e6d Fix extended DN parse error when AD object does not have a SID.
Some AD objects, like Exchange Public Folders, can be members of Security
Groups but do not have a SID attribute.  This patch adds more granular return
errors to ads_get_sid_from_extended_dn().  Callers can now determine if a parse
error occured because of bad input, or the DN was valid but contained no SID.

I updated all callers to ignore SIDless objects when appropriate.

Also did some cleanup to the out paths of lookup_usergroups_memberof()
2008-11-18 13:02:21 -08:00
Steven Danneman
9a7900fb38 Whitespace and >80 column cleanups. 2008-11-18 13:02:20 -08:00
Dina Fine
0e62bb39de Fix bug #5908 - Samba 3.0.32 - internal change notify on share directory fails" 2008-11-18 12:45:42 -08:00
Kai Blin
69debd45e5 libsmb: Fix up pointer passed to cli_send_trans in cli_link_internal 2008-11-18 11:25:14 -08:00
Jeremy Allison
93fd28a350 Re-structure Volker's patch to "Fix trans2findfirst for the large directory optimization". Makes the change clearer.
Jeremy.
2008-11-18 10:57:54 -08:00
Volker Lendecke
6ce29dc9ad Fix trans2findfirst for the large directory optimization
With

case sensitive = yes
preserve case = no
short preserve case = no
default case = upper

a "dir FOO.txt" would not find "FOO.TXT" because FOO.txt ends up unconverted in
the mask for mask_match.

Jeremy, please check!

Volker
2008-11-18 17:04:47 +01:00
Günther Deschner
6ef719bf92 s3-libnet-samsync: store samsync sequence number state in keytab.
Guenther
2008-11-18 16:05:37 +01:00