Andrew Tridgell [Thu, 3 Mar 2011 06:41:45 +0000 (17:41 +1100)]
waf: build headers in separate 'headers' build group
Andrew Tridgell [Thu, 3 Mar 2011 06:22:38 +0000 (17:22 +1100)]
build: force _SAMBA_BUILD_==4 to be true in public headers
for s4 public headers, this is always true
Andrew Tridgell [Thu, 3 Mar 2011 06:21:45 +0000 (17:21 +1100)]
ldb: only install headers if we are not building as a private lib
Andrew Tridgell [Thu, 3 Mar 2011 06:19:33 +0000 (17:19 +1100)]
lib: don't install public headers if a private library
for talloc/tevent/tdb, only install headers if we are doing a
standalone build
Andrew Tridgell [Thu, 3 Mar 2011 06:18:58 +0000 (17:18 +1100)]
waf: always generate public headers in the build tree
this allows us to properly test our public headers before install
Andrew Tridgell [Thu, 3 Mar 2011 05:34:57 +0000 (16:34 +1100)]
build: mark some private includes as OK in public headers
these are includes which are protected by #ifdefs which means they
don't get exposed to public users
Andrew Tridgell [Thu, 3 Mar 2011 05:34:13 +0000 (16:34 +1100)]
rpc: make ndr/ndr_svcctl.h public
this is used by public header gen_ndr/ndr_svcctl.h
Andrew Tridgell [Thu, 3 Mar 2011 05:33:12 +0000 (16:33 +1100)]
s4-rpc: make common/proto.h public
this is needed by public header common.h
Andrew Tridgell [Thu, 3 Mar 2011 05:32:39 +0000 (16:32 +1100)]
s4-policy: don't make s4 policy.h public
if we are going to make GPO headers public, it should be from libgpo/
Andrew Tridgell [Thu, 3 Mar 2011 05:31:00 +0000 (16:31 +1100)]
ldb: use include <> form for public headers
Andrew Tridgell [Thu, 3 Mar 2011 05:30:33 +0000 (16:30 +1100)]
waf: build substituted public headers in build tree
the bin/default/include/public directory will contain headers that are
ready to install
Andrew Tridgell [Thu, 3 Mar 2011 05:29:15 +0000 (16:29 +1100)]
lib: fixed header paths
this is a public header, and needs to use sane paths for the public
header creation
Andrew Tridgell [Thu, 3 Mar 2011 05:28:14 +0000 (16:28 +1100)]
talloc: use <talloc.h> not "talloc.h"
this ensures we use the right header
Andrew Tridgell [Thu, 3 Mar 2011 05:27:44 +0000 (16:27 +1100)]
tdb: use public_headers to install header files
Andrew Tridgell [Thu, 3 Mar 2011 05:27:26 +0000 (16:27 +1100)]
tdb: use system include style for system headers
Andrew Tridgell [Thu, 3 Mar 2011 02:23:13 +0000 (13:23 +1100)]
waf: moved header file handling into its own module
It is getting quite complex now, and shouldn't just be mixed in with
everything else
Andrew Tridgell [Mon, 28 Feb 2011 07:57:25 +0000 (18:57 +1100)]
build: added automated testing of our public headers
we generate test_headers.h, which includes all of our public headers,
and check it compiles
Andrew Tridgell [Mon, 28 Feb 2011 07:56:33 +0000 (18:56 +1100)]
build: added include/public to the list of include paths
this allows us to use the public name of any header in the source tree
Andrew Tridgell [Mon, 28 Feb 2011 07:56:05 +0000 (18:56 +1100)]
tevent: use public_headers for tevent.h
Andrew Tridgell [Mon, 28 Feb 2011 07:55:52 +0000 (18:55 +1100)]
talloc: use public_headers to install talloc.h and pytalloc.h
this allows them to be included in the test_headers.h generated header
Andrew Tridgell [Mon, 28 Feb 2011 07:55:12 +0000 (18:55 +1100)]
wafsamba: keep a list of public headers
this will be used to construct test_headers.h, for testing our public
headers
Andrew Tridgell [Mon, 28 Feb 2011 07:53:36 +0000 (18:53 +1100)]
wafsamba: don't follow symlinks outside the build tree
when computing stale files, don't follow symlinks that are not within
the build tree
Andrew Tridgell [Mon, 28 Feb 2011 07:52:36 +0000 (18:52 +1100)]
wafsamba: added global_include option
this allows you to disable the global include additions. We will use
this for testing our public headers without including any of the
source tree directories
Andrew Tridgell [Mon, 28 Feb 2011 04:48:25 +0000 (15:48 +1100)]
build: install public headers in the build tree
this symlinks our public headers into the build tree, which will allow
us to refer to the public headers by their public name inside the
source tree.
Andrew Tridgell [Mon, 28 Feb 2011 04:46:41 +0000 (15:46 +1100)]
ldb: don't install ldb_wrap.h twice
Andrew Tridgell [Mon, 28 Feb 2011 02:28:54 +0000 (13:28 +1100)]
build: added placeholder files for public header directories
this will allow us to 'install' public headers into include/public in
the build. That means we can use the same include paths for our public
headers inside Samba as external applications. This should make it
less likely that we will break our public includes
Andrew Tridgell [Fri, 25 Feb 2011 02:13:01 +0000 (13:13 +1100)]
s4-rpc: added public APIs for dce_call authentication
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Jeremy Allison [Mon, 14 Mar 2011 23:05:55 +0000 (16:05 -0700)]
Re-enable base.tcondev test for S3, now we pass it correctly.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Mar 15 00:59:37 CET 2011 on sn-devel-104
Jeremy Allison [Mon, 14 Mar 2011 23:12:31 +0000 (16:12 -0700)]
Fix bug #8005 - smbtorture4 BASE-TCONDEV fails when tested on Samba
When pulling non-aligned ucs2 strings, we neglected to add in the
pad byte to the buffer length we've eaten. This caused the device
string in TCONX (which seems to be one of the few places that uses
non-aligned ucs2 strings) to be incorrectly read.
Volker please check.
Jeremy.
Jelmer Vernooij [Mon, 14 Mar 2011 22:06:40 +0000 (23:06 +0100)]
Merge new lorikeet heimdal, revision
85ed7247f515770c73b1f1ced1739f6ce19d75d2
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Mar 14 23:53:46 CET 2011 on sn-devel-104
Volker Lendecke [Mon, 14 Mar 2011 20:16:23 +0000 (21:16 +0100)]
s3: Change tldap_entry_attributes to the "array,count" convention
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Mar 14 22:02:35 CET 2011 on sn-devel-104
Volker Lendecke [Mon, 14 Mar 2011 17:35:23 +0000 (10:35 -0700)]
s3: Fix bug 8009 - net rap session cannot get username
Looking in [MS-RAP].pdf - these strings are always 4 bytes as an
offset in the rparam area, the string length is the size in the rdata area.
Se we must always return we have consumed 4 param bytes.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Mar 14 20:09:09 CET 2011 on sn-devel-104
Volker Lendecke [Mon, 14 Mar 2011 17:35:36 +0000 (18:35 +0100)]
s3: Fix the talloc hierarchy in shadow_copy2_connectpath
We have to return on talloc_tos() because we don't have a mem_ctx given to us.
So we have to create a separate temporary talloc context.
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Mar 14 19:21:11 CET 2011 on sn-devel-104
Volker Lendecke [Mon, 14 Mar 2011 15:17:49 +0000 (16:17 +0100)]
s3: This module needs rewriting...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Mar 14 17:47:32 CET 2011 on sn-devel-104
Simo Sorce [Mon, 14 Mar 2011 15:01:47 +0000 (11:01 -0400)]
Fix public header not to include private (not installed) ones.
Autobuild-User: Simo Sorce <idra@samba.org>
Autobuild-Date: Mon Mar 14 17:01:20 CET 2011 on sn-devel-104
Stefan Metzmacher [Sun, 13 Mar 2011 17:57:43 +0000 (18:57 +0100)]
librpc/rpc: move DCERPC_ flags to rpc_common.h
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sun Mar 13 20:45:53 CET 2011 on sn-devel-104
Stefan Metzmacher [Sun, 13 Mar 2011 18:22:27 +0000 (19:22 +0100)]
s3:librpc/rpc: add DCERPC_ANON_FALLBACK flag
With this they're in sync with source4.
metze
Stefan Metzmacher [Sun, 13 Mar 2011 15:24:55 +0000 (16:24 +0100)]
s4:librpc/rpc: finaly make struct rpc_request and enum rpc_request_state private
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sun Mar 13 17:46:02 CET 2011 on sn-devel-104
Stefan Metzmacher [Sun, 13 Mar 2011 15:21:44 +0000 (16:21 +0100)]
s4:librpc/rpc: remove unused dcerpc_request()
metze
Stefan Metzmacher [Sun, 13 Mar 2011 15:24:22 +0000 (16:24 +0100)]
s4:librpc/rpc: make dcerpc_request_recv() static
metze
Stefan Metzmacher [Sun, 13 Mar 2011 15:16:12 +0000 (16:16 +0100)]
s4:torture/rpc/scanner: use dcerpc_binding_handle_raw_call() instead of dcerpc_request()
metze
Stefan Metzmacher [Sun, 13 Mar 2011 15:15:35 +0000 (16:15 +0100)]
s4:torture/rpc/countcalls: use dcerpc_binding_handle_raw_call() instead of dcerpc_request()
metze
Stefan Metzmacher [Sun, 13 Mar 2011 15:15:06 +0000 (16:15 +0100)]
s4:torture/rpc/autoidl: use dcerpc_binding_handle_raw_call() instead of dcerpc_request()
metze
Stefan Metzmacher [Sun, 13 Mar 2011 13:44:53 +0000 (14:44 +0100)]
s4:pyrpc: use dcerpc_binding_handle_raw_call() instead of dcerpc_request()
metze
Stefan Metzmacher [Sun, 13 Mar 2011 13:44:28 +0000 (14:44 +0100)]
s4:pyrpc: fix memory leaks in error pathes
metze
Stefan Metzmacher [Sun, 13 Mar 2011 13:58:12 +0000 (14:58 +0100)]
librpc/rpc: add dcerpc_binding_handle_raw_call()
metze
Stefan Metzmacher [Sun, 13 Mar 2011 13:10:42 +0000 (14:10 +0100)]
librpc/rpc: move struct dcerpc_binding to rpc_common.h
metze
Stefan Metzmacher [Sun, 13 Mar 2011 13:19:12 +0000 (14:19 +0100)]
s3:librpc/rpc: add target_principal to struct dcerpc_binding
This brings the source3 copy in sync with the source4 copy
of struct dcerpc_binding.
metze
Stefan Metzmacher [Sun, 13 Mar 2011 13:05:19 +0000 (14:05 +0100)]
librpc/rpc: move enum dcerpc_transport_t to rpc_common.h
metze
Stefan Metzmacher [Sun, 13 Mar 2011 12:49:41 +0000 (13:49 +0100)]
s4:librpc/rpc: s/dcerpc_security/dcecli_security
We'll use 'dcerpc_security' for the generic dcerpc
client and server code.
metze
Volker Lendecke [Sun, 13 Mar 2011 09:41:27 +0000 (10:41 +0100)]
s3: Enhance error messages in idmap_tdb2_init_hwm
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Mar 13 12:59:37 CET 2011 on sn-devel-104
Stefan Metzmacher [Sat, 12 Mar 2011 09:18:56 +0000 (10:18 +0100)]
s4:librpc/rpc: remove unused dcerpc_ndr_request* code
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sun Mar 13 11:19:59 CET 2011 on sn-devel-104
Stefan Metzmacher [Sat, 12 Mar 2011 09:16:22 +0000 (10:16 +0100)]
s4:torture/rpc/object_uuid: use dcerpc_binding_handle_call() instead of dcerpc_ndr_request()
metze
Stefan Metzmacher [Fri, 11 Mar 2011 17:53:35 +0000 (18:53 +0100)]
s4:rpc_server/remote: use dcerpc_binding_handle_call_*() instead of dcerpc_ndr_request_*()
metze
Volker Lendecke [Sun, 13 Mar 2011 08:48:08 +0000 (09:48 +0100)]
Revert "s3: Fix bug 8009"
This reverts commit
1829891391d978e8dd322cdbd3320e30e5c78b72.
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Mar 13 10:33:25 CET 2011 on sn-devel-104
Volker Lendecke [Sat, 12 Mar 2011 09:49:27 +0000 (10:49 +0100)]
s3: Fix bug 8009
Jeremy, please check!
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat Mar 12 11:39:41 CET 2011 on sn-devel-104
Jelmer Vernooij [Sat, 12 Mar 2011 00:58:17 +0000 (01:58 +0100)]
samba_abi: Also sort ABI files properly so symbols end up in the right version.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Mar 12 02:45:20 CET 2011 on sn-devel-104
Jelmer Vernooij [Sat, 12 Mar 2011 00:09:31 +0000 (01:09 +0100)]
Sort by release component integer values rather than using standard string
sort.
This makes sure tevent 0.9.9 is considered to be older than 0.9.10 and 0.9.11
Volker Lendecke [Thu, 10 Mar 2011 16:11:37 +0000 (17:11 +0100)]
s3: Fix a typo
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Mar 11 13:15:00 CET 2011 on sn-devel-104
Stefan Metzmacher [Fri, 11 Mar 2011 09:31:25 +0000 (10:31 +0100)]
librpc/rpc: move dcerpc_binding_handle stuff to rpc_common.h
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Mar 11 12:28:08 CET 2011 on sn-devel-104
Stefan Metzmacher [Fri, 11 Mar 2011 08:56:10 +0000 (09:56 +0100)]
s3:librpc/rpc: remove unused dcerpc_pipe define hack
metze
Stefan Metzmacher [Fri, 11 Mar 2011 07:27:00 +0000 (08:27 +0100)]
s4:librpc/rpc: s/struct dcerpc_connection/struct dcecli_connection/g
The name 'struct dcerpc_connection' will be used in the new generic
dcerpc code. It will be used for client and server.
metze
Stefan Metzmacher [Fri, 11 Mar 2011 08:01:00 +0000 (09:01 +0100)]
pidl:Samba4/NDR/Client: fix arguments to warning()
We want the file:line: information displayed.
metze
Stefan Metzmacher [Fri, 11 Mar 2011 08:00:13 +0000 (09:00 +0100)]
pidl:Samba4/NDR/Parser: fix compiler warnings in 'pipe' related code
metze
Michael Adam [Wed, 2 Mar 2011 16:10:48 +0000 (17:10 +0100)]
s3:idmap_ldap: fix a few typos in a comment
and use the chance to reformat the comment properly...
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Fri Mar 11 01:29:09 CET 2011 on sn-devel-104
Günther Deschner [Thu, 10 Mar 2011 22:56:14 +0000 (23:56 +0100)]
s3-selftest: add another flaky s3-torture test to knownfail, this time OPLOCK4.
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Mar 11 00:42:27 CET 2011 on sn-devel-104
Günther Deschner [Fri, 4 Mar 2011 12:16:40 +0000 (13:16 +0100)]
s3-build: remove -I../lib/addns.
Guenther
Günther Deschner [Fri, 4 Mar 2011 13:22:35 +0000 (14:22 +0100)]
waf-selftest: allow to call "make test SUBUNIT_FORMATTER=cat".
Guenther
Günther Deschner [Thu, 10 Mar 2011 14:33:43 +0000 (15:33 +0100)]
s3-waf: fix typo.
Guenther
Günther Deschner [Thu, 10 Mar 2011 22:17:54 +0000 (23:17 +0100)]
s3-selftest: run a couple of dgram NBT tests against s3.
Guenther
Volker Lendecke [Thu, 10 Mar 2011 15:23:20 +0000 (16:23 +0100)]
s3: sid->domain_sid in winbindd_samr sam_rids_to_names
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Mar 10 19:33:47 CET 2011 on sn-devel-104
Volker Lendecke [Thu, 10 Mar 2011 15:19:17 +0000 (16:19 +0100)]
Quite some callers of sid_split_rid do not care about the rid
Volker Lendecke [Thu, 10 Mar 2011 15:07:36 +0000 (16:07 +0100)]
s3: Fix paranoia check in sam_rids_to_names
Stefan Metzmacher [Sat, 18 Sep 2010 17:45:27 +0000 (19:45 +0200)]
frstrans.idl: add idl for RawGetFileDataAsync() and RdcGetFileDataAsync()
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Mar 10 15:18:22 CET 2011 on sn-devel-104
Stefan Metzmacher [Mon, 20 Sep 2010 23:44:38 +0000 (01:44 +0200)]
pidl: add support for 'pipe' at the NDR layer
metze
Stefan Metzmacher [Tue, 21 Sep 2010 17:30:08 +0000 (19:30 +0200)]
pidl/idl.yp: fill 'pipe' elements with array and count
metze
Stefan Metzmacher [Mon, 11 Oct 2010 06:03:18 +0000 (08:03 +0200)]
pidl:NDR/Client: skip all functions if pipe elements are used
We don't support pipe at the dcerpc level yet.
metze
Stefan Metzmacher [Mon, 11 Oct 2010 06:03:18 +0000 (08:03 +0200)]
pidl:NDR/Client: skip sync functions if pipe elements are used
metze
Stefan Metzmacher [Mon, 11 Oct 2010 05:54:59 +0000 (07:54 +0200)]
pidl:Python: don't generate functions with pipe elements
metze
Stefan Metzmacher [Mon, 11 Oct 2010 05:53:48 +0000 (07:53 +0200)]
pidl:Samba3/ClientNDR: don't generate stubs for functions with pipe elements
metze
Stefan Metzmacher [Tue, 21 Sep 2010 00:20:14 +0000 (02:20 +0200)]
pidl/NDR: add ContainsPipe() function
metze
Stefan Metzmacher [Tue, 21 Sep 2010 06:34:31 +0000 (08:34 +0200)]
librpc/tools/ndrdump: add support for dcerpc 'pipe' elements in functions
metze
Stefan Metzmacher [Tue, 21 Sep 2010 03:18:02 +0000 (05:18 +0200)]
librpc/ndr: add ndr_push_pipe_chunk_trailer() and ndr_check_pipe_chunk_trailer()
metze
Stefan Metzmacher [Sun, 19 Sep 2010 11:56:13 +0000 (13:56 +0200)]
librpc/ndr: add ndr_interface_call_pipe
metze
Stefan Metzmacher [Tue, 8 Mar 2011 14:45:33 +0000 (15:45 +0100)]
pidl/Typelist: add is_fixed_size_scalar()
metze
Stefan Metzmacher [Tue, 8 Mar 2011 14:44:31 +0000 (15:44 +0100)]
pidl/Typelist: dnsp_name and dnsp_string are scalar references
metze
Matthias Dieter Wallnöfer [Wed, 9 Mar 2011 08:29:30 +0000 (09:29 +0100)]
s4:lib/tls/wscript - exclude known broken GNUTLS releases
This definitely fixes bug #7218.
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Thu Mar 10 11:58:27 CET 2011 on sn-devel-104
Matthias Dieter Wallnöfer [Wed, 9 Mar 2011 08:09:15 +0000 (09:09 +0100)]
lib/util/fault.c - "call_backtrace" - no need to have "backtrace_size" as size_t
The function "backtrace" returns an "int".
Matthias Dieter Wallnöfer [Sun, 6 Mar 2011 20:46:02 +0000 (21:46 +0100)]
s4:extended_dn_store LDB module - use the new request as generic memory contexts
To prevent memory leaks under valgrind.
Matthias Dieter Wallnöfer [Sat, 5 Mar 2011 13:42:40 +0000 (14:42 +0100)]
s4:repl_meta_data LDB module - always ask manually for the current partition control
Otherwise the "partition" LDB module doesn't give it back anymore.
Matthias Dieter Wallnöfer [Sat, 5 Mar 2011 13:25:59 +0000 (14:25 +0100)]
s4:partition LDB module - the current partition control should only be added if requested
That means if the informations before a request are unknown
("repl_meta_data" LDB module) then an empty control (no data) has to be sent.
Matthias Dieter Wallnöfer [Sun, 6 Mar 2011 14:56:48 +0000 (15:56 +0100)]
s4:partition LDB module - extended operations - make the initialisation check consistent
To the other operations.
Matthias Dieter Wallnöfer [Sun, 6 Mar 2011 14:56:06 +0000 (15:56 +0100)]
s4:partition LDB module - move the "data" check a bit higher
It can be performed a bit earlier.
Matthias Dieter Wallnöfer [Sun, 6 Mar 2011 14:37:51 +0000 (15:37 +0100)]
s4:partition LDB module - "partition_replicate" doesn't handle the search requests
That is done by "partition_search".
Matthias Dieter Wallnöfer [Sat, 5 Mar 2011 18:02:43 +0000 (19:02 +0100)]
s4:partition LDB module - "partition_sequence_number" - remove meaningless "if"s
These current partition controls are always added for the two EXOP operations.
Matthias Dieter Wallnöfer [Sat, 5 Mar 2011 13:52:18 +0000 (14:52 +0100)]
s4:simple_ldap_map LDB module - enhance current partition control checks
Don't stop the server if it hasn't been filled in correctly. An LDB
error should be enough.
Modified by request of tridge: errorcodes changed to ERR_PROTOCOL_ERROR
Matthias Dieter Wallnöfer [Sat, 5 Mar 2011 12:56:10 +0000 (13:56 +0100)]
s4:repl_meta_data LDB module - don't remove the partition control twice
"controls" is already the controls list which has the partition control
removed. It is generated by "ldb_controls_except_specified" in line 378.
Matthias Dieter Wallnöfer [Sat, 5 Mar 2011 19:38:14 +0000 (20:38 +0100)]
s4:repl_meta_data LDB module - remove the current partition control unless it was requested
Matthias Dieter Wallnöfer [Sat, 5 Mar 2011 16:15:55 +0000 (17:15 +0100)]
s4:new_partition LDB module - splitting up an "if" operation
- let the first "if" in place
- uninstantiated partitions are handled by the second "if" (previously
they have been handled twice)
Has been corrected by request of tridge.
Matthias Dieter Wallnöfer [Sat, 5 Mar 2011 16:24:10 +0000 (17:24 +0100)]
s4:instancetype LDB module - perform here only the "instanceType" constraint checks
The boilerplate entries (when this support has been implemented) should
be provided by the "new_partition" LDB module. These are for example the
deleted object and lost and found container.