samba.git
16 years agosidmap: Some source code cleanups.
Kai Blin [Tue, 5 Feb 2008 10:40:23 +0000 (11:40 +0100)]
sidmap: Some source code cleanups.
(This used to be commit 16466b543bf8dd35bc79a030696f78598ca82f54)

16 years agoClarify nomaclature of socket names in process_single and process_prefork
Andrew Bartlett [Tue, 5 Feb 2008 03:51:01 +0000 (14:51 +1100)]
Clarify nomaclature of socket names in process_single and process_prefork

Fix talloc_steal in both cases to steal connected socket (from accept)
onto it's private structure, rather than stealing the bound socket.

Remove termination code from the prefork modal, we want the process to
still stay around, to serve future clients.

Andrew Bartlett and David Disseldorp
(This used to be commit 07590d893e993919cf6cb7582310777f534e756f)

16 years agoMerge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-abartlet
Andrew Bartlett [Mon, 4 Feb 2008 22:16:37 +0000 (09:16 +1100)]
Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-abartlet
(This used to be commit 7fc3669b9dc34514d8749d3941514fdae7d0f700)

16 years agopidl: remove 'pointer_default_top()' support
Stefan Metzmacher [Sat, 2 Feb 2008 09:18:33 +0000 (10:18 +0100)]
pidl: remove 'pointer_default_top()' support

metze
(This used to be commit 145d6c8ea0eafc69cdeca45fbf296148b890133d)

16 years agospoolss.idl: don't use pointer_default_top() and specify "unique" explizit
Stefan Metzmacher [Fri, 1 Feb 2008 21:25:32 +0000 (22:25 +0100)]
spoolss.idl: don't use pointer_default_top() and specify "unique" explizit

Note: this doesn't change the generated output!

metze
(This used to be commit c472935c984016f0a26ef7851b6472d45b4ac510)

16 years agosamr.idl: don't use pointer_default_top() and specify "unique" explizit
Stefan Metzmacher [Fri, 1 Feb 2008 21:11:43 +0000 (22:11 +0100)]
samr.idl: don't use pointer_default_top() and specify "unique" explizit

Note: this doesn't change the generated output!

metze
(This used to be commit 14ee13c1fe2d17ebfd031a1cd2fbf2a9b72cdfc9)

16 years agonetlogon.idl: don't use pointer_default_top() and specify "unique" explizit
Stefan Metzmacher [Fri, 1 Feb 2008 20:53:41 +0000 (21:53 +0100)]
netlogon.idl: don't use pointer_default_top() and specify "unique" explizit

Note: this doesn't change the generated output!

metze
(This used to be commit e4b12aa9a44210a7d76a75db6a1fa4fecaf3e76f)

16 years agowinreg.idl: don't use pointer_default_top() and specify "unique" explizit
Stefan Metzmacher [Fri, 1 Feb 2008 20:35:52 +0000 (21:35 +0100)]
winreg.idl: don't use pointer_default_top() and specify "unique" explizit

Note: this doesn't change the generated output!

metze
(This used to be commit f195093a86e1359572aacd7411e4a0cb8a2af0cf)

16 years agosvcctl.idl: don't use pointer_default_top() and specify "unique" explizit
Stefan Metzmacher [Fri, 1 Feb 2008 20:24:54 +0000 (21:24 +0100)]
svcctl.idl: don't use pointer_default_top() and specify "unique" explizit

Note: this doesn't change the generated output!

metze
(This used to be commit 7561e8fa51bf616916a1f87e16e971de29290dcf)

16 years agowkssvc.idl: don't use pointer_default_top() and specify "unique" explizit
Stefan Metzmacher [Fri, 1 Feb 2008 20:22:39 +0000 (21:22 +0100)]
wkssvc.idl: don't use pointer_default_top() and specify "unique" explizit

Note: this doesn't change the generated output!

metze
(This used to be commit f2227b3bb8dc74788614cc7eb9b84475f0a4a949)

16 years agosrvsvc.idl: don't use pointer_default_top() and specify "unique" explizit
Stefan Metzmacher [Fri, 1 Feb 2008 19:41:26 +0000 (20:41 +0100)]
srvsvc.idl: don't use pointer_default_top() and specify "unique" explizit

Note: this doesn't change the generated output!

metze
(This used to be commit 6d20a2f3f98217ba78e905d0f85dd91cee218238)

16 years agoFix a few more breakages from our recent changes to the server_id
Andrew Bartlett [Mon, 4 Feb 2008 12:04:35 +0000 (23:04 +1100)]
Fix a few more breakages from our recent changes to the server_id
structure.  The BASE-TORTURE test found this problem - caused because
the messaging path was not unique.

If we didn't use a macro for cluster_id_equal(), we could make it
opaque, and avoid this...

Andrew Bartlett
(This used to be commit c3387545c57d2dd4922b4f3806b4552cee8035a3)

16 years agoRemove useless layer of indirection, where every service called
Andrew Bartlett [Mon, 4 Feb 2008 10:58:29 +0000 (21:58 +1100)]
Remove useless layer of indirection, where every service called
task_service_init() manually.  Now this is called from service.c for
all services.

Andrew Bartlett
(This used to be commit 9c9a4731cafd0dcf6c8523a7b06759cd4f14e4db)

16 years agoRemaining changes to implement the prefork process model
Andrew Bartlett [Mon, 4 Feb 2008 06:59:16 +0000 (17:59 +1100)]
Remaining changes to implement the prefork process model

To use, run 'smbd -M prefork'

By default, only the smb service is preforked.  4 children are
created, and all listen for new connections.  The Linux Kernel 'wake
one' behaviour should ensure that only one is given the oportunity to
accept.  We need to look into the ideal number of worker children, as
well as load balancing behaviours.

To change, set:

prefork children : smb = 6

valid service names (smb in this example) match those in 'server services'.

Andrew Bartlett and David Disseldorp
(This used to be commit 35313c0aa3fbfdd943edfb7bafd7645b1a0c54e9)

16 years agoRework process_single.c to take advantage of cluster_id() now taking an additional...
Andrew Bartlett [Mon, 4 Feb 2008 06:53:01 +0000 (17:53 +1100)]
Rework process_single.c to take advantage of cluster_id() now taking an additional argument.

Andrew Bartlett and David Disseldorp
(This used to be commit c961e7d74e33a0dd61b1053620fb41521322e20d)

16 years agoRework cluster_id() to take an additional argument, as we need
Andrew Bartlett [Mon, 4 Feb 2008 06:51:38 +0000 (17:51 +1100)]
Rework cluster_id() to take an additional argument, as we need
<node>.<pid>.<fd> to be unique in a prefork process environment.

Andrew Bartlett and David Disseldorp
(This used to be commit 931994a7f185bbc98924823e9e8cef1011dd0957)

16 years agoRework service init functions to pass down service name. This is
Andrew Bartlett [Mon, 4 Feb 2008 06:48:51 +0000 (17:48 +1100)]
Rework service init functions to pass down service name.  This is
needed to change prefork behaviour based on what service is being
started.

Andrew Bartlett and David Disseldorp
(This used to be commit 0d830580e3539c96da3aa6c72fafe6eacd7a74a0)

16 years agoMerge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-abartlet
Andrew Bartlett [Sun, 3 Feb 2008 22:56:24 +0000 (09:56 +1100)]
Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-abartlet
(This used to be commit 377a7c633d4813c134b91739c507dcefb55c9691)

16 years agopidl/Samba4::NDR::Parser: correctly get the name of an array element
Stefan Metzmacher [Thu, 31 Jan 2008 13:57:35 +0000 (14:57 +0100)]
pidl/Samba4::NDR::Parser: correctly get the name of an array element

When we have "*r->out.ous"
(char ***ous, a pointer to a pointer to an array of pointers).
we need to use "(*r->out.ous)[3]" to access the 3rd
element of the array "*r->out.ous[3]" was generated before,
but that's the same as "*(r->out.ous[3])" which would mean
the array would apply to a different level.

This patch prepares support for:

[out,ref,size_is(,num)] [string,charset(UTF16)] uint16 ***names;

It means a [ref] pointer to a [unique] pointer to an array
of [unique] pointers which point to an UTF16 string.

metze
(This used to be commit ec0ee2aa5f4bef32f09a426d91c28c985f843038)

16 years agopidl/Samba4::NDR::Parser: fix $var_name for arrays of scalar reference types
Stefan Metzmacher [Fri, 1 Feb 2008 08:54:25 +0000 (09:54 +0100)]
pidl/Samba4::NDR::Parser: fix $var_name for arrays of scalar reference types

uint32 num;
nstring strings[num];

this should use 'r->strings' instead of
'*r->strings' as the pointer to the array.

metze
(This used to be commit 7c7acae817cd00ab5c915742338b019af79e9193)

16 years agopidl/Samba4::NDR::Parser: move logic for extra get_pointer_of() into a function
Stefan Metzmacher [Fri, 1 Feb 2008 08:49:54 +0000 (09:49 +0100)]
pidl/Samba4::NDR::Parser: move logic for extra get_pointer_of() into a function

metze
(This used to be commit 26d7f5bf96cd7e950ceb532402afd6b8a58871ea)

16 years agopidl: revert changes it didn't want to push...sorry!
Stefan Metzmacher [Sat, 2 Feb 2008 10:13:03 +0000 (11:13 +0100)]
pidl: revert changes it didn't want to push...sorry!

8ebf16c0741085fa769fcc2929f275ab49b1ea5d Works!!!...pidl/Samba4::NDR::Parser: fix support for embedded "ref" pointers
6fcf2456d0e81898b5779ef1650f38b4c5363a80 WORKS!!!...pidl/NDR: fix handling of multilevel pointers in function elements
0569139ca2960ec5478829c3e66f7ff69bdb55cd LOOKS OK... pidl: get the pointer types correct when an element has multiple pointe
rs
13afc89a87716063180723f0e9cb4f76daca837e CHECKED... pidl/Samba4::NDR::Parser: correctly get the name of an array element
29c104944bcad30c6a2a3fa70d527bf0ee8969de CHECKED... TODO:MSG pidl/Samba4::NDR::Parser: fix ...
3369015f5d8c425e1a9f9d861471028f03f163bb CHECKED... pidl/Samba4::NDR::Parser: move logic for extra get_pointer_of() into a f
unction

metze
(This used to be commit 0bcc8e53d1470ba9dfe93e5d6925b8f4c20c7c66)

16 years agoWorks!!!...pidl/Samba4::NDR::Parser: fix support for embedded "ref" pointers
Stefan Metzmacher [Thu, 31 Jan 2008 14:04:22 +0000 (15:04 +0100)]
Works!!!...pidl/Samba4::NDR::Parser: fix support for embedded "ref" pointers

The memory allocation of embedded "ref" pointers needs to be the
same as for all other embedded pointers.

metze
(This used to be commit 8ebf16c0741085fa769fcc2929f275ab49b1ea5d)

16 years agoWORKS!!!...pidl/NDR: fix handling of multilevel pointers in function elements
Stefan Metzmacher [Fri, 1 Feb 2008 22:09:37 +0000 (23:09 +0100)]
WORKS!!!...pidl/NDR: fix handling of multilevel pointers in function elements

The 2nd or higher level of wire pointers needs to be marked as deferred.

metze
(This used to be commit 6fcf2456d0e81898b5779ef1650f38b4c5363a80)

16 years agoLOOKS OK... pidl: get the pointer types correct when an element has multiple pointers
Stefan Metzmacher [Fri, 1 Feb 2008 09:30:47 +0000 (10:30 +0100)]
LOOKS OK... pidl: get the pointer types correct when an element has multiple pointers

Only the first level gets the pointer type from the
pointer property, the others get them from
the pointer_default() interface property

see http://msdn2.microsoft.com/en-us/library/aa378984(VS.85).aspx
(Here they talk about the rightmost pointer, but testing shows
they mean the leftmost pointer.)

metze
(This used to be commit 0569139ca2960ec5478829c3e66f7ff69bdb55cd)

16 years agoCHECKED... pidl/Samba4::NDR::Parser: correctly get the name of an array element
Stefan Metzmacher [Thu, 31 Jan 2008 13:57:35 +0000 (14:57 +0100)]
CHECKED... pidl/Samba4::NDR::Parser: correctly get the name of an array element

When we have "*r->out.ous"
(char ***ous, a pointer to a pointer to an array).
we need to use "(*r->out.ous)[3]" to access the 3rd
element of the array "*r->out.ous[3]" was generated before,
but that's the same as "*(r->out.ous[3])".

metze
(This used to be commit 13afc89a87716063180723f0e9cb4f76daca837e)

16 years agoCHECKED... TODO:MSG pidl/Samba4::NDR::Parser: fix ...
Stefan Metzmacher [Fri, 1 Feb 2008 08:54:25 +0000 (09:54 +0100)]
CHECKED... TODO:MSG pidl/Samba4::NDR::Parser: fix ...

metze
(This used to be commit 29c104944bcad30c6a2a3fa70d527bf0ee8969de)

16 years agoCHECKED... pidl/Samba4::NDR::Parser: move logic for extra get_pointer_of() into a...
Stefan Metzmacher [Fri, 1 Feb 2008 08:49:54 +0000 (09:49 +0100)]
CHECKED... pidl/Samba4::NDR::Parser: move logic for extra get_pointer_of() into a function

metze
(This used to be commit 3369015f5d8c425e1a9f9d861471028f03f163bb)

16 years agopidl: cosmetic fix to use the same value everywhere
Stefan Metzmacher [Fri, 1 Feb 2008 17:20:32 +0000 (18:20 +0100)]
pidl: cosmetic fix to use the same value everywhere

metze
(This used to be commit 3c191981436ab3f7dd166a87875ffbac127fbdf5)

16 years agoSamba4 poor mans debug_ctx()
Amin Azez [Fri, 1 Feb 2008 16:19:36 +0000 (16:19 +0000)]
Samba4 poor mans debug_ctx()

DEBUG(), DEBUGADD() and friends can now use debug_ctx() in the
formatting expressions again,
e.g.

DEBUG(5,("Guid failed to match: %s\n", GUID_string(debug_ctx(), r->guid)));

Sadly it's done with macros (again) but when we need to save the 8 or 16
bytes of object code per DEBUG() expression we can do it the Samba 3 way
with added thread-safety for Samba 4. That could save up to 200K,
allowing 12 bytes for each occurrance of DEBUG...

Signed-off-by: Amin Azez <azez@ufomechanic.net>
(This used to be commit 9781967542b00c279563d435aec72dac1e8c7e9a)

16 years agopidl/IDL: don't strip ',' from the properties content
Stefan Metzmacher [Thu, 31 Jan 2008 14:30:50 +0000 (15:30 +0100)]
pidl/IDL: don't strip ',' from the properties content

metze
(This used to be commit fdf9bcb163516f7d96675ae0dce2917afb8f86d3)

16 years agopidl/Samba4::NDR::Parse: move the calculation of NDR_PULL_SET_MEM_CTX() flags into...
Stefan Metzmacher [Fri, 1 Feb 2008 06:00:50 +0000 (07:00 +0100)]
pidl/Samba4::NDR::Parse: move the calculation of NDR_PULL_SET_MEM_CTX() flags into one function

metze
(This used to be commit 74bf021aa7016ace02a0238e71573f18016e3722)

16 years agoFix sending of large nttrans responses.
Amin Azez [Thu, 31 Jan 2008 17:04:30 +0000 (17:04 +0000)]
Fix sending of large nttrans responses.

req_grow_data was growing the original req, not this_req which
was being used for the current fragment.
(This used to be commit 2ac47f5ab670f971f41f99700dbfb3655fd6737f)

16 years agopidl/Samba4::NDR::Parser: pass down the correct $var_name to AllocateArrayLevel()
Stefan Metzmacher [Thu, 31 Jan 2008 13:48:15 +0000 (14:48 +0100)]
pidl/Samba4::NDR::Parser: pass down the correct $var_name to AllocateArrayLevel()

metze
(This used to be commit c630bece38eed3278466c2934763fcd8dcfb0610)

16 years agoMerge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
Andrew Tridgell [Wed, 30 Jan 2008 22:49:15 +0000 (09:49 +1100)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
(This used to be commit f6a5848e5e211d4d4d66b7eca46b4b0ad4c9daab)

16 years agomerged tdb transaction fix
Andrew Tridgell [Wed, 30 Jan 2008 22:48:46 +0000 (09:48 +1100)]
merged tdb transaction fix
(This used to be commit eb3af24926977208a8099c848a510704d2ae3524)

16 years agolibndr: depend on samba-config, so that callers doesn't need to know about it
Stefan Metzmacher [Wed, 30 Jan 2008 19:30:27 +0000 (20:30 +0100)]
libndr: depend on samba-config, so that callers doesn't need to know about it

metze
(This used to be commit fc69e3f829a83aae311b4849d91509fcfa47816b)

16 years agopidl: be consistent and always ask pkg-config only for 'ndr'
Stefan Metzmacher [Wed, 30 Jan 2008 19:25:40 +0000 (20:25 +0100)]
pidl: be consistent and always ask pkg-config only for 'ndr'

metze
(This used to be commit ab2e1394d0a66ca13750e1b6f4ced07f4a0f3453)

16 years agoMerge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-abartlet
Andrew Bartlett [Wed, 30 Jan 2008 00:47:52 +0000 (11:47 +1100)]
Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-abartlet
(This used to be commit 8011716734cb8e3c34f85d9d68201f13cb5b8e0a)

16 years agopython: Provide PyAPI_DATA macro for older versions of Python (< 2.3).
Jelmer Vernooij [Tue, 29 Jan 2008 13:27:27 +0000 (14:27 +0100)]
python: Provide PyAPI_DATA macro for older versions of Python (< 2.3).
(This used to be commit 421bdd203eab09e560f4919715fa4cc4497e406f)

16 years agoPartially revert d64a2288a2cb3a8f74a18b740b265a460773635d and 351c2e99ab8b6a91f735507...
Jelmer Vernooij [Tue, 29 Jan 2008 12:10:43 +0000 (13:10 +0100)]
Partially revert d64a2288a2cb3a8f74a18b740b265a460773635d and 351c2e99ab8b6a91f7355077b2d2944fd820839c to see if that fixes the build.
(This used to be commit 2a79cebfd99f4048214be65a6c918cc988dc83ed)

16 years agoMerge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-abartlet
Andrew Bartlett [Mon, 28 Jan 2008 23:59:14 +0000 (10:59 +1100)]
Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-abartlet
(This used to be commit 81a0a7967b8f659f1f35a7a25de469725417ab43)

16 years agoMerge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-abartlet
Andrew Bartlett [Mon, 28 Jan 2008 05:39:03 +0000 (16:39 +1100)]
Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-abartlet
(This used to be commit f0a4db22e58d393be5b28f767ee6d0abfc8f11dc)

16 years agotorture: Fix too early free in spoolss notify test.
Jelmer Vernooij [Mon, 28 Jan 2008 01:49:44 +0000 (02:49 +0100)]
torture: Fix too early free in spoolss notify test.
(This used to be commit f5ea5de797f4fe35baf4f2bcd2913902c6703f44)

16 years agoldb: Add ldb_oom() calls in a couple of places.
Jelmer Vernooij [Sat, 26 Jan 2008 22:49:33 +0000 (23:49 +0100)]
ldb: Add ldb_oom() calls in a couple of places.
(This used to be commit 1163c2ad54b122487fa25960b8989f0f6d0b8c64)

16 years agopython: Use relative paths for registry.
Jelmer Vernooij [Sat, 26 Jan 2008 03:22:42 +0000 (04:22 +0100)]
python: Use relative paths for registry.
(This used to be commit 079200b824de6dd8c7de3e5b76ed1805fde02965)

16 years agopython: Load smb.conf file for the provision tests.
Jelmer Vernooij [Sat, 26 Jan 2008 01:55:03 +0000 (02:55 +0100)]
python: Load smb.conf file for the provision tests.
(This used to be commit 41571bbb933c763a9608f4ba56f1a5a97af133ab)

16 years agoFix netlogon rpc-server build.
Günther Deschner [Fri, 25 Jan 2008 21:42:14 +0000 (22:42 +0100)]
Fix netlogon rpc-server build.

Guenther
(This used to be commit 7a10be2ac77124a78fcc4ddda5e05c036ed920fa)

16 years agoAdd IDL for netr_DsrDeregisterDNSHostRecords (just for completion).
Günther Deschner [Fri, 25 Jan 2008 16:43:15 +0000 (17:43 +0100)]
Add IDL for netr_DsrDeregisterDNSHostRecords (just for completion).

Guenther
(This used to be commit 722b4dfdc4821ecf349f87f57146f3b52e719b3d)

16 years agoNET-BECOME-DC: always try to build ejs and python code
Stefan Metzmacher [Fri, 25 Jan 2008 14:45:18 +0000 (15:45 +0100)]
NET-BECOME-DC: always try to build ejs and python code

We let getenv("PROVISION_PYTHON") decide what we want
at runtime.

metze
(This used to be commit acb5661f61ad62c02b5ec83d0f1f0c969f356c9f)

16 years agotorture: the libnet torture test depend on python
Stefan Metzmacher [Fri, 25 Jan 2008 14:41:51 +0000 (15:41 +0100)]
torture: the libnet torture test depend on python

metze
(This used to be commit d64a2288a2cb3a8f74a18b740b265a460773635d)

16 years agoconfigure: define HAVE_WORKING_PYTHON
Stefan Metzmacher [Fri, 25 Jan 2008 14:40:55 +0000 (15:40 +0100)]
configure: define HAVE_WORKING_PYTHON

metze
(This used to be commit 351c2e99ab8b6a91f7355077b2d2944fd820839c)

16 years agoMerge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
Andrew Tridgell [Fri, 25 Jan 2008 12:16:34 +0000 (23:16 +1100)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
(This used to be commit 1e042908992cdf3149ffc24472c7f0b1c3f9edef)

16 years agopython: Give precedence to Samba's syspath over the already set system one.
Jelmer Vernooij [Fri, 25 Jan 2008 11:16:13 +0000 (12:16 +0100)]
python: Give precedence to Samba's syspath over the already set system one.
(This used to be commit f3ebaf0a0c0b881da28063c69bb6306f6aa1c774)

16 years agoMerge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivial
Jelmer Vernooij [Fri, 25 Jan 2008 10:50:00 +0000 (11:50 +0100)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivial

Conflicts:

source/scripting/python/samba/provision.py
(This used to be commit 64babbec22f165e34799d36ff4b76806d9fead50)

16 years agopython/provision: Reload secrets when necessary, fix unix names in mappings.
Jelmer Vernooij [Fri, 25 Jan 2008 10:47:44 +0000 (11:47 +0100)]
python/provision: Reload secrets when necessary, fix unix names in mappings.

Pair programmed with Andrew.
(This used to be commit 04fe8c8aefae8da8966954d0654c37adf2d0361d)

16 years agopidl/Samba4::Header: fix typedefs of unions and structs without elements
Stefan Metzmacher [Fri, 25 Jan 2008 09:07:43 +0000 (10:07 +0100)]
pidl/Samba4::Header: fix typedefs of unions and structs without elements

metze
(This used to be commit 3131847cb67dadd8ee6fcbca5055927b8ba8a219)

16 years agoconfigure.ac: we should use AC_CONFIG_FILES() in order to use AC_OUTPUT only once
Stefan Metzmacher [Fri, 25 Jan 2008 07:42:30 +0000 (08:42 +0100)]
configure.ac: we should use AC_CONFIG_FILES() in order to use AC_OUTPUT only once

metze
(This used to be commit bcaba3cb725e1cbbe164132179a0849c7b546a73)

16 years agoconfigure.ac: we should only create ldb.pc when use the internal ldb
Stefan Metzmacher [Fri, 25 Jan 2008 07:40:03 +0000 (08:40 +0100)]
configure.ac: we should only create ldb.pc when use the internal ldb

metze
(This used to be commit 2c75bd5009020171e31b56ab3d8d6a86f19f3b49)

16 years agorepl_meta_data: add some TODOs to replmd_modify_originating()
Stefan Metzmacher [Fri, 25 Jan 2008 07:08:33 +0000 (08:08 +0100)]
repl_meta_data: add some TODOs to replmd_modify_originating()

metze
(This used to be commit ba495f9d19e7c7cfc9135a5d40e1050dd8f9ebc6)

16 years agoadded latency reporting
Andrew Tridgell [Fri, 25 Jan 2008 06:27:36 +0000 (17:27 +1100)]
added latency reporting
(This used to be commit f0ffbb8e19c1085bf54d226f62c667868e14f62e)

16 years agothis is in seconds
Andrew Tridgell [Fri, 25 Jan 2008 06:27:17 +0000 (17:27 +1100)]
this is in seconds
(This used to be commit 019dd9a3d7d9af8ab71a10802c728f5ab5cf781d)

16 years agoTidy up the last regresesions on the python smbscript, from my work
Andrew Bartlett [Fri, 25 Jan 2008 06:11:20 +0000 (17:11 +1100)]
Tidy up the last regresesions on the python smbscript, from my work
with Jelmer today.

The only remaining issue is that for the build farm, we will need to
manually specify the users and groups from the NSS_WRAPPPER, as python
isn't compiled with this.

Andrew Bartlett
(This used to be commit 5370484d25b8c7a5bde730d9be36ecbbb0aaf315)

16 years agomore useful output
Andrew Tridgell [Fri, 25 Jan 2008 04:00:45 +0000 (15:00 +1100)]
more useful output
(This used to be commit 033cab6546d943089eefc298b335db03c1d0ebb6)

16 years agoadded a offline file torture test BASE-OFFLINE
Andrew Tridgell [Fri, 25 Jan 2008 04:00:11 +0000 (15:00 +1100)]
added a offline file torture test BASE-OFFLINE
(This used to be commit d4b26fb2a38aa5b0ed2b6083641b9d8306af8c58)

16 years agopython: Fix representation of UUIDs as strings in zone files rather than binary blobs...
Jelmer Vernooij [Fri, 25 Jan 2008 02:54:33 +0000 (03:54 +0100)]
python: Fix representation of UUIDs as strings in zone files rather than binary blobs, fix escaping of LDAP URL's in PHP LDAP admin configuration.

Pair-programmed with Andrew, but git doesn't appear to support multiple --author arguments. :-(
(This used to be commit dff54ff043563f93b86361039c46e662045f62cc)

16 years agoldb/python: Add bindings for schema functions.
Jelmer Vernooij [Fri, 25 Jan 2008 02:46:47 +0000 (03:46 +0100)]
ldb/python: Add bindings for schema functions.
(This used to be commit 9f6ea4692ca79c607538871c597698b98abf13d0)

16 years agopython/provision: Create private dir if it didn't exist yet.
Jelmer Vernooij [Fri, 25 Jan 2008 00:41:06 +0000 (01:41 +0100)]
python/provision: Create private dir if it didn't exist yet.
(This used to be commit 66df250ff355d3c1b7f0252fc1f95a8c79a28c6d)

16 years agopython: Add test for secretsdb_become_dc
Jelmer Vernooij [Fri, 25 Jan 2008 00:37:47 +0000 (01:37 +0100)]
python: Add test for secretsdb_become_dc
(This used to be commit 9173c678efb6f74dbec64298bcb00952feff2ed7)

16 years agopython: fix tests for check_all_substituted.
Jelmer Vernooij [Fri, 25 Jan 2008 00:30:43 +0000 (01:30 +0100)]
python: fix tests for check_all_substituted.
(This used to be commit 859cffed9d3a62f9f7610d74472aa3c0d1979a35)

16 years agoMerge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivial
Jelmer Vernooij [Fri, 25 Jan 2008 00:03:13 +0000 (01:03 +0100)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivial
(This used to be commit d35d4f983d1eb7450cd9f92a5217c14ec073396f)

16 years agopython/provision: Reconcile code partitions-only provisioning and generic provisionin...
Jelmer Vernooij [Fri, 25 Jan 2008 00:02:13 +0000 (01:02 +0100)]
python/provision: Reconcile code partitions-only provisioning and generic provisioning, some other minor refactoring of the provisioning.

Pair-programmed by Andrew and me using obby :-)
(This used to be commit 688adcbb635af87fcfedb869b7f1857a947fd2f9)

16 years agopython: Make SamDB.set_ntds_invocation_id take a string.
Jelmer Vernooij [Thu, 24 Jan 2008 23:51:09 +0000 (00:51 +0100)]
python: Make SamDB.set_ntds_invocation_id take a string.
(This used to be commit 59bb26772f089cf4d8727c12230cfef8126762b1)

16 years agoFix netlogon rpc-server build.
Günther Deschner [Thu, 24 Jan 2008 23:04:24 +0000 (00:04 +0100)]
Fix netlogon rpc-server build.

Guenther
(This used to be commit 31980e03faedaa44317f64d940c458d38a103627)

16 years agoAdd IDL for netr_LogonGetTrustRid.
Günther Deschner [Thu, 24 Jan 2008 22:35:02 +0000 (23:35 +0100)]
Add IDL for netr_LogonGetTrustRid.

Guenther
(This used to be commit d0893014ab02f4a628bc05135e7afedd11427116)

16 years agoRename samr_*AccessMask bitfields to start with SAMR_.
Günther Deschner [Thu, 24 Jan 2008 22:52:16 +0000 (23:52 +0100)]
Rename samr_*AccessMask bitfields to start with SAMR_.

Guenther
(This used to be commit 70773be51a568dfc793111044cef93baa343d715)

16 years agoRevert "Add pidl --samba3-libnetapi option."
Günther Deschner [Thu, 24 Jan 2008 22:55:40 +0000 (23:55 +0100)]
Revert "Add pidl --samba3-libnetapi option."

This reverts commit fe299e0336fcff780ef69a6b4f56cd1e0d0c50a8.
(This used to be commit e22f042c6f3d535644e5a21f4175a10e5d74359f)

16 years agopython: Add function to look for unsubsituted variables.
Jelmer Vernooij [Thu, 24 Jan 2008 21:18:27 +0000 (22:18 +0100)]
python: Add function to look for unsubsituted variables.
(This used to be commit e726ce5bc515ae8d10b472396e228cfd35737476)

16 years agopython: Add bindings for SamDB.set_invocation_id().
Jelmer Vernooij [Thu, 24 Jan 2008 21:08:39 +0000 (22:08 +0100)]
python: Add bindings for SamDB.set_invocation_id().
(This used to be commit c09efa7b778f9cb29032a6abfd914fcaae8df163)

16 years agoMerge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivial
Jelmer Vernooij [Thu, 24 Jan 2008 21:00:07 +0000 (22:00 +0100)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivial
(This used to be commit d4d4120b715dc37b708b1c6074eab4f5c23d6b8f)

16 years agoAdd pidl --samba3-libnetapi option.
Günther Deschner [Thu, 24 Jan 2008 16:43:38 +0000 (17:43 +0100)]
Add pidl --samba3-libnetapi option.

Guenther
(This used to be commit fe299e0336fcff780ef69a6b4f56cd1e0d0c50a8)

16 years agopidl: get rid of stupid ';' char to terminate bitmap defines
Stefan Metzmacher [Thu, 24 Jan 2008 14:04:58 +0000 (15:04 +0100)]
pidl: get rid of stupid ';' char to terminate bitmap defines

metze
(This used to be commit dd77fc45eee2dde7bdd31a2e39387e94cec158aa)

16 years agopidl/Samba4::Header: we don't need to check if (defined($enum->{ELEMENTS})) twice
Stefan Metzmacher [Thu, 24 Jan 2008 13:57:30 +0000 (14:57 +0100)]
pidl/Samba4::Header: we don't need to check if (defined($enum->{ELEMENTS})) twice

metze
(This used to be commit c1ac13ee12d6d7e41b3700f207c9a8811bb05cd4)

16 years agonetlogon.idl: add some MSV1_0_ values from samba3 and use a bitmap32
Stefan Metzmacher [Thu, 24 Jan 2008 12:52:47 +0000 (13:52 +0100)]
netlogon.idl: add some MSV1_0_ values from samba3 and use a bitmap32

metze
(This used to be commit 7222edb9cde5cdeb9d065e890775a7254b26648f)

16 years agonetlogon.idl: make use of bitmap samr_GroupAttrs
Stefan Metzmacher [Thu, 24 Jan 2008 09:24:41 +0000 (10:24 +0100)]
netlogon.idl: make use of bitmap samr_GroupAttrs

metze
(This used to be commit 6d68161e676d381600c77c3f862bd7e013968724)

16 years agonetlogon.idl: remove unused netr_GroupsMembership structure
Stefan Metzmacher [Thu, 24 Jan 2008 09:22:45 +0000 (10:22 +0100)]
netlogon.idl: remove unused netr_GroupsMembership structure

We have samr_RidWithAttribute and use that in all cases.

metze
(This used to be commit 3c5bae2249d01213ff4bd7df2b4e3ac04da4a52d)

16 years agoEnsure we set subobj.BACKEND_MOD for the 'partitions only' case.
Andrew Bartlett [Thu, 24 Jan 2008 05:25:35 +0000 (16:25 +1100)]
Ensure we set subobj.BACKEND_MOD for the 'partitions only' case.

Andrew Bartlett
(This used to be commit be5eb2da241452ccc0526f4f115aa44c0793c351)

16 years agoMake the repl_meta_data module the default for domain controllers.
Andrew Bartlett [Thu, 24 Jan 2008 05:17:45 +0000 (16:17 +1100)]
Make the repl_meta_data module the default for domain controllers.

Andrew Bartlett
(This used to be commit ae2ea1bd0cd2b326b09b372428969f2cf52ce519)

16 years agoUse the repl_meta_data module by default.
Andrew Bartlett [Thu, 24 Jan 2008 03:28:25 +0000 (14:28 +1100)]
Use the repl_meta_data module by default.

This means that, except when we back onto LDAP, when it will be
replaced with the mapping backend, we will keep this codepath tested.

Andrew Bartlett
(This used to be commit e8fb5da5a18c1c3bd788b1ab3f814ffb847b00fd)

16 years agoKill another sub that the modules will handle for us.
Andrew Bartlett [Thu, 24 Jan 2008 00:33:37 +0000 (11:33 +1100)]
Kill another sub that the modules will handle for us.
(This used to be commit e9bb130d63e86fafc4cbf379e2e237354b88bcf8)

16 years agoRemove useless subs from the ejs provision
Andrew Bartlett [Thu, 24 Jan 2008 00:26:21 +0000 (11:26 +1100)]
Remove useless subs from the ejs provision

The less things we manually place into the templates, the easier the
conversion to python will be.

Andrew Bartlett
(This used to be commit f65e5c164476b80468aa19452b108db17c642f8b)

16 years agoPython: add some docstrings.
Jelmer Vernooij [Thu, 24 Jan 2008 00:06:19 +0000 (01:06 +0100)]
Python: add some docstrings.
(This used to be commit 1de69a772e1cc007220add1f51bffe83784c3344)

16 years agopython: Support --no-pass.
Jelmer Vernooij [Thu, 24 Jan 2008 00:05:57 +0000 (01:05 +0100)]
python: Support --no-pass.
(This used to be commit a90f3e8c420bec7fd7a39e0d5e2df6b32aedcdd5)

16 years agopython: Add bindings for cli_credentials_set_cmdline_callbacks().
Jelmer Vernooij [Thu, 24 Jan 2008 00:05:19 +0000 (01:05 +0100)]
python: Add bindings for cli_credentials_set_cmdline_callbacks().
(This used to be commit 557207f86ba901262e76704df5c51888b2737ddf)

16 years agoDefault to creating anonymous credentials.
Jelmer Vernooij [Wed, 23 Jan 2008 22:38:21 +0000 (23:38 +0100)]
Default to creating anonymous credentials.
(This used to be commit f93bd899f1402a9d89f55d5dca67318a60f5a72b)

16 years agopython: Add convenience function for getting command line loadparm context
Jelmer Vernooij [Wed, 23 Jan 2008 22:33:36 +0000 (23:33 +0100)]
python: Add convenience function for getting command line loadparm context
and default to using system smb.conf.
(This used to be commit b3afde0f00ab5093b577b139a062c233d4db2524)

16 years agoAdd bindings for lp_load_default().
Jelmer Vernooij [Wed, 23 Jan 2008 22:15:39 +0000 (23:15 +0100)]
Add bindings for lp_load_default().
(This used to be commit ffd793bbde636366855462f980f1f7d0e25afaab)

16 years agoGet more information from ldb when reporting a failed replication.
Andrew Bartlett [Wed, 23 Jan 2008 04:44:02 +0000 (15:44 +1100)]
Get more information from ldb when reporting a failed replication.

Andrew Bartlett
(This used to be commit 948ee9b7acd90b994bb9d9f7c1813a8eca430e4f)

16 years agoFix DRSUAPI replication test - NET-API-BECOME-DC.
Andrew Bartlett [Wed, 23 Jan 2008 04:43:14 +0000 (15:43 +1100)]
Fix DRSUAPI replication test - NET-API-BECOME-DC.

The main change here is to work with the current module stack,
replacing only the objectGUID module, rather than a number of modules.

However, two changes were key:
 - Fixing a typo search_req->handle -> change_req->handle
 - Allowing an error of NO_SUCH_OBJECT - it is quite valid
   for the object not to exist when being replicated in.

Other small changes were required to the ejs provision to match
changes in that code.

Andrew Bartlett
(This used to be commit 7b87a58502a052de391f4e1c56ac78a8d35b4e34)

16 years agoFix segfaults in codepaths only tested by the NET-API-BECOME-DC test.
Andrew Bartlett [Wed, 23 Jan 2008 04:34:44 +0000 (15:34 +1100)]
Fix segfaults in codepaths only tested by the NET-API-BECOME-DC test.

(I presume this has resulted from the global variable elimination)

Perhaps the iconv handle argument to ndr_push_struct needs to be
marked as 'not NULL' or similar?

Andrew Bartlett
(This used to be commit e8081333b8d43d96974c9e06a26aaa25dd34da56)