samba.git
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)

16 years agor15760: - add RAW_READ_SMB2 => generic mapping
Stefan Metzmacher [Sat, 20 May 2006 19:03:06 +0000 (19:03 +0000)]
r15760: - add RAW_READ_SMB2 => generic mapping
- Implement SMB2 Read

metze
(This used to be commit d0ac0c5af44ba5aa8b18106c2ac26c0d194e59b4)

16 years agor15759: samba4 currently only supports read sizes up to with UINT16_MAX
Stefan Metzmacher [Sat, 20 May 2006 19:00:53 +0000 (19:00 +0000)]
r15759: samba4 currently only supports read sizes up to with UINT16_MAX

metze
(This used to be commit 05ced31cb91eb1f170cb87d6964cf65daba43493)

16 years agor15758: - handle RAW_FLUSH_SMB2 in the posix ntvfs backend
Stefan Metzmacher [Sat, 20 May 2006 18:57:32 +0000 (18:57 +0000)]
r15758: - handle RAW_FLUSH_SMB2 in the posix ntvfs backend
- Implement SMB2 Flush

metze
(This used to be commit 41d87ebe355cd34d35a93d1e90cd2680363cb5d3)

16 years agor15757: - add RAW_WRITE_SMB2 => generic mapping
Stefan Metzmacher [Sat, 20 May 2006 18:56:08 +0000 (18:56 +0000)]
r15757: - add RAW_WRITE_SMB2 => generic mapping
- implement SMB2 Write

metze
(This used to be commit 5ab6f304f8b91c0362fd57429cc24126b241bd51)

16 years agor15756: handle RAW_OPEN_SMB2
Stefan Metzmacher [Sat, 20 May 2006 18:34:59 +0000 (18:34 +0000)]
r15756: handle RAW_OPEN_SMB2

metze
(This used to be commit 8aebd7adc9a0288ebf6b8d84fc376d699054a520)

16 years agor15754: - implement SMB2 Close
Stefan Metzmacher [Sat, 20 May 2006 17:20:34 +0000 (17:20 +0000)]
r15754: - implement SMB2 Close
- add RAW_CLOSE_SMB2 generic mapping

metze
(This used to be commit 41bc3cfc822bfc2fe4413f93a180fc4507005282)

16 years agor15753: implement SMB2 Create
Stefan Metzmacher [Sat, 20 May 2006 17:06:28 +0000 (17:06 +0000)]
r15753: implement SMB2 Create

metze
(This used to be commit 65b67a8af6b661fe6eeabf45563c6aba12a6660a)

16 years agor15752: - add generic mapping for RAW_OPEN_SMB2
Stefan Metzmacher [Sat, 20 May 2006 16:53:44 +0000 (16:53 +0000)]
r15752: - add generic mapping for RAW_OPEN_SMB2

metze
(This used to be commit d26144f9575f1e53bfb837024d964a3324d38728)

16 years agor15751: thanks to talloc_get_type() I noticed that I used smbsrv_request in the smb2s...
Stefan Metzmacher [Sat, 20 May 2006 16:48:29 +0000 (16:48 +0000)]
r15751: thanks to talloc_get_type() I noticed that I used smbsrv_request in the smb2srv code

metze
(This used to be commit 6c304a1a5f5dc6b2d3774682303874444a59b07d)

16 years agor15750: don't clear after setting
Stefan Metzmacher [Sat, 20 May 2006 16:10:22 +0000 (16:10 +0000)]
r15750: don't clear after setting

metze
(This used to be commit 0e23d2a45a4507051bb3453387b82e7a9f4433ea)

16 years agor15749: - pass in a dummy oplock callback
Stefan Metzmacher [Sat, 20 May 2006 12:54:55 +0000 (12:54 +0000)]
r15749: - pass in a dummy oplock callback
- pass in SMB2 ntvfs_handle callbacks

metze
(This used to be commit 338aee88d4ba3b25b473a456e55dd7ff5c1a4c5d)

16 years agor15748: - implement SMB2 TreeConnect server code
Stefan Metzmacher [Sat, 20 May 2006 12:25:45 +0000 (12:25 +0000)]
r15748: - implement SMB2 TreeConnect server code

TODO: pass in oplock and handle callbacks, but as we don't do file access
      yet, it's no problem to skip them

metze
(This used to be commit 4ae4a742fc2e40b2937d9ce01f2e45f43f7ff1c3)

16 years agor15747: move some functions to the protocol independend part of the
Stefan Metzmacher [Sat, 20 May 2006 12:15:05 +0000 (12:15 +0000)]
r15747: move some functions to the protocol independend part of the
smb server

metze
(This used to be commit 79af05551fe5f7b364c9f515ba4db54dd72907f8)

16 years agor15746: - reorder elements of smb2srv_request
Stefan Metzmacher [Sat, 20 May 2006 12:11:46 +0000 (12:11 +0000)]
r15746: - reorder elements of smb2srv_request
- move SMB2 specific elements to the end

metze
(This used to be commit 7d2087bd1b5036f79e205d6e17f2bca78576299e)

16 years agor15745: - reorder the elements of smbsrv_request
Stefan Metzmacher [Sat, 20 May 2006 12:08:27 +0000 (12:08 +0000)]
r15745: - reorder the elements of smbsrv_request
- move the SMB specific elements to the end

metze
(This used to be commit 0be887c7c6d318cb2990610f353e75b5f6d98c0c)

16 years agor15744: convert_string_talloc() handles src_len == 0 as error
Stefan Metzmacher [Sat, 20 May 2006 11:50:10 +0000 (11:50 +0000)]
r15744: convert_string_talloc() handles src_len == 0 as error

but it's valid in this case

metze
(This used to be commit 92c19b1ba4e89bd1e973e084b254087c98ceac18)

16 years agor15743: use union smb_tcon
Stefan Metzmacher [Sat, 20 May 2006 11:03:51 +0000 (11:03 +0000)]
r15743: use union smb_tcon

metze
(This used to be commit 012a08cfb9d550a47bed49b18335a038ae19605c)

16 years agor15742: use union smb_sessetup
Stefan Metzmacher [Sat, 20 May 2006 10:59:26 +0000 (10:59 +0000)]
r15742: use union smb_sessetup

metze
(This used to be commit de7e856a464c1c986be3687a7b97527b734240ce)

16 years agor15741: move smb2 request structures into the main smb request structs
Stefan Metzmacher [Sat, 20 May 2006 10:46:38 +0000 (10:46 +0000)]
r15741: move smb2 request structures into the main smb request structs
as new levels

metze
(This used to be commit 91806353174704857dfcc15a730af7232cfde660)

16 years agor15740: add TODO, that we should check if the server supports
Stefan Metzmacher [Sat, 20 May 2006 10:40:10 +0000 (10:40 +0000)]
r15740: add TODO, that we should check if the server supports
large offsets, before sending large offset requests

metze
(This used to be commit b9ba2b8c5a314ba9e559e50bea4deb692dc0f3ec)