bbaumbach/samba-autobuild/.git
12 years agor10678: Add debug helper
Jelmer Vernooij [Sun, 2 Oct 2005 14:29:08 +0000 (14:29 +0000)]
r10678: Add debug helper
Fix push for non-fixed length strings
(This used to be commit 821b0bb56f6d6b9df7bbdeeddc206505f3f0a7c2)

12 years agor10677: Add smb_composite_connectmulti: Send out multiple SYN packets at once, use the
Volker Lendecke [Sun, 2 Oct 2005 10:02:35 +0000 (10:02 +0000)]
r10677: Add smb_composite_connectmulti: Send out multiple SYN packets at once, use the
first one that replies correctly.

Add a talloc context to smb_composite_connect()

Volker
(This used to be commit 6b88de182e40cb00a833c085f801fd47c92bbe94)

12 years agor10675: Connect to the DC's IPC$
Volker Lendecke [Sat, 1 Oct 2005 16:36:04 +0000 (16:36 +0000)]
r10675: Connect to the DC's IPC$

Volker
(This used to be commit c7557884843a5b2bac9e21ec81cafcaadf436bca)

12 years agor10670: Add notes on things that are TODO in Samba4 kerberos land.
Andrew Bartlett [Sat, 1 Oct 2005 01:19:12 +0000 (01:19 +0000)]
r10670: Add notes on things that are TODO in Samba4 kerberos land.

Andrew Bartlett
(This used to be commit 5b2114bb9c604e8d36887e1131175da327eabc84)

12 years agor10669: reverted jelmers commit 10663 as it was causing lots of panics in 'make test'
Andrew Tridgell [Sat, 1 Oct 2005 01:04:34 +0000 (01:04 +0000)]
r10669: reverted jelmers commit 10663 as it was causing lots of panics in 'make test'

I also think the method of getting rid of pstring isn't the right
one. I certainly do want to get rid of pstring/fstring, but the reason
for removing them is the use of arbitrary sized fixed length strings
on the stack and in structures. Changing to another fixed length stack
string format isn't really a win, and moving to use strncpy() is
actually worse than pstrcpy() as strncpy() has the absolutely awful
semantics of always zeroing all remaining bytes, so it ends up taking
a lot of cpu doing pointless memory writes.

I'd rather move to more use of asprintf()/talloc_asprintf() and
similar functions for dynamic string allocation.

You also have to be very careful about some of these system defined
string limits. One some systems PATH_MAX could be 64k or even larger,
which can quickly blow the stack out when you allocate a few of them.
(This used to be commit 194efd26e42d621b239052ed1fec8da916bd2144)

12 years agor10668: added a ildap_search_bytree() function
Andrew Tridgell [Fri, 30 Sep 2005 23:56:54 +0000 (23:56 +0000)]
r10668: added a ildap_search_bytree() function
(This used to be commit fd6d895ebdb201ac6afaf5c8ec84d003765cdff6)

12 years agor10667: cope with a NULL tree for base searches in ldb_search()
Andrew Tridgell [Fri, 30 Sep 2005 23:47:40 +0000 (23:47 +0000)]
r10667: cope with a NULL tree for base searches in ldb_search()
(This used to be commit 26ff53857802ae4a63f2b6e46c9caa7ca2fbbe89)

12 years agor10666: - reverse the ildap ldb backend so tree based searches go through
Andrew Tridgell [Fri, 30 Sep 2005 23:46:41 +0000 (23:46 +0000)]
r10666: - reverse the ildap ldb backend so tree based searches go through
directly, and expression based searches are converted to trees. This
makes for less conversions.

- allow the caller to supply a set of credentials via the ldb opaque
name 'credentials'. I will be using this in my ldb proxy module.
(This used to be commit af24f3d7faac6ef74feef73a23345d8c484da07c)

12 years agor10665: fixed some crash errors and an error encoding AND and OR operations in the...
Andrew Tridgell [Fri, 30 Sep 2005 23:14:30 +0000 (23:14 +0000)]
r10665: fixed some crash errors and an error encoding AND and OR operations in the expression parsing code
(This used to be commit 0d4a900ce5705856d61c6dd4ccb8fdbd049d22b7)

12 years agor10664: Include limits.h in replace.h for HOST_NAME_MAX
Jelmer Vernooij [Fri, 30 Sep 2005 23:10:20 +0000 (23:10 +0000)]
r10664: Include limits.h in replace.h for HOST_NAME_MAX
(This used to be commit dc3dc796746de672dbf3ad0e4715e8b30ae4afb7)

12 years agor10663: Eliminate use of pstring
Jelmer Vernooij [Fri, 30 Sep 2005 22:08:06 +0000 (22:08 +0000)]
r10663: Eliminate use of pstring
(This used to be commit 57cfbe51e61e27098fad3f9b1113c6f8f69f9a55)

12 years agor10662: Eliminate pstring and friends.
Jelmer Vernooij [Fri, 30 Sep 2005 21:48:25 +0000 (21:48 +0000)]
r10662: Eliminate pstring and friends.
(This used to be commit ecef1ee6cd0bdae2fcbff3f57edaa26eb72f3481)

12 years agor10653: give unknown levels a name basicly the *2 levels mean
Stefan Metzmacher [Fri, 30 Sep 2005 15:28:41 +0000 (15:28 +0000)]
r10653: give unknown levels a name basicly the *2 levels mean
that the update or inform should be propagaded to all servers

metze
(This used to be commit 33c7c101c024818694830ac11fefe70bd2edb1d4)

12 years agor10646: Hey Jelmer what do you think of this? The SConscript for the libcli
Tim Potter [Fri, 30 Sep 2005 07:30:37 +0000 (07:30 +0000)]
r10646: Hey Jelmer what do you think of this?  The SConscript for the libcli
directory now looks like the config.mk file but with different
punctuation.

The only weird bit is that it creates a proto.h file for each subsystem.
(This used to be commit 09d4abecb01fa9159243cfcb33051092f92cef3b)

12 years agor10643: increase smbd max runtime when using valgrind
Andrew Tridgell [Fri, 30 Sep 2005 04:52:21 +0000 (04:52 +0000)]
r10643: increase smbd max runtime when using valgrind
(This used to be commit c394a4a602edba49f00252d0376050c0bdc2f6a8)

12 years agor10641: fixed the error handling on search errors in the ildap backend
Andrew Tridgell [Fri, 30 Sep 2005 03:42:07 +0000 (03:42 +0000)]
r10641: fixed the error handling on search errors in the ildap backend
(This used to be commit e80d42933fe3cbc18cb229e47fffb9ca8068aca5)

12 years agor10638: - add wrepl_socket_merge() function that creates a wrepl_socket on top
Stefan Metzmacher [Fri, 30 Sep 2005 01:55:29 +0000 (01:55 +0000)]
r10638: - add wrepl_socket_merge() function that creates a wrepl_socket on top
  of an existing socket, that is needed to handle WREPL_REPL_UPDATE
  in the server, because we need to flig the connection and act as client on it

metze
(This used to be commit 131e5dfe695d427e992b840439743f880b14d82d)

12 years agor10637: use the correct memory context in the ndr_pull_* function
Stefan Metzmacher [Fri, 30 Sep 2005 01:49:32 +0000 (01:49 +0000)]
r10637: use the correct memory context in the ndr_pull_* function
to build the talloc hierachie correct

metze
(This used to be commit afd9dda5773d381550bdb061a8e345b33e1fc371)

12 years agor10636: Formatting for better readability.
Rafal Szczesniak [Thu, 29 Sep 2005 22:37:15 +0000 (22:37 +0000)]
r10636: Formatting for better readability.

rafal
(This used to be commit ef29863d999089c47140bd37731c60659a200421)

12 years agor10635: Formatting for better readability.
Rafal Szczesniak [Thu, 29 Sep 2005 22:36:41 +0000 (22:36 +0000)]
r10635: Formatting for better readability.

rafal
(This used to be commit 7b3a4096b5922e4a98ea0a74c0b92bc10d18cddd)

12 years agor10633: Formatting.
Rafal Szczesniak [Thu, 29 Sep 2005 22:34:57 +0000 (22:34 +0000)]
r10633: Formatting.

rafal
(This used to be commit 0e45dc3bac0e699b2da5b7f8df9d4bf7bd80a0f5)

12 years agor10631: Formatting.
Rafal Szczesniak [Thu, 29 Sep 2005 22:34:21 +0000 (22:34 +0000)]
r10631: Formatting.

rafal
(This used to be commit 426797f7b0d0321f6842db0b8d94c193726e8008)

12 years agor10627: - use a wrepl specific enum for the node type
Stefan Metzmacher [Thu, 29 Sep 2005 22:06:24 +0000 (22:06 +0000)]
r10627: - use a wrepl specific enum for the node type
- the unknown flag 0x10 seems to mean that this name was localy registered on this
  currently asked server, that flag is not present in replica records

metze
(This used to be commit ba3685c41dc934692bd653f4fe9c0ee451146c40)

12 years agor10610: forgot one file in the last commit:
Stefan Metzmacher [Thu, 29 Sep 2005 14:02:57 +0000 (14:02 +0000)]
r10610: forgot one file in the last commit:

make wrepl_nbt_name a scalar type that is another
wire representation of struct nbt_name

give wrepl_name->flags a meaning

metze
(This used to be commit 5fa13d6c2bd4cff9540ee97b3aa4c8a9c8e51fc5)

12 years agor10608: - fix hierachical memory handling in ndr_pull_nbt_name
Stefan Metzmacher [Thu, 29 Sep 2005 14:00:07 +0000 (14:00 +0000)]
r10608: - fix hierachical memory handling in ndr_pull_nbt_name
- add wrepl_nbt_name scalar type and do the pull/push in the ndr layer
  instead of the caller
- give the flags and group_flag in the wrepl_name a meaning

metze
(This used to be commit b98efc2905e1147eb97111b46a877bdb9d8dd154)

12 years agor10605: Forgot one file...
Jelmer Vernooij [Thu, 29 Sep 2005 12:00:49 +0000 (12:00 +0000)]
r10605: Forgot one file...
(This used to be commit 441419a08f0845af2b4c8023e1e5bcfda24a6d62)

12 years agor10604: Put in the new registry "patchfile" code (similar to ldif
Jelmer Vernooij [Thu, 29 Sep 2005 11:51:06 +0000 (11:51 +0000)]
r10604: Put in the new registry "patchfile" code (similar to ldif
for LDB); not finished yet.
(This used to be commit b405b27ba4bf4ddbaff9ca58926d94d1b2fd09f6)

12 years agor10603: neaten up the ldb module initialisation code
Andrew Tridgell [Thu, 29 Sep 2005 10:18:26 +0000 (10:18 +0000)]
r10603: neaten up the ldb module initialisation code
(This used to be commit 8e7c4c98a7b4fd814f298fba1b6b686cb58339f8)

12 years agor10599: Use localhost again for now, until I trace where we are leaking name lookups.
Andrew Bartlett [Thu, 29 Sep 2005 00:48:48 +0000 (00:48 +0000)]
r10599: Use localhost again for now, until I trace where we are leaking name lookups.

Andrew Bartlett
(This used to be commit 23f834dd191c82b632333265a59b5e6d18d5426b)

12 years agor10598: Factor out common code, in preperation for a move elsewhere.
Andrew Bartlett [Thu, 29 Sep 2005 00:28:46 +0000 (00:28 +0000)]
r10598: Factor out common code, in preperation for a move elsewhere.

Andrew Bartlett
(This used to be commit 0d757b169a3d521a0d228bed51aa96cf199d5c42)

12 years agor10597: And add the .mk files for the new credentials subsystem.
Andrew Bartlett [Thu, 29 Sep 2005 00:03:43 +0000 (00:03 +0000)]
r10597: And add the .mk files for the new credentials subsystem.

Andrew Bartlett
(This used to be commit 51a0275a0e7ffc940f2403f3c74a00b3936a07f4)

12 years agor10596: Move the credentials code into it's own subsystem, and push it under auth/
Andrew Bartlett [Thu, 29 Sep 2005 00:02:38 +0000 (00:02 +0000)]
r10596: Move the credentials code into it's own subsystem, and push it under auth/

Andrew Bartlett
(This used to be commit 2e76a4b8efd59c496d64241d654538d3222545c6)

12 years agor10595: Use a server name of 'localtest' not 'localhost', so we can move to
Andrew Bartlett [Wed, 28 Sep 2005 23:04:01 +0000 (23:04 +0000)]
r10595: Use a server name of 'localtest' not 'localhost', so we can move to
testing kerberos.

Andrew Bartlett
(This used to be commit a67b87cb6eba6548c4a74d7b46dd31d109fc538b)

12 years agor10594: Add initial framework for lib/registry torture tests
Jelmer Vernooij [Wed, 28 Sep 2005 22:16:30 +0000 (22:16 +0000)]
r10594: Add initial framework for lib/registry torture tests
(This used to be commit 985c6a8fcc9977553d714a7d5e272b0791d45d1e)

12 years agor10593: Add printf attribute
Andrew Bartlett [Wed, 28 Sep 2005 22:16:08 +0000 (22:16 +0000)]
r10593: Add printf attribute

Andrew Bartlett
(This used to be commit ba11061b96e26900fd09c32b95c2af934c1e2070)

12 years agor10592: Add "adfgets()" function, which allocates and reads a line from a fd.
Jelmer Vernooij [Wed, 28 Sep 2005 21:54:29 +0000 (21:54 +0000)]
r10592: Add "adfgets()" function, which allocates and reads a line from a fd.
Also add torture tests for this function and file_{load,save}. I've hardcoded
a file name here.. should I handle that neater somehow?
(This used to be commit 8fa383f182f1c4479979455968dd690edc0117ea)

12 years agor10588: Remove more unused files, macros
Jelmer Vernooij [Wed, 28 Sep 2005 19:56:21 +0000 (19:56 +0000)]
r10588: Remove more unused files, macros
(This used to be commit d2f80c0457f7404b2cac9df59a400130e9ad025f)

12 years agor10587: Remove unused constants
Jelmer Vernooij [Wed, 28 Sep 2005 18:47:06 +0000 (18:47 +0000)]
r10587: Remove unused constants
(This used to be commit b65c9dc607bf229f4f6f7e2112f88f5a08e9feb5)

12 years agor10586: Add MergedObject() builder. Default to Library() rather
Jelmer Vernooij [Wed, 28 Sep 2005 18:18:09 +0000 (18:18 +0000)]
r10586: Add MergedObject() builder. Default to Library() rather
then StaticLibrary()
(This used to be commit b53313dc517986c69a4e4cb8fe3885b696f8faa1)

12 years agor10582: Nicer output (try to avoid linewraps)
Jelmer Vernooij [Wed, 28 Sep 2005 14:42:04 +0000 (14:42 +0000)]
r10582: Nicer output (try to avoid linewraps)
(This used to be commit 908b88843ffe1026341166d0338a835121c8e641)

12 years agor10581: Remove some unused globals + make static
Jelmer Vernooij [Wed, 28 Sep 2005 14:38:07 +0000 (14:38 +0000)]
r10581: Remove some unused globals + make static
(This used to be commit 236bd1b97f6e3b97739839fd043a2388384e1abc)

12 years agor10580: More generic approach for adding endpoints
Jelmer Vernooij [Wed, 28 Sep 2005 14:35:51 +0000 (14:35 +0000)]
r10580: More generic approach for adding endpoints
(This used to be commit 0ef7fe6f4c979dcc3a0ab268253e493d8e929dd7)

12 years agor10579: str_list_make() can return NULL
Jelmer Vernooij [Wed, 28 Sep 2005 14:12:09 +0000 (14:12 +0000)]
r10579: str_list_make() can return NULL
(This used to be commit f547ab4644fd1c8ae2e44a25e874abf35e02d986)

12 years agor10578: Run LOCAL-STRLIST by default
Jelmer Vernooij [Wed, 28 Sep 2005 14:07:59 +0000 (14:07 +0000)]
r10578: Run LOCAL-STRLIST by default
(This used to be commit 997eabee80f54ae864400dbac8273b34bdf6bb2b)

12 years agor10577: Fix error in ReadFile()
Jelmer Vernooij [Wed, 28 Sep 2005 13:55:19 +0000 (13:55 +0000)]
r10577: Fix error in ReadFile()
(This used to be commit 04b8c473d7d55d4d802631074843e43fe7d9cfea)

12 years agor10576: Add testprog for named pipes. Also add GNUmakefile's for cross-compilation
Jelmer Vernooij [Wed, 28 Sep 2005 13:47:39 +0000 (13:47 +0000)]
r10576: Add testprog for named pipes. Also add GNUmakefile's for cross-compilation
using mingw32
(This used to be commit 30ba8fdc3dc8dba543686591a27b819b8f9444db)

12 years agor10569: add all info that we have to wrepl_name, as we need it for replication :-)
Stefan Metzmacher [Wed, 28 Sep 2005 09:58:58 +0000 (09:58 +0000)]
r10569: add all info that we have to wrepl_name, as we need it for replication :-)

metze
(This used to be commit bfd548ca10134d5a17b87a0507917721aa251223)

12 years agor10566: Clean up error messages to provide more accurate info.
Andrew Bartlett [Wed, 28 Sep 2005 05:38:20 +0000 (05:38 +0000)]
r10566: Clean up error messages to provide more accurate info.

Andrew Bartlett
(This used to be commit 640815008b78ca19a73beb523e6823dd61feffa5)

12 years agor10565: Try to make Kerberos authentication a bit more friendly.
Andrew Bartlett [Wed, 28 Sep 2005 04:50:02 +0000 (04:50 +0000)]
r10565: Try to make Kerberos authentication a bit more friendly.

This disables it for 'localhost' as well as for any host our KDC does
not recognise.

Andrew Bartlett
(This used to be commit 49c6c36763aae23880a20a8ee50c00e8935d8548)

12 years agor10564: Make the RPC-SCHANNEL test use the libnet_join code via torture_join_domain
Andrew Bartlett [Wed, 28 Sep 2005 02:58:53 +0000 (02:58 +0000)]
r10564: Make the RPC-SCHANNEL test use the libnet_join code via torture_join_domain

Handle error cases in torture_create_testuser, where we can't connect
to the target server (we were segfaulting due to an untested error
path).

Andrew Bartlett
(This used to be commit 7afe14becbcfa8742740431884f9de92b72ed3e1)

12 years agor10563: a null 'join' is a no-op.
Andrew Bartlett [Wed, 28 Sep 2005 02:37:03 +0000 (02:37 +0000)]
r10563: a null 'join' is a no-op.

Andrew Bartlett
(This used to be commit cd70e8baf5bccfd11ade342f6692ea7f7bf2eef4)

12 years agor10562: Ensure we initalise the error table with hdb errors. This ensures we
Andrew Bartlett [Wed, 28 Sep 2005 02:22:31 +0000 (02:22 +0000)]
r10562: Ensure we initalise the error table with hdb errors.  This ensures we
get good text error strings.

Andrew Bartlett
(This used to be commit 0600202067c00dd5d5d8be2d6559f66b46108f07)

12 years agor10561: This patch takes over KDC socket routines in Heimdal, and directs them
Andrew Bartlett [Wed, 28 Sep 2005 01:09:10 +0000 (01:09 +0000)]
r10561: This patch takes over KDC socket routines in Heimdal, and directs them
at the Samba4 socket layer.

The intention here is to ensure that other events may be processed while
heimdal is waiting on the KDC.  The interface is designed to be
sufficiently flexible, so that the plugin may choose how to time
communication with the KDC (ie multiple outstanding requests, looking
for a functional KDC).

I've hacked the socket layer out of cldap.c to handle this very
specific case of one udp packet and reply.  Likewise I also handle
TCP, stolen from the winbind code.

This same plugin system might also be useful for a self-contained
testing mode in Heimdal, in conjunction with libkdc.  I would suggest
using socket-wrapper instead however.

Andrew Bartlett
(This used to be commit 3b09f9e8f9f6f645cd03073ef833c8d0fb0d84e2)

12 years agor10547: - add wrepl_request timeout handling
Stefan Metzmacher [Tue, 27 Sep 2005 16:53:08 +0000 (16:53 +0000)]
r10547: - add wrepl_request timeout handling
- when we got an unexpected READ event, we need to do a socket_recv() to find connection errors
  and we need to mark the socket as dead (and remove the fde_event) to prevent,
  endless loops on broken connections

tridge: we should look carefull at other protocol, to handle broken connections without spinning

metze
(This used to be commit ff1272347739696dcdf2fd191b8f47ca82c205de)

12 years agor10545: map ECONNRESET to NT_STATUS_CONNECTION_RESET
Stefan Metzmacher [Tue, 27 Sep 2005 16:20:17 +0000 (16:20 +0000)]
r10545: map ECONNRESET to NT_STATUS_CONNECTION_RESET

metze
(This used to be commit e753114e863ff0ea32b35ef30a6f0056cfa7c902)

12 years agor10542: if the transport is dead we need to return
Stefan Metzmacher [Tue, 27 Sep 2005 13:31:17 +0000 (13:31 +0000)]
r10542: if the transport is dead we need to return

tridge: I think this is correct, comments?

metze
(This used to be commit e06ca726f3df013d869d943338bc6b7a151cdd3f)

12 years agor10540: fix compiler warning
Stefan Metzmacher [Tue, 27 Sep 2005 13:04:07 +0000 (13:04 +0000)]
r10540: fix compiler warning

metze
(This used to be commit 2bcc7747d9ee0635d4406eba7c1a9e2ae39fe714)

12 years agor10537: - we now use a much nicer way to handle talloc_free(timed_event)
Stefan Metzmacher [Tue, 27 Sep 2005 12:54:08 +0000 (12:54 +0000)]
r10537: - we now use a much nicer way to handle talloc_free(timed_event)
  the events code replaces a destructor to one that returns allways -1
  while it's calling the event handler
- we don't need the composite and winsrepl specific fixes any more
- this also fixes the problem with smbcli, dcerpc, cldap, ldap and nbt
  request timeouts

metze
(This used to be commit 495996cfc49a1c6eefde6ff04fc75e0739be3aab)

12 years agor10535: fixed the pidfile code (it didn't survive the recent pstring changes)
Andrew Tridgell [Tue, 27 Sep 2005 11:59:39 +0000 (11:59 +0000)]
r10535: fixed the pidfile code (it didn't survive the recent pstring changes)
(This used to be commit 1b9e6579931c9ff367ab032d0d2aadf95dcb3e63)

12 years agor10533: Eliminate another use of next_token()
Jelmer Vernooij [Tue, 27 Sep 2005 11:10:57 +0000 (11:10 +0000)]
r10533: Eliminate another use of next_token()
(This used to be commit cff17c6ac7e4fad730b6ef05e09499fff32c694a)

12 years agor10532: Replace next_token() with str_list_make()
Jelmer Vernooij [Tue, 27 Sep 2005 11:02:06 +0000 (11:02 +0000)]
r10532: Replace next_token() with str_list_make()
(This used to be commit 87bb382445292755eff1c29f12358d4509ebe714)

12 years agor10531: (hopefully) improve detection of socket-related functions in external libraries
Jelmer Vernooij [Tue, 27 Sep 2005 10:32:49 +0000 (10:32 +0000)]
r10531: (hopefully) improve detection of socket-related functions in external libraries
(This used to be commit 20a1aba500c64dc530271a96af8d557bc54af960)

12 years agor10530: - fix some crash bugs when we lost the connection...
Stefan Metzmacher [Tue, 27 Sep 2005 10:31:57 +0000 (10:31 +0000)]
r10530: - fix some crash bugs when we lost the connection...

metze
(This used to be commit 0983452bf8b0922f6df7af4aa16b14835d39d036)

12 years agor10529: fix a crash bug in full async code the uses the composite_trigger_done()...
Stefan Metzmacher [Tue, 27 Sep 2005 10:29:13 +0000 (10:29 +0000)]
r10529: fix a crash bug in full async code the uses the composite_trigger_done() code
the event subsystem wants to free timed_events!

metze
(This used to be commit dc5d5953b60662b895ad148525e84d82882d62a8)

12 years agor10528: Add credentials.h back into includes.h as some compilers don't
Jelmer Vernooij [Tue, 27 Sep 2005 10:00:27 +0000 (10:00 +0000)]
r10528: Add credentials.h back into includes.h as some compilers don't
seem to be able to handle incomplete enum types.
(This used to be commit 540155fad3c8e3d79fb631bb3f14273f82130a73)

12 years agor10527: don't attempt self gdb attach if running under valgrind. This was
Andrew Tridgell [Tue, 27 Sep 2005 07:11:33 +0000 (07:11 +0000)]
r10527: don't attempt self gdb attach if running under valgrind. This was
causing fort to get rather unhappy
(This used to be commit cc3e15e19cfde45fdfa63ca0a44dbbbefa723d6a)

12 years agor10526: BASEDIR must be set or we end up installing most of the binaries into lib/
Andrew Tridgell [Tue, 27 Sep 2005 05:11:14 +0000 (05:11 +0000)]
r10526: BASEDIR must be set or we end up installing most of the binaries into lib/
(This used to be commit 8ec69f8ddf4961f4b864fa98aa6f8ecf2e13511d)

12 years agor10525: change from AC_CHECK_TYPES() to AC_CHECK_TYPE() for intptr_t, so the
Andrew Tridgell [Tue, 27 Sep 2005 03:11:08 +0000 (03:11 +0000)]
r10525: change from AC_CHECK_TYPES() to AC_CHECK_TYPE() for intptr_t, so the
type is always available, which means we need less #ifdefs
(This used to be commit d4af4b11ae69a63fa3b2048e6d576055d86d2bb4)

12 years agor10524: SAFE_FREE() in tdb does not need the discard_const_p()
Andrew Tridgell [Tue, 27 Sep 2005 03:09:38 +0000 (03:09 +0000)]
r10524: SAFE_FREE() in tdb does not need the discard_const_p()

the discard_const_p() was causing problems on openbsd where intptr_t is not defined
(This used to be commit f02a92787b179a4070227d87e37b7ac092d9e6eb)

12 years agor10523: fixed timegm() to not depend on get_time_zone(), so it works in lib/replace/
Andrew Tridgell [Tue, 27 Sep 2005 02:36:56 +0000 (02:36 +0000)]
r10523: fixed timegm() to not depend on get_time_zone(), so it works in lib/replace/

the old timegm() replacement was also broken (it returned the wrong value)
(This used to be commit 342489a1d4d5cc4b16cf2e5ff7e671326f0cb3d5)

12 years agor10522: finally got the locking working on solaris10. This adds a read lock on
Andrew Tridgell [Tue, 27 Sep 2005 01:26:34 +0000 (01:26 +0000)]
r10522: finally got the locking working on solaris10. This adds a read lock on
the transaction lock in tdb_traverse_read(). This prevents a pattern
of locks which triggers the deadlock detection code in solaris10. I
suspect solaris10 is trying to prevent lock starvation by granting
locks in the order they were requested, which makes it much easier to
produce deadlocks.
(This used to be commit 54203aacd138c30826d54c5d9b6cc8d6e9e270f8)

12 years agor10521: Also check sys/socket.h for definition of socklen_t (needed for AIX)
Jelmer Vernooij [Tue, 27 Sep 2005 00:11:21 +0000 (00:11 +0000)]
r10521: Also check sys/socket.h for definition of socklen_t (needed for AIX)
(This used to be commit 42eb14060d53dbcbc381ecc781f121279190b08e)

12 years agor10520: The join is a nice quick RPC test.
Andrew Bartlett [Mon, 26 Sep 2005 22:27:44 +0000 (22:27 +0000)]
r10520: The join is a nice quick RPC test.

Andrew Bartlett
(This used to be commit d50b54309664454fa29249ec6ee8f02f9694478f)

12 years agor10517: Get rid of use of next_token() in lib/samba3/
Jelmer Vernooij [Mon, 26 Sep 2005 18:16:38 +0000 (18:16 +0000)]
r10517: Get rid of use of next_token() in lib/samba3/
(This used to be commit 811a6e28cca1ba09a95a89c344f4640b3d1dd74e)

12 years agor10516: Add seperator argument to str_list_{make,join}_shell()
Jelmer Vernooij [Mon, 26 Sep 2005 18:16:23 +0000 (18:16 +0000)]
r10516: Add seperator argument to str_list_{make,join}_shell()
(This used to be commit 0a5c9197f28e5451406d422e0a8ff84c1b20faae)

12 years agor10515: Handle replacement of "domain logons" and "domain master" by "server role"
Jelmer Vernooij [Mon, 26 Sep 2005 18:15:24 +0000 (18:15 +0000)]
r10515: Handle replacement of "domain logons" and "domain master" by "server role"
(This used to be commit c5e3a1c55d9e21f9ee618169dc05c69ee9c9c5b1)

12 years agor10514: Add str_list_make_shell() and str_list_join_shell()
Jelmer Vernooij [Mon, 26 Sep 2005 17:42:12 +0000 (17:42 +0000)]
r10514: Add str_list_make_shell() and str_list_join_shell()
(This used to be commit 8b86a5da73d38764deb8c1f639322b2911736f97)

12 years agor10513: Reduce some use of pstring. The main reason some parts of the code still
Jelmer Vernooij [Mon, 26 Sep 2005 16:57:08 +0000 (16:57 +0000)]
r10513: Reduce some use of pstring. The main reason some parts of the code still
use pstring is next_token() now.
(This used to be commit a5b88bcd420eb7ae42283293541519e142be36e3)

12 years agor10510: Decrease the amount of data included by includes.h a bit
Jelmer Vernooij [Mon, 26 Sep 2005 15:59:43 +0000 (15:59 +0000)]
r10510: Decrease the amount of data included by includes.h a bit
(This used to be commit 03647e1321cf6c9bd6ced3945265f635e9468973)

12 years agor10509: Some more sconscript fixes. Now getting to link stage for smbclient
Jelmer Vernooij [Mon, 26 Sep 2005 15:15:50 +0000 (15:15 +0000)]
r10509: Some more sconscript fixes. Now getting to link stage for smbclient
(This used to be commit 6df956edbab7ad5e72b2f20e74ab0f0d62528932)

12 years agor10508: - implement WINBINDD_NETBIOS_NAME, WINBINDD_DOMAIN_NAME and WINBINDD_INFO
Stefan Metzmacher [Mon, 26 Sep 2005 13:42:42 +0000 (13:42 +0000)]
r10508: - implement WINBINDD_NETBIOS_NAME, WINBINDD_DOMAIN_NAME and WINBINDD_INFO

is there a way to test this calls?

vl: please review this

metze
(This used to be commit 85d4565fce0fcd6abad5fb11246d2671675ee37d)

12 years agor10507: Let lib/replace take care of defining socklen_t for heimdal
Jelmer Vernooij [Mon, 26 Sep 2005 13:12:02 +0000 (13:12 +0000)]
r10507: Let lib/replace take care of defining socklen_t for heimdal
(This used to be commit fe4ff2d241691bece7f9c8fc766f57a14fe856bb)

12 years agor10506: set return data correctly
Stefan Metzmacher [Mon, 26 Sep 2005 13:02:47 +0000 (13:02 +0000)]
r10506: set return data correctly

metze
(This used to be commit 37b5f6b41719048fbc0530eed942caebe9e520a9)

12 years agor10504: - seperate implementation specific stuff, from the generic composite
Stefan Metzmacher [Mon, 26 Sep 2005 11:47:55 +0000 (11:47 +0000)]
r10504: - seperate implementation specific stuff, from the generic composite
  stuff.
- don't use SMBCLI_REQUEST_* state's in the genreic composite stuff
- move monitor_fn to libnet.

NOTE: I have maybe found some bugs, in code that is dirrectly in DONE or ERROR
      state in the _send() function. I haven't fixed this bugs in this
      commit! We may need some composite_trigger_*() functions or so.
      And maybe some other generic helper functions...

metze
(This used to be commit 4527815a0a9b96e460f301cb1f0c0b3964c166fc)

12 years agor10500: More progress to getting ldb tools building. Create a list of ldb modules
Tim Potter [Mon, 26 Sep 2005 07:36:26 +0000 (07:36 +0000)]
r10500: More progress to getting ldb tools building.  Create a list of ldb modules
to link in.  There's still a whole lot of random other junk (dcerpc, gensec,
ndr stuff, lp_foo - what a mess).
(This used to be commit b78cf1270bd7eda1aa84d238136a83e64ff3c088)

12 years agor10499: Export cli_ldap library.
Tim Potter [Mon, 26 Sep 2005 07:34:09 +0000 (07:34 +0000)]
r10499: Export cli_ldap library.
(This used to be commit 3c9c3a52e3999f15df747bbd69479896bbec3a6b)

12 years agor10498: Detect some more networking headers.
Tim Potter [Mon, 26 Sep 2005 07:33:55 +0000 (07:33 +0000)]
r10498: Detect some more networking headers.

Hardcode value of RETSIGTYPE for now.

Diddle with order of including SConscript files to make ldb happier.
(This used to be commit 256f8f7a3846c8d069dd972c8623113d02a1f474)

12 years agor10497: Export the list of dsdb ldb modules.
Tim Potter [Mon, 26 Sep 2005 07:32:14 +0000 (07:32 +0000)]
r10497: Export the list of dsdb ldb modules.
(This used to be commit e88f5f423fcb2d603508f1529fce5738d03cc41b)

12 years agor10496: - added configure test for sys/time.h
Andrew Tridgell [Mon, 26 Sep 2005 02:03:06 +0000 (02:03 +0000)]
r10496: - added configure test for sys/time.h

- print length of failed locks
(This used to be commit 11739ad31d7b3e1cf94ebf395608647e341257c4)

12 years agor10495: older redhat boxes need sys/time.h for select()
Andrew Tridgell [Mon, 26 Sep 2005 01:46:02 +0000 (01:46 +0000)]
r10495: older redhat boxes need sys/time.h for select()
(This used to be commit a11762e7bc139b0280e457e682722d955b81d8e5)

12 years agor10494: - don't generate a tdb log message for any type of failed lock probe
Andrew Tridgell [Mon, 26 Sep 2005 01:37:46 +0000 (01:37 +0000)]
r10494: - don't generate a tdb log message for any type of failed lock probe

- if the lock upgrade loop ever fails then log a warning
(This used to be commit 1b03c4e6c7e89452a835ef5ff39c07f58b715a22)

12 years agor10493: we need sys/select.h to enable select() in the solaris workaround
Andrew Tridgell [Mon, 26 Sep 2005 01:28:49 +0000 (01:28 +0000)]
r10493: we need sys/select.h to enable select() in the solaris workaround
(This used to be commit 144cc3da5eadf0dcb28ef722feeed813c033e08a)

12 years agor10492: work around a bug in solaris which cases lock upgrades to fail with
Andrew Tridgell [Mon, 26 Sep 2005 01:12:12 +0000 (01:12 +0000)]
r10492: work around a bug in solaris which cases lock upgrades to fail with
EDEADLK even when progress can be made. This is not a good solution,
but I can't find anything better.
(This used to be commit 980dd17f7d0a622cd772afc9ba15e50007ad9c6e)

12 years agor10491: First step towards wbinfo -t: This issues a name request for the primary
Volker Lendecke [Sun, 25 Sep 2005 21:01:56 +0000 (21:01 +0000)]
r10491: First step towards wbinfo -t: This issues a name request for the primary
domain and gets the DC's name via a mailslot call.

Metze, I renamed wbsrv_queue_reply to wbsrv_send_reply in accordance with
irpc_send_reply. Having _queue_ here and _send_ there is a bit confusing. And
as everything is async anyway, the semantics should not be too much of a
problem.

Volker
(This used to be commit 4637964b19c6e9f7d201b287e2d409d029fced01)

12 years agor10490: - allow deferred irpc replies to set the status
Andrew Tridgell [Sun, 25 Sep 2005 13:17:03 +0000 (13:17 +0000)]
r10490: - allow deferred irpc replies to set the status

- add an example of deferred reply for echodata in LOCAL-IRPC
(This used to be commit 858a757a6d0a614b8f13bfb6217034e8a8b69554)

12 years agor10489: added the ability for irpc server to defer replies instead of replying
Andrew Tridgell [Sun, 25 Sep 2005 13:01:26 +0000 (13:01 +0000)]
r10489: added the ability for irpc server to defer replies instead of replying
immediately. They set m->defer_reply = True;
(This used to be commit 3dcd800a5d3340d0f4855f9f08e73896ad8c3d83)

12 years agor10488: (Missing file from previous commit, adding a new RPC-JOIN test)
Andrew Bartlett [Sun, 25 Sep 2005 12:38:07 +0000 (12:38 +0000)]
r10488: (Missing file from previous commit, adding a new RPC-JOIN test)

This is a merge of Brad Henry's 'net join' rework, to better perform
an ADS join, particularly as a DC.  This represents the bulk of his
Google SOC work, and I'm very pleased to intergrate it into the tree.
(Metze will intergrate the DRSUAPI work later).

Both metze and myself have also put a lot of time into this patch, and
in mentoring Brad in general.  In return, Brad has been a very good
student, and has taken the comments well.

Since it's last appearance on samba-technical@, I have made
correctness and valgrind fixups, as well as adding a new 'BINDING'
mode to the libnet_rpc routines.  This allows the exact binding string
to be passed down from the torture code, including options and exact
target host.
(This used to be commit ab20533e7db9e64c8fb5e7f971ab5d3a040e00ab)

12 years agor10487: Some small updates to the manpage.
Jelmer Vernooij [Sun, 25 Sep 2005 12:27:36 +0000 (12:27 +0000)]
r10487: Some small updates to the manpage.
(This used to be commit b9adbb5eb2687c1778234c18f95f59c8d7e4f875)

12 years agor10486: This is a merge of Brad Henry's 'net join' rework, to better perform
Andrew Bartlett [Sun, 25 Sep 2005 12:26:07 +0000 (12:26 +0000)]
r10486: This is a merge of Brad Henry's 'net join' rework, to better perform
an ADS join, particularly as a DC.  This represents the bulk of his
Google SOC work, and I'm very pleased to intergrate it into the tree.
(Metze will intergrate the DRSUAPI work later).

Both metze and myself have also put a lot of time into this patch, and
in mentoring Brad in general.  In return, Brad has been a very good
student, and has taken the comments well.

Since it's last appearance on samba-technical@, I have made
correctness and valgrind fixups, as well as adding a new 'BINDING'
mode to the libnet_rpc routines.  This allows the exact binding string
to be passed down from the torture code, including options and exact
target host.

Andrew Bartlett
(This used to be commit d6fa105fdabbeb83a9b0e50dad49d1649afdb2a4)

12 years agor10485: run autoheader before autoconf
Andrew Tridgell [Sun, 25 Sep 2005 00:14:45 +0000 (00:14 +0000)]
r10485: run autoheader before autoconf
(This used to be commit 9456ed3db3b28e4a467e8685f2f1285cf57ce14b)