1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-17 02:05:21 +03:00

4376 Commits

Author SHA1 Message Date
Jeremy Allison
7c53ffea28 Allow a new file to inherit the Windows ACL from its parent.
Now to do the same for directories.
Jeremy.
2008-10-29 13:27:14 -07:00
Volker Lendecke
7bea6684c2 Add proxied named pipe support
This is a central piece of the "merged build" thing: Forward named pipes from
samba3 to samba4. This patch is not finished yet, as we will have to forward
the smb-level authentication information to samba4, but I'm pushing this patch
already to demonstrate the implementation without clutter.

It adds an intermediate parameter

np:proxy = srvsvc samr winreg wkssvc ... and so on

that states which of the pipes should be forwarded to the s4 unix domain socket
DEFAULT. The parameter is intermediate because once we have a proper endpoint
mapper implementation, this information will be retrieved out of a database.

If anybody wants to try this, do the merged build and configure s4 with

server services = samba3_smb, rpc, nbt, wrepl, ldap, cldap, kdc, drepl
samba3:smbd = /data/inst/sbin/smbd

and s3 with

auth methods = guest netlogond
np:proxy = srvsvc samr winreg wkssvc netlogon ntlsa ntsvcs lsass lsarpc netdfs \
rpcecho initshutdown epmapper svcctl eventlog drsuapi

Then run rpcclient against samba4. It will fork s3, which authenticates against
s4, and then forwards the rpc requests to s4.

Volker
2008-10-25 15:42:51 +02:00
Volker Lendecke
1ad54998a9 Add str_list_check[_ci] to s3's proto.h
Jelmer, when I include lib/util/util.h into some s3 file I get errors, this is
why I put those prototypes here as a workaround. Might be fixed differently
later.
2008-10-25 13:50:25 +02:00
Volker Lendecke
ff211be696 Remove "pipe_handle_offset" -- pipes now use "struct files_struct" 2008-10-25 12:09:58 +02:00
Jelmer Vernooij
ea474647f8 Revert Samba3 back to using its own charset handling code. 2008-10-24 16:05:15 +02:00
Jelmer Vernooij
56a0b035c6 Remove more uses of global_loadparm. 2008-10-24 14:31:16 +02:00
Günther Deschner
78a85f9e96 svcctl: move some non-rpc related bits out of rpc_svcctl.h.
Guenther
2008-10-24 00:06:07 +02:00
Jelmer Vernooij
ce0ac322b4 Fix prototype for set_sockaddr_port. 2008-10-23 23:20:50 +02:00
Tim Prouty
0b68762af7 Fix "parameter has incomplete type" build warning.
When libcli-util was moved to the top level
(3be0f6ea56ed8e43cd287ed020e942efb675b87b) it introduced a build
warning.  Since ndr_map_error2ntstatus depends on the definition of
enum ndr_err_code and libndr.h can't be easily included in error.h, I
moved the definition of enum ndr_err_code to libndr.h.

This also eliminates the need for the duplicate definition in proto.h
2008-10-23 12:21:44 -07:00
Jelmer Vernooij
fe36fe8c3e Use common net utility code (address and sockaddr manipulation). 2008-10-23 20:41:15 +02:00
Jelmer Vernooij
d6a5476ee7 Use sockaddr_storage only where we rely on the size, use sockaddr
otherwise (to clarify we can also pass in structs smaller than
sockaddr_storage, such as sockaddr_in).
2008-10-23 19:53:15 +02:00
Jelmer Vernooij
c17898db4e Merge branch 'master' of ssh://git.samba.org/data/git/samba 2008-10-23 18:50:34 +02:00
Jelmer Vernooij
81fabeff2d Use libutil genrand. 2008-10-23 18:46:35 +02:00
Günther Deschner
f36ffa7681 s3-build: remove duplicate svcctl bits and re-run make samba3-idl.
Guenther
2008-10-23 18:34:57 +02:00
Jelmer Vernooij
cf659fa4fe Import talloc_stack into util library. 2008-10-23 17:27:30 +02:00
Jelmer Vernooij
44b728958a Use common error definitions. 2008-10-23 15:35:21 +02:00
Günther Deschner
527d797476 s3-asn1/spnego: use OIDs including dots.
Guenther
2008-10-22 21:37:36 +02:00
Günther Deschner
d9f1fff5b3 s3: use shared asn1 code.
Guenther
2008-10-22 21:37:36 +02:00
Günther Deschner
cef97c2459 s3-spnego: move spnego defines to spnego.h
Guenther
2008-10-22 21:37:36 +02:00
Jelmer Vernooij
ca2d23e048 Remove unused header file. 2008-10-22 17:00:49 +02:00
Jeremy Allison
4e9db0b100 Cope with MAXIMUM_ALLOWED_ACCESS requests when opening handles.
Jeremy.
2008-10-21 18:05:48 -07:00
Jelmer Vernooij
d36edccc00 Merge branch 'master' of git://git.samba.org/samba
Conflicts:
	source3/include/proto.h
2008-10-20 21:35:10 +02:00
Jelmer Vernooij
2c1b1255c2 Add source4/ to include path because librpc/gen_ndr is still in source?/ 2008-10-20 21:33:41 +02:00
Jelmer Vernooij
7498f9a9d8 Add missing prototypes for samba3-specific libndr/util.c 2008-10-20 19:51:07 +02:00
Günther Deschner
4b59ecb903 s3-build: no need to duplicate generated ndr_ prototypes.
Guenther
2008-10-20 19:47:00 +02:00
Günther Deschner
c3f3271b82 s3-build: no need to duplicate generated srv_ prototypes.
Guenther
2008-10-20 19:46:44 +02:00
Jelmer Vernooij
d59b2472f4 Include generated header files rather than using manually written
prototypes.
2008-10-20 19:35:55 +02:00
Jelmer Vernooij
4a8c05a91b Remove unused macro CONST_ADD. 2008-10-20 16:52:00 +02:00
Jelmer Vernooij
05a0ccadb0 Remove unused define for crypt (now in libreplace). 2008-10-20 16:46:19 +02:00
Jelmer Vernooij
a8707a43d0 Regenerate pidl output. 2008-10-20 12:19:01 +02:00
Jelmer Vernooij
e09c0c1185 Merge branch 'master' of ssh://git.samba.org/data/git/samba into crypt 2008-10-19 14:27:08 +02:00
Volker Lendecke
ded09b28de Inline the once-used macro "init_dfsroot" 2008-10-19 11:36:32 +02:00
Jelmer Vernooij
2fc058bdb0 Make generate_random_buffer signature match that of lib/util. 2008-10-19 10:16:21 +02:00
Jelmer Vernooij
7275952568 Add TALLOC_CTX pointer to generate_random_str(), for consistency with
Samba 4.
2008-10-19 10:05:48 +02:00
Jelmer Vernooij
b1a1fbcbfb Remove defines for QSORT_CAST, already provided by libreplace. 2008-10-19 09:53:18 +02:00
Jelmer Vernooij
0742635355 Simplify SIG_ATOMIC_T define, since sig_atomic_t is always provided by
libreplace.
2008-10-19 09:51:26 +02:00
Jelmer Vernooij
5380d43d3b Remove duplicate macro definitions (already defined in libutil/attr.h) 2008-10-19 09:47:45 +02:00
Jelmer Vernooij
2c5221ef7a Use attr.h rather than having local defines for GCC attributes. 2008-10-18 18:50:37 +02:00
Jelmer Vernooij
33032d591f Move ufc to libreplace. 2008-10-18 17:49:41 +02:00
Jelmer Vernooij
f3f9446ec1 Rename hex_encode to hex_encode_talloc,for consistency with samba 4 and heimdal. 2008-10-18 16:16:57 +02:00
Jelmer Vernooij
89c9545430 Use str_list_equal() rather than str_list_compare(). 2008-10-18 15:56:07 +02:00
Jelmer Vernooij
b3b6d8f3f9 Fix const, dupes. 2008-10-18 15:00:18 +02:00
Jelmer Vernooij
2d89b52be8 Use separate make variables for libutil and libcrypto. 2008-10-18 14:28:40 +02:00
Jelmer Vernooij
519458a2fa Use shared util.c. 2008-10-18 14:27:13 +02:00
Jelmer Vernooij
4083247a48 Remove empty file. 2008-10-18 14:15:29 +02:00
Jelmer Vernooij
dea4db9611 Remove obsolete comment about bool. 2008-10-18 14:15:25 +02:00
Jelmer Vernooij
fb1a93e666 Remove defines already provided by the system or libreplace. 2008-10-18 14:15:20 +02:00
Jelmer Vernooij
3189d14152 Use the new memory macro file from Samba 3. 2008-10-18 14:07:51 +02:00
Jeremy Allison
7c94c874c4 Unify access checks for lsa server functions.
Jeremy.
2008-10-17 15:24:15 -07:00
Günther Deschner
e31b9e0f66 s3: remove old marshalling for SVCCTL_QUERY_SERVICE_CONFIG.
Guenther
2008-10-16 09:54:50 +02:00