ira/wip.git
16 years agor15912: Run an rpc request with an invalid uid and make sure NT_STATUS_INVALID_HANDLE
Volker Lendecke [Sat, 27 May 2006 21:39:56 +0000 (21:39 +0000)]
r15912: Run an rpc request with an invalid uid and make sure NT_STATUS_INVALID_HANDLE
is returned.

Volker
(This used to be commit 0ef6ecda1dd009174c2c684a1dd3adabf4772daf)

16 years agor15908: Mention ncalrpc in smbtorture help output
Jelmer Vernooij [Sat, 27 May 2006 12:16:48 +0000 (12:16 +0000)]
r15908: Mention ncalrpc in smbtorture help output
Update smbtorture manpage with binding string format explanation
(This used to be commit 37f6dc130e697c840676c96aadc295bcde6a0bca)

16 years agor15907: Add simple manpage for gwsvcctl
Jelmer Vernooij [Sat, 27 May 2006 12:10:24 +0000 (12:10 +0000)]
r15907: Add simple manpage for gwsvcctl
(This used to be commit e9314ceb2026041b7b01cb2b73e125ba64590932)

16 years agor15902: more test code that should be using d_printf()
Andrew Tridgell [Fri, 26 May 2006 05:58:23 +0000 (05:58 +0000)]
r15902: more test code that should be using d_printf()
(This used to be commit b52adaa04564afb7133f442b6f997d99b74dcaa3)

16 years agor15898: use d_printf() in some more places to fix more torture seg faults on
Andrew Tridgell [Fri, 26 May 2006 04:35:37 +0000 (04:35 +0000)]
r15898: use d_printf() in some more places to fix more torture seg faults on
solaris
(This used to be commit dd1ef82560c62c8c10e9d43b8d1d68512fe0aae5)

16 years agor15897: switch to d_printf() in the libnet_share test, and neaten up the code
Andrew Tridgell [Fri, 26 May 2006 02:25:53 +0000 (02:25 +0000)]
r15897: switch to d_printf() in the libnet_share test, and neaten up the code
a bit using local variables. This should fix a crash on solaris.
(This used to be commit c088654e34caf99569f25899733dac9a42197990)

16 years agor15896: we're getting a lot of crashes on the build farm due to people
Andrew Tridgell [Fri, 26 May 2006 02:25:00 +0000 (02:25 +0000)]
r15896: we're getting a lot of crashes on the build farm due to people
assuming that printf("%s", NULL) is OK. The problem is that it is ok
with recent versions of glibc, so the bug isn't noticed by most
developers.

This configure change ensures that we replace snprintf() if it doesn't
handle NULL strings. Then we just need to make sure we use d_printf()
instead of printf() in torture tests to display possibly NULL strings.
(This used to be commit dcce824080f3437c835b32381b73380fab720554)

16 years agor15893: Update TODO
Jelmer Vernooij [Thu, 25 May 2006 21:04:29 +0000 (21:04 +0000)]
r15893: Update TODO
(This used to be commit 446c4a175f1ce925a4882c32b189ac9237ed584b)

16 years agor15892: Remove the COM management code - DCOM should be
Jelmer Vernooij [Thu, 25 May 2006 19:34:05 +0000 (19:34 +0000)]
r15892: Remove the COM management code - DCOM should be
based on Mono and its' COM support and utilize Samba's DCE/RPC + ORPC code
instead of having our own COM implementation in Samba, which is too much
work to implement and harder to code (C).

This only removes some of the code that I started working on to implement
the bits of COM I thought were needed to support DCOM from just Samba. This
code has never functioned properly, contains a couple of nasty hacks and
there should be no reason to pick it up again later, the processes are all
documented in the DCOM whitepaper.

This does NOT remove the marshalling code for the ORPC code or the torture
code that tested some of the ORPC code.
(This used to be commit 11df14219bf0b35329b293cae3234e064aabde54)

16 years agor15883: Make sure timegm() prototype is available (on systems where we've had to
Jim McDonough [Thu, 25 May 2006 15:12:23 +0000 (15:12 +0000)]
r15883: Make sure timegm() prototype is available (on systems where we've had to
replace it)
(This used to be commit eef117e4454ed5faeddfc0b18bd4f0128c922f36)

16 years agor15882: I forgot to add in this prototype for strtok_r()
Andrew Tridgell [Thu, 25 May 2006 13:23:24 +0000 (13:23 +0000)]
r15882: I forgot to add in this prototype for strtok_r()
(This used to be commit 971cead2ad66fca55a32639090d97b8186c1dae7)

16 years agor15881: fixed the RAW-ACLS test for 64 bit systems (was failing on ppc64)
Andrew Tridgell [Thu, 25 May 2006 07:14:33 +0000 (07:14 +0000)]
r15881: fixed the RAW-ACLS test for 64 bit systems (was failing on ppc64)
(This used to be commit c954a6662de70fb36772e85b96aecf64761a66aa)

16 years agor15880: the ntvfs_handle changes broke rpc on big-endian boxes, as the
Andrew Tridgell [Thu, 25 May 2006 04:46:38 +0000 (04:46 +0000)]
r15880: the ntvfs_handle changes broke rpc on big-endian boxes, as the
uint16_t fnum was being byte order converted twice in the ipc server.

Metze, can you have a look at this? This change does make rpc work
again, but perhaps you might like to approach it differently
(This used to be commit 50246e6282087fdf7050ea052ad516dc620d6c7e)

16 years agor15879: strtok_r() replacement, for solaris
Andrew Tridgell [Thu, 25 May 2006 02:09:00 +0000 (02:09 +0000)]
r15879: strtok_r() replacement, for solaris
(This used to be commit df5bd916db3cfbd6c145177fd8992261f03a5cbc)

16 years agor15878: Add explicit initialization to make the IBM checker happy.
Jelmer Vernooij [Wed, 24 May 2006 23:09:29 +0000 (23:09 +0000)]
r15878: Add explicit initialization to make the IBM checker happy.
(This used to be commit 3a5d3eb62c61d264fb583d2c94e3b3446988051b)

16 years agor15877: Fix error message - caught by the IBM checker
Jelmer Vernooij [Wed, 24 May 2006 22:57:14 +0000 (22:57 +0000)]
r15877: Fix error message - caught by the IBM checker
(This used to be commit dd0b912fdd107817273391cab223304f0399c3b5)

16 years agor15876: Fix build on IPv6-less systems.
Jelmer Vernooij [Wed, 24 May 2006 22:17:01 +0000 (22:17 +0000)]
r15876: Fix build on IPv6-less systems.
(This used to be commit 180925659fad50ff82693284587ae4e735458c6b)

16 years agor15875: Fix bug in smbclients 'put' command tridge found a while ago. Add tests
Jelmer Vernooij [Wed, 24 May 2006 22:15:03 +0000 (22:15 +0000)]
r15875: Fix bug in smbclients 'put' command tridge found a while ago. Add tests
for 'put' and 'get' commands so we don't break them again.

Fixes #3742
(This used to be commit 141600a624ca90374c2f306139015f8c7487cc0f)

16 years agor15871: Fix systems with native iconv
Jelmer Vernooij [Wed, 24 May 2006 18:23:57 +0000 (18:23 +0000)]
r15871: Fix systems with native iconv
(This used to be commit 8ce292bdf3589e5d054bf9a534846c29dfc71124)

16 years agor15870: Improve detection of iconv - should prevent HAVE_ICONV_H being
Jelmer Vernooij [Wed, 24 May 2006 17:57:54 +0000 (17:57 +0000)]
r15870: Improve detection of iconv - should prevent HAVE_ICONV_H being
defined when the installed iconv library doesn't match our criteria as
well as some other minor fixes.
(This used to be commit 7937932615434a59c84d8a1b81e368f6a5f8e429)

16 years agor15869: Fix loop var to search paths for iconv
Jim McDonough [Wed, 24 May 2006 17:47:40 +0000 (17:47 +0000)]
r15869: Fix loop var to search paths for iconv
(This used to be commit 55843863ff1f92be9918c845e208a30660ed2ae5)

16 years agor15868: Add replacement macro for __STRING()
Jelmer Vernooij [Wed, 24 May 2006 17:21:37 +0000 (17:21 +0000)]
r15868: Add replacement macro for __STRING()
(This used to be commit 3780e0580b7173f20fed550db3412ab3b3b12fbf)

16 years agor15865: using dirname for a variable isn't that good,
Stefan Metzmacher [Wed, 24 May 2006 14:45:07 +0000 (14:45 +0000)]
r15865: using dirname for a variable isn't that good,
but making it a global symbol is really bad...

fix linking on sun1 in the build-farm

metze
(This used to be commit d073320f642ceeb49b11060aa958608248f3aff5)

16 years agor15862: add a LOCAL-EVENT torture test
Stefan Metzmacher [Wed, 24 May 2006 14:19:34 +0000 (14:19 +0000)]
r15862: add a LOCAL-EVENT torture test

- it currently tests the standard events code
- with epoll enabled and disabled

metze
(This used to be commit ce5fd2293d5ce1f6a54048bc5662706943c98eb5)

16 years agor15859: fixed a crash bug in the ldb password_hash module. This one is quite
Andrew Tridgell [Wed, 24 May 2006 12:33:06 +0000 (12:33 +0000)]
r15859: fixed a crash bug in the ldb password_hash module. This one is quite
sublte - please have a look at the change if you are not certain you
know the semantics of constant arrays declared on the stack (they must
be static if you return them from the function)
(This used to be commit 1848078fee2041195e3d65fcc090d7b6330b8ea0)

16 years agor15858: - initialize s->r.out
Stefan Metzmacher [Wed, 24 May 2006 11:46:19 +0000 (11:46 +0000)]
r15858: - initialize s->r.out
- don't check for mem_ctx, ctx and r, we should crash when they're wrong
  as it's a programmer error!
- pass the error string to the caller

metze
(This used to be commit 5f65447f5dfafa6771a532c86fe2f87287c5467d)

16 years agor15857: don't clear the error string after setting it
Stefan Metzmacher [Wed, 24 May 2006 11:32:17 +0000 (11:32 +0000)]
r15857: don't clear the error string after setting it

metze
(This used to be commit d273d8ae52255170932405f488876510e02f5813)

16 years agor15856: fixed talloc_asprintf_append() on solaris
Andrew Tridgell [Wed, 24 May 2006 07:45:19 +0000 (07:45 +0000)]
r15856: fixed talloc_asprintf_append() on solaris
(This used to be commit bba33a976b1954b5e9e557c9323afc92616439a3)

16 years agor15855: more talloc_set_destructor() typesafe fixes. nearly done ...
Andrew Tridgell [Wed, 24 May 2006 07:35:06 +0000 (07:35 +0000)]
r15855: more talloc_set_destructor() typesafe fixes. nearly done ...
(This used to be commit 396d82a231b6e3a91178db08b706626d4d4b420c)

16 years agor15854: more talloc_set_destructor() typesafe fixes
Andrew Tridgell [Wed, 24 May 2006 07:34:11 +0000 (07:34 +0000)]
r15854: more talloc_set_destructor() typesafe fixes
(This used to be commit 61c6100617589ac6df4f527877241464cacbf8b3)

16 years agor15853: started the process of removing the warnings now that
Andrew Tridgell [Wed, 24 May 2006 07:32:17 +0000 (07:32 +0000)]
r15853: started the process of removing the warnings now that
talloc_set_destructor() is type safe. The end result will be lots less
use of void*, and less calls to talloc_get_type()
(This used to be commit 6b4c085b862c0932b80b93e316396a53b993544c)

16 years agor15852: patch from Rusty to make talloc_set_destructor() and talloc_steal()
Andrew Tridgell [Wed, 24 May 2006 07:31:02 +0000 (07:31 +0000)]
r15852: patch from Rusty to make talloc_set_destructor() and talloc_steal()
type safe. This only works on recent gcc versions. With other
compilers it reverts to a non-typesafe cast

The patch also ensures that talloc_free() does not change error on
systems where free() can change errno
(This used to be commit babbff5f777642f559747f6d0697bc7c3a5e798d)

16 years agor15851: the conversion of loadparm to BOOL broke all big-endian platforms as
Andrew Tridgell [Wed, 24 May 2006 06:36:17 +0000 (06:36 +0000)]
r15851: the conversion of loadparm to BOOL broke all big-endian platforms as
the service and global declarations were left as int. I tried to fix
this initially by fixing the service declarations, but it didn't
work. While I investigate why, this patch at least gets the use of int
right, and should give big-endian platforms a chance
(This used to be commit e12ae809eaf0a4c48ebb086615a9051b59996b5a)

16 years agor15850: another spot where r->out.error_string can be uninitialied
Andrew Tridgell [Wed, 24 May 2006 05:18:55 +0000 (05:18 +0000)]
r15850: another spot where r->out.error_string can be uninitialied
(This used to be commit 4898b29c32737b2cf425d5822da2f395f70ca6e2)

16 years agor15849: ensure we don't try to talloc_steal() an invalid error_string in
Andrew Tridgell [Wed, 24 May 2006 05:17:03 +0000 (05:17 +0000)]
r15849: ensure we don't try to talloc_steal() an invalid error_string in
r->out on error
(This used to be commit 1d1d2aaeae643e01bfd51d69cba741557543e5bb)

16 years agor15847: We probably want to keep the global init
Simo Sorce [Tue, 23 May 2006 23:59:26 +0000 (23:59 +0000)]
r15847: We probably want to keep the global init
(This used to be commit 35df457fe61e1b1f0746eadba867f7ac149e9600)

16 years agor15846: An async version of ldbsearch
Simo Sorce [Tue, 23 May 2006 23:52:05 +0000 (23:52 +0000)]
r15846: An async version of ldbsearch
(This used to be commit 2c1af6556a2d57df6626a9f0d9fd758602ac3c5c)

16 years agor15836: Test an invalid DOS share mode.
Volker Lendecke [Tue, 23 May 2006 10:45:20 +0000 (10:45 +0000)]
r15836: Test an invalid DOS share mode.

Volker
(This used to be commit 0369d59142c6015f62bf50087f261c1e8430a8e2)

16 years agor15835: fixed locking in the client library
Andrew Tridgell [Tue, 23 May 2006 09:27:58 +0000 (09:27 +0000)]
r15835: fixed locking in the client library
(This used to be commit 7ea51fb624ded55f69f235a6791de871f754e8fa)

16 years agor15834: fixed a memory leak in the session code
Andrew Tridgell [Tue, 23 May 2006 06:52:22 +0000 (06:52 +0000)]
r15834: fixed a memory leak in the session code
(This used to be commit 8a7047c102cdbcf746dcdf8a52554816b7770026)

16 years agor15833: fixed two delete on close memory leaks
Andrew Tridgell [Tue, 23 May 2006 06:19:35 +0000 (06:19 +0000)]
r15833: fixed two delete on close memory leaks
(This used to be commit f3274e8f78f28a51313e98934b208c2deb9ae9ea)

16 years agor15832: put a talloc leak report in the log file at the end of each test run
Andrew Tridgell [Tue, 23 May 2006 06:06:08 +0000 (06:06 +0000)]
r15832: put a talloc leak report in the log file at the end of each test run
(This used to be commit 16c67e135a35830aaa937c38fa2ed940decb5a17)

16 years agor15831: fixed a memory leak in the netlogon server
Andrew Tridgell [Tue, 23 May 2006 05:26:22 +0000 (05:26 +0000)]
r15831: fixed a memory leak in the netlogon server
(This used to be commit c4425f8988186a18703b6a723b766bf13d59b727)

16 years agor15830: fixed two kdc memory leaks
Andrew Tridgell [Tue, 23 May 2006 05:14:06 +0000 (05:14 +0000)]
r15830: fixed two kdc memory leaks
(This used to be commit cc290ece92196d2bdf39eaa9d3bb4a0af6ec782c)

16 years agor15829: we need to include socket.h before we can use enum socket_type
Stefan Metzmacher [Tue, 23 May 2006 04:41:09 +0000 (04:41 +0000)]
r15829: we need to include socket.h before we can use enum socket_type
this fixes a compiler warning

metze
(This used to be commit dbf82fff10f1b5c3894b9600d98f81ee10e3d876)

16 years agor15828: a talloc steal optimisation spotted by metze
Andrew Tridgell [Tue, 23 May 2006 04:36:28 +0000 (04:36 +0000)]
r15828: a talloc steal optimisation spotted by metze
(This used to be commit e00ff9f35eed28aeecdc779cee06b87c34d82124)

16 years agor15827: fixed a spelling error
Andrew Tridgell [Tue, 23 May 2006 03:53:36 +0000 (03:53 +0000)]
r15827: fixed a spelling error
(This used to be commit 801357af2ef80fe270750c084a78142711ae9e6c)

16 years agor15826: ensure we don't dereference sec when NULL
Andrew Tridgell [Tue, 23 May 2006 03:53:23 +0000 (03:53 +0000)]
r15826: ensure we don't dereference sec when NULL
(This used to be commit b6bf6b17cd92a3869c49209bc8ea8ef8c6c25cdd)

16 years agor15825: there are quite subtle semantics with change notify events being sent
Andrew Tridgell [Tue, 23 May 2006 03:52:57 +0000 (03:52 +0000)]
r15825: there are quite subtle semantics with change notify events being sent
when a context (such as a tree connect) is destroyed. The behaviour
was changed by the ntvfs memory leak fix, and this patch is needed to
make it all work again.
(This used to be commit a7ad4df7cd6cdf88fd49698840a072a4474a318a)

16 years agor15824: fixed a subtle talloc bug to do with memory context loops. When you
Andrew Tridgell [Tue, 23 May 2006 03:51:44 +0000 (03:51 +0000)]
r15824: fixed a subtle talloc bug to do with memory context loops. When you
have a structure that references one of its parents, and a parent of
that parent is freed, then the whole structure should be freed, not
just the reference.

this was found by the change notify code, as a side effect of fixing
the memory leak yesterday
(This used to be commit 70531dcaeeb9314d410baa0d285df6a265311541)

16 years agor15821: Fix static library build.
Jelmer Vernooij [Mon, 22 May 2006 20:07:01 +0000 (20:07 +0000)]
r15821: Fix static library build.
(This used to be commit d9d8f93af12c08d3b66c0bec014016ea8ee11166)

16 years agor15820: this line was just for testing
Stefan Metzmacher [Mon, 22 May 2006 19:13:57 +0000 (19:13 +0000)]
r15820: this line was just for testing

metze
(This used to be commit 1a9bfa2ac96d09d34d3c974ec5d89dc23bf3e153)

16 years agor15819: Use updated API in smbtorture, use UI tools in registry tests.
Jelmer Vernooij [Mon, 22 May 2006 18:59:56 +0000 (18:59 +0000)]
r15819: Use updated API in smbtorture, use UI tools in registry tests.
(This used to be commit 4c452090fbcf9b17acd8473cf018b09f445009b2)

16 years agor15818: Improve UI utilities: allow format strings and add some convenience macros.
Jelmer Vernooij [Mon, 22 May 2006 18:59:29 +0000 (18:59 +0000)]
r15818: Improve UI utilities: allow format strings and add some convenience macros.
(This used to be commit f0a4547b76bdc04c4dd32fccbb1a37a040868588)

16 years agor15816: add SMB2-LOCK torture test, which demonstrates what possible valid and invalid
Stefan Metzmacher [Mon, 22 May 2006 17:42:14 +0000 (17:42 +0000)]
r15816: add SMB2-LOCK torture test, which demonstrates what possible valid and invalid
requests you can do with it

metze
(This used to be commit adef1372c118b6c116dfa976d0277be677118fd0)

16 years agor15815: add SMB2 Lock client code
Stefan Metzmacher [Mon, 22 May 2006 17:33:39 +0000 (17:33 +0000)]
r15815: add SMB2 Lock client code

metze
(This used to be commit 4a307d7185862675fee23f55d3f85950a76f551d)

16 years agor15814: add SMB2 Lock interface structure
Stefan Metzmacher [Mon, 22 May 2006 17:21:38 +0000 (17:21 +0000)]
r15814: add SMB2 Lock interface structure

metze
(This used to be commit 8f1850ef65dc8c860912639d787d82399d015f13)

16 years agor15813: Use labs() rather than abs() for 32-bit integers. Caught by the IBM checker.
Jelmer Vernooij [Mon, 22 May 2006 17:12:22 +0000 (17:12 +0000)]
r15813: Use labs() rather than abs() for 32-bit integers. Caught by the IBM checker.
(This used to be commit 6e37084965d17d1816256d8de326e2fc6c828e13)

16 years agor15812: Explicitly cast to unsigned int.
Jelmer Vernooij [Mon, 22 May 2006 16:57:14 +0000 (16:57 +0000)]
r15812: Explicitly cast to unsigned int.
(This used to be commit c910a3f9c8c657b290bc03a47a6b4cba20f02a55)

16 years agor15811: Fix mget command without arguments. Caught by the IBM Checker.
Jelmer Vernooij [Mon, 22 May 2006 16:40:54 +0000 (16:40 +0000)]
r15811: Fix mget command without arguments. Caught by the IBM Checker.
(This used to be commit c77fd9f515bee07e50cb6acfe02f9f5836f1a67a)

16 years agor15810: Fix uninitialized variable error, caught by the IBM checker.
Jelmer Vernooij [Mon, 22 May 2006 16:32:41 +0000 (16:32 +0000)]
r15810: Fix uninitialized variable error, caught by the IBM checker.
(This used to be commit 1354333fd192e83242e6618458704c1820efac49)

16 years agor15809: Fix typo in array offsets. Caught by the IBM checker.
Jelmer Vernooij [Mon, 22 May 2006 16:26:42 +0000 (16:26 +0000)]
r15809: Fix typo in array offsets. Caught by the IBM checker.
(This used to be commit fa23b09567637f2fd5c293a6ac623707a7ac1289)

16 years agor15808: Fix two uninitialized variables, caught by the IBM Checker.
Jelmer Vernooij [Mon, 22 May 2006 16:25:04 +0000 (16:25 +0000)]
r15808: Fix two uninitialized variables, caught by the IBM Checker.
(This used to be commit 673e101b0732f7601a92069159e4d1eac7790506)

16 years agor15807: Fix incorrect initialization. Very nice catch by the IBM Checker.
Jelmer Vernooij [Mon, 22 May 2006 16:22:38 +0000 (16:22 +0000)]
r15807: Fix incorrect initialization. Very nice catch by the IBM Checker.
(This used to be commit 2b65c490e40241fb4d4f938a867e33780295ad05)

16 years agor15806: Remove some unnecessary nesting making the function harder to read.
Jelmer Vernooij [Mon, 22 May 2006 16:21:52 +0000 (16:21 +0000)]
r15806: Remove some unnecessary nesting making the function harder to read.
(This used to be commit 2e1ce0189961335f654202074101819d8d933748)

16 years agor15805: Fix incompatible type assignment. Caught by the IBM checker.
Jelmer Vernooij [Mon, 22 May 2006 16:16:48 +0000 (16:16 +0000)]
r15805: Fix incompatible type assignment. Caught by the IBM checker.
(This used to be commit cef5cc6464001e1a1472e1029254c093942b6642)

16 years agor15804: Fix SAMLOGON test
Simo Sorce [Mon, 22 May 2006 15:17:12 +0000 (15:17 +0000)]
r15804: Fix SAMLOGON test
(This used to be commit 2e9a840bb975f3269de4ca299a3d6e5b19f3cad1)

16 years agor15803: the SMB2 server gives NT_STATUS_NOT_FOUND instead of NT_STATUS_INVALID_HANDLE
Stefan Metzmacher [Mon, 22 May 2006 14:18:17 +0000 (14:18 +0000)]
r15803: the SMB2 server gives NT_STATUS_NOT_FOUND instead of NT_STATUS_INVALID_HANDLE

metze
(This used to be commit aa98aad0975e59fc8cf56c624f728b33ab54e099)

16 years agor15802: merge tridge's fix to the SMB2 server
Stefan Metzmacher [Mon, 22 May 2006 14:14:23 +0000 (14:14 +0000)]
r15802: merge tridge's fix to the SMB2 server

metze
(This used to be commit 2ea15e9d28bca358989a565576ea7e8d9462e924)

16 years agor15799: fixed the problem with BASE-DISCONNECT after the recent memory leak
Andrew Tridgell [Mon, 22 May 2006 09:05:20 +0000 (09:05 +0000)]
r15799: fixed the problem with BASE-DISCONNECT after the recent memory leak
was fixed
(This used to be commit 09a9c7fdff8f3cc8d2a98228cede4f8af41a08eb)

16 years agor15798: shortcut the lookup of "localhost" in the ipv6 backend
Andrew Tridgell [Mon, 22 May 2006 09:02:16 +0000 (09:02 +0000)]
r15798: shortcut the lookup of "localhost" in the ipv6 backend
(This used to be commit dea82fa615e33115e42ef04c8d2a54788aa38e9a)

16 years agor15797: fixed a notify bug, where a notify_remove() is beyond the current max
Andrew Tridgell [Mon, 22 May 2006 06:18:40 +0000 (06:18 +0000)]
r15797: fixed a notify bug, where a notify_remove() is beyond the current max
depth
(This used to be commit 2ebcfcc6dadd4a420431c733bb12fe7719057fd6)

16 years agor15796: this talloc_reference() was causing a memory leak on every NTVFS
Andrew Tridgell [Mon, 22 May 2006 06:17:10 +0000 (06:17 +0000)]
r15796: this talloc_reference() was causing a memory leak on every NTVFS
request. The problem is that the talloc_free() in
smbsrv_send_reply_nosign() frees this reference, but doesn't free the
memory iself, thus leaving it attached to the connection context.

Metze, what was the idea behind this reference? If we need it, then we
need a corresponding talloc_free() to go with it.
(This used to be commit 2e105a32c78384b16a0e6a6dc8ff504593afef2e)

16 years agor15795: Try to use the async code by default
Simo Sorce [Mon, 22 May 2006 03:55:01 +0000 (03:55 +0000)]
r15795: Try to use the async code by default
It passess all my tests, but I still need to work on a lot of stuff.
Shouldn't impact anybody else work, so I want to commit now and see what happens

Will work to remove the old code from modules and backends soon, and make some
more restyling in ldb internals.

So, if there is something you don't like in this desgin please speak now.

Simo.
(This used to be commit 8b2a563e716a789ea77cbfbf2f372724de5361ce)

16 years agor15794: fixed a problem with DOS status codes - found by kukks (thanks!)
Andrew Tridgell [Mon, 22 May 2006 02:07:11 +0000 (02:07 +0000)]
r15794: fixed a problem with DOS status codes - found by kukks (thanks!)
(This used to be commit 1a57b16715bf8b82e8f9118c3ab401acf081d02c)

16 years agor15789: hmm, damn, testing uncovcer all your bugs :-)
Simo Sorce [Sun, 21 May 2006 23:58:09 +0000 (23:58 +0000)]
r15789: hmm, damn, testing uncovcer all your bugs :-)
(This used to be commit 977982c884da15d1e9f5fe19d24cd4169ecbb0c5)

16 years agor15788: Do not crash when no result is returned
Simo Sorce [Sun, 21 May 2006 23:57:19 +0000 (23:57 +0000)]
r15788: Do not crash when no result is returned
(This used to be commit efb7e39e512eb71deaeef1315bc88a902e5cd848)

16 years agor15787: NET-API-CREATEUSER was crashing for me because of this uninitialized value...
Simo Sorce [Sun, 21 May 2006 21:25:31 +0000 (21:25 +0000)]
r15787: NET-API-CREATEUSER was crashing for me because of this uninitialized value...
now it still does not work (auth failure ?!) but at least it does not crash
(This used to be commit 43d9bfeb22787a2d65ec00b948d51ad3321cd6fd)

16 years agor15786: another fix in rdn_name
Simo Sorce [Sun, 21 May 2006 21:24:11 +0000 (21:24 +0000)]
r15786: another fix in rdn_name
(This used to be commit 202ce2a947626f51467d5c87dfcdb73852282709)

16 years agor15785: Change the test names according to changes made in libnet torture test.
Rafal Szczesniak [Sun, 21 May 2006 21:19:34 +0000 (21:19 +0000)]
r15785: Change the test names according to changes made in libnet torture test.

rafal
(This used to be commit 857993bfe4179f88227bc1cc7e8a8df10bafb6c1)

16 years agor15784: Redesign of NET-API-RPCCONNECT tests to cover more cases of usage.
Rafal Szczesniak [Sun, 21 May 2006 21:18:35 +0000 (21:18 +0000)]
r15784: Redesign of NET-API-RPCCONNECT tests to cover more cases of usage.
Right now, each level of libnet_RpcConnect can be tested with
correct and incorrect credentials (testing against expected nt
status). Various transports can be tested on NET-API-RPCCONN-BIND
test which does testing on explicitly passed binding string.
Tested services include LSA, SAMR, SRVSVC at the moment.

rafal
(This used to be commit e64084a39dca99915a2b6bdab175e0f5fdd571b4)

16 years agor15783: Fix previous commit, was the wrong way to deal with the problem
Simo Sorce [Sun, 21 May 2006 20:21:34 +0000 (20:21 +0000)]
r15783: Fix previous commit, was the wrong way to deal with the problem
(This used to be commit 36537100db491012d8124f7aca266a8290f2eee6)

16 years agor15782: More fixes for async cases
Simo Sorce [Sun, 21 May 2006 20:06:01 +0000 (20:06 +0000)]
r15782: More fixes for async cases
(This used to be commit 3c9434e264710a1fa29adedbe571d5324ecae906)

16 years agor15780: Fix indentation of deferred code (fixed #3739)
Jelmer Vernooij [Sun, 21 May 2006 15:35:33 +0000 (15:35 +0000)]
r15780: Fix indentation of deferred code (fixed #3739)
(This used to be commit a7c9ec69b229db1b9c93b97133601231a2995c1b)

16 years agor15779: Remove keepref from atsvc and efs.
Jelmer Vernooij [Sun, 21 May 2006 15:02:01 +0000 (15:02 +0000)]
r15779: Remove keepref from atsvc and efs.
(This used to be commit b44a8c32d35bcd0dc7339793c34cb84dd6981366)

16 years agor15778: Fix bug printing ref pointers.
Jelmer Vernooij [Sun, 21 May 2006 15:01:47 +0000 (15:01 +0000)]
r15778: Fix bug printing ref pointers.
(This used to be commit 030272e79b621c2c54354f4c89cc25c202d2dbbc)

16 years agor15777: Fix unresolved symbols in shared library build.
Jelmer Vernooij [Sun, 21 May 2006 14:59:02 +0000 (14:59 +0000)]
r15777: Fix unresolved symbols in shared library build.
(This used to be commit 3fb9f07a7576c465853b03916cb7c0e87e68a276)

16 years agor15776: Don't generate ref pointers in Samba4-generated code. There is no point
Jelmer Vernooij [Sun, 21 May 2006 12:58:39 +0000 (12:58 +0000)]
r15776: Don't generate ref pointers in Samba4-generated code. There is no point
in having pointers for outgoing data when you can already modify the top-level
element.

This can be overridden (temporarily) by specifying the new "keepref"
attribute. Once we've removed keepref from all IDL files, I'll remove this
attribute as well.
(This used to be commit bdc6dd37503ced8322a671d225122ccffbb8bfec)

16 years agor15775: add some privilege related WERROR codes
Stefan Metzmacher [Sun, 21 May 2006 12:57:36 +0000 (12:57 +0000)]
r15775: add some privilege related WERROR codes

metze
(This used to be commit 4e8c9bbd768a0d3f8719d8f2005d9b1b527c44fd)

16 years agor15774: take care of the SYSTEM_SECURITY flag
Stefan Metzmacher [Sun, 21 May 2006 12:56:49 +0000 (12:56 +0000)]
r15774: take care of the SYSTEM_SECURITY flag

metze
(This used to be commit 98f58d710a4fe1cd3581b1fb25c4f0c0236b5092)

16 years agor15773: - implement srvsvc_NetGetFileSecurity() and srvsvc_NetSetFileSecurity()
Stefan Metzmacher [Sun, 21 May 2006 12:15:04 +0000 (12:15 +0000)]
r15773: - implement srvsvc_NetGetFileSecurity() and srvsvc_NetSetFileSecurity()
- we do this by just creating a ntvfs_context (this doesn't need and smbsrv_* stuff :-)
  and then call ntvfs_qpathinfo() and ntvfs_setpathinfo()

metze
(This used to be commit e1635ce5c07615eded6eac237cde3945a46ebbd9)

16 years agor15772: pass the messaging context and server_id to the dcerpc server subsystem
Stefan Metzmacher [Sun, 21 May 2006 11:39:50 +0000 (11:39 +0000)]
r15772: pass the messaging context and server_id to the dcerpc server subsystem

metze
(This used to be commit fb1debf219089188d1a8233ab3ff4ff314f7df0b)

16 years agor15771: this should be a o32s32 blob
Stefan Metzmacher [Sun, 21 May 2006 10:42:29 +0000 (10:42 +0000)]
r15771: this should be a o32s32 blob

metze
(This used to be commit fdfa6dcc97b6f7d61159497df2e214163d308649)

16 years agor15770: when there's a dynamic body, we need to send the first byte even if the
Stefan Metzmacher [Sun, 21 May 2006 10:13:49 +0000 (10:13 +0000)]
r15770: when there's a dynamic body, we need to send the first byte even if the
dynamic size if 0

metze
(This used to be commit c7e8e79d75fd53fa37e9220e5bc9cac7ab574ff6)

16 years agor15769: this functions belong to params/ so move it.
Stefan Metzmacher [Sun, 21 May 2006 10:06:15 +0000 (10:06 +0000)]
r15769: this functions belong to params/ so move it.

metze
(This used to be commit 9c4c40772bfd8a8324cd086c2234451d164be5d0)

16 years agor15768: make it possible that the caller of the ntvfs_subsystem doesn't
Stefan Metzmacher [Sun, 21 May 2006 08:29:56 +0000 (08:29 +0000)]
r15768: make it possible that the caller of the ntvfs_subsystem doesn't
provide handle callbacks

metze
(This used to be commit dfd07e6f890ebe11d77d39f65c3f6850c9b9c37e)

16 years agor15767: we need to free here
Stefan Metzmacher [Sun, 21 May 2006 08:24:11 +0000 (08:24 +0000)]
r15767: we need to free here

metze
(This used to be commit 98890052fec7ba4a8bf4e07a6b000d04d768f581)

16 years agor15766: fix parsing of srvsvc_NetGetFileSecurity() and srvsvc_NetSetFileSecurity()
Stefan Metzmacher [Sun, 21 May 2006 07:14:18 +0000 (07:14 +0000)]
r15766: fix parsing of srvsvc_NetGetFileSecurity() and srvsvc_NetSetFileSecurity()

metze
(This used to be commit dbcb144decd2ebd75dbad7509738074c1b0b5ec8)

16 years agor15762: It make no sense for rdn_name to implement modify, it will need to implement...
Simo Sorce [Sat, 20 May 2006 19:38:01 +0000 (19:38 +0000)]
r15762: It make no sense for rdn_name to implement modify, it will need to implement rename ...
(This used to be commit bf260f2a84f9c1f749798068168a22c86ab2e7b2)

16 years agor15761: Fix-as-you-go ...
Simo Sorce [Sat, 20 May 2006 19:37:21 +0000 (19:37 +0000)]
r15761: Fix-as-you-go ...
Testing various async paths and uncovering bugs
(This used to be commit 099d873ea596ece18efe63b06bc64e7f97a96f82)