samba.git
16 years agor15964: fix error handling in ldb_ildap backend
Stefan Metzmacher [Tue, 30 May 2006 19:41:29 +0000 (19:41 +0000)]
r15964: fix error handling in ldb_ildap backend

metze
(This used to be commit 54e5aeff87b859960dfc5e4b6e3ab026ce5470ff)

16 years agor15963: fix warnings
Stefan Metzmacher [Tue, 30 May 2006 19:09:34 +0000 (19:09 +0000)]
r15963: fix warnings

metze
(This used to be commit 11b49a440567eb3fa3391c15f5486c63141f1b97)

16 years agor15962: fix a crash when connect fails
Stefan Metzmacher [Tue, 30 May 2006 19:08:44 +0000 (19:08 +0000)]
r15962: fix a crash when connect fails

metze
(This used to be commit 0540a5f220bac6f9b9782c22e23a0b19f9aa86cb)

16 years agor15957: - add a test that fetches the schema from an windows LDAP server,
Stefan Metzmacher [Tue, 30 May 2006 17:57:35 +0000 (17:57 +0000)]
r15957: - add a test that fetches the schema from an windows LDAP server,
  and stores it into structures.
- this prints out some useful information on the screen about
  attributes (will be extended for objectClasses too)
- the plan is to create hide the relation of structures behind an interface
  we can later use this interface in a lot of places:
  - our schema module for ldb
  - the ndr_print code for DsGetNCChanges, to translate the uint32 attribute
    and objectClass id's into names, display attribute values depending on the
    attribute syntax
  - ...

metze
(This used to be commit 1908f0cd6230c22aabb0e1eab2f9d37d17f12f18)

16 years agor15956: fix warnings
Stefan Metzmacher [Tue, 30 May 2006 17:04:40 +0000 (17:04 +0000)]
r15956: fix warnings

metze
(This used to be commit e874a099667c7213cc8dda0a94bf749d7706fbb5)

16 years agor15955: fix whitespaces
Stefan Metzmacher [Tue, 30 May 2006 17:02:21 +0000 (17:02 +0000)]
r15955: fix whitespaces

metze
(This used to be commit a3d1ce6d3b8e771d28ab4418679b89a388579360)

16 years agor15953: our timegm() replacement still doesn't work, so grab the one from
Andrew Tridgell [Tue, 30 May 2006 05:57:43 +0000 (05:57 +0000)]
r15953: our timegm() replacement still doesn't work, so grab the one from
Heimdal which does work. This should fix most of the rest of the
failures on solaris
(This used to be commit acfaa98b5ea686feb81350baf09b3f4480f96edc)

16 years agor15950: another printf() crash on solaris
Andrew Tridgell [Tue, 30 May 2006 05:17:20 +0000 (05:17 +0000)]
r15950: another printf() crash on solaris
(This used to be commit 5a065b9225f7a7fe221c61e26a08abc0d29f3bb9)

16 years agor15947: Do the same test on setting allocation info.
Jeremy Allison [Tue, 30 May 2006 03:57:43 +0000 (03:57 +0000)]
r15947: Do the same test on setting allocation info.
Jeremy.
(This used to be commit b8f6f62acd2ae79c87303b72e8bea22abc3a6b6e)

16 years agor15946: Added check that proves that setpathinfo on an
Jeremy Allison [Tue, 30 May 2006 03:36:51 +0000 (03:36 +0000)]
r15946: Added check that proves that setpathinfo on an
oplocked open file generates a break.
Jeremy.
(This used to be commit 061b519b27cecbeb0687426201caaa7e8d95d856)

16 years agor15945: Check ltdb_modified results
Simo Sorce [Tue, 30 May 2006 01:46:14 +0000 (01:46 +0000)]
r15945: Check ltdb_modified results
(This used to be commit bbda863f0766e4f4100a644f9a1ddcd8e18d29cd)

16 years agor15944: rename LDB_ASYNC_ADD -> LDB_ADD, LDB_ASYNC_MODIFY -> LDB_MODIFY, etc...
Simo Sorce [Tue, 30 May 2006 00:33:52 +0000 (00:33 +0000)]
r15944: rename LDB_ASYNC_ADD -> LDB_ADD, LDB_ASYNC_MODIFY -> LDB_MODIFY, etc...
(This used to be commit 55d97ef88f377ef1dbf7b1774a15cf9035e2f320)

16 years agor15942: Remove the sync internal ldb calls altogether.
Simo Sorce [Mon, 29 May 2006 23:46:43 +0000 (23:46 +0000)]
r15942: Remove the sync internal ldb calls altogether.
This means that some modules have been disabled as well as they
have not been ported to the async interface

One of them is the ugly objectclass module.
I hope that the change in samldb module will make the MMC happy
without the need of this crappy module, we need proper handling
in a decent schema module.

proxy and ldb_map have also been disabled
ldb_sqlite3 need to be ported as well (currenlty just broken).
(This used to be commit 51083de795bdcbf649de926e86969adc20239b6d)

16 years agor15941: We don't use call levels, at the moment. Remove them until we do.
Rafal Szczesniak [Mon, 29 May 2006 22:01:31 +0000 (22:01 +0000)]
r15941: We don't use call levels, at the moment. Remove them until we do.

rafal
(This used to be commit 592387a769521d221a89d374ef72c6123160cfed)

16 years agor15940: Add new field to pass username to libnet_rpc_userinfo function.
Rafal Szczesniak [Mon, 29 May 2006 22:00:46 +0000 (22:00 +0000)]
r15940: Add new field to pass username to libnet_rpc_userinfo function.

rafal
(This used to be commit 16b4b4dbb7aa1a239e680457d3cb4e3db3d38dc7)

16 years agor15939: Add tests for userinfo call with username argument provided
Rafal Szczesniak [Mon, 29 May 2006 21:59:55 +0000 (21:59 +0000)]
r15939: Add tests for userinfo call with username argument provided
which enables optional stage resolving username to a rid.

rafal
(This used to be commit f57a8ace6f55174a30f42a7c2cb01d6917c07be7)

16 years agor15938: Extend userinfo call with one optional stage - lookup for
Rafal Szczesniak [Mon, 29 May 2006 21:58:53 +0000 (21:58 +0000)]
r15938: Extend userinfo call with one optional stage - lookup for
username to resolve it to a rid, when a sid argument is not
explicitly provided.

rafal
(This used to be commit 9bc4ef267c3d6720422e2a2f7f2c1572ba694d2d)

16 years agor15937: Currently, we don't use nor support distinguished call levels, so remove
Rafal Szczesniak [Mon, 29 May 2006 21:53:59 +0000 (21:53 +0000)]
r15937: Currently, we don't use nor support distinguished call levels, so remove
them until we do such thing. There's no need to complicate things more
at the moment.

rafal
(This used to be commit 94fb191e6b862a6b05bc962c56a0a3d34a67f6b7)

16 years agor15933: remove the last sync call to ldb_request
Simo Sorce [Mon, 29 May 2006 16:50:22 +0000 (16:50 +0000)]
r15933: remove the last sync call to ldb_request
(This used to be commit 10d66aa61dab2e59e5a510cf34b1cfad86fc2529)

16 years agor15932: Remove per request creds
Simo Sorce [Mon, 29 May 2006 11:57:09 +0000 (11:57 +0000)]
r15932: Remove per request creds
They have never benn used and make little sense too imo
(This used to be commit f0c1d08d50f8a3e25650ac85b178ec7a43e433d9)

16 years agor15930: Attempt to fix the buildfarm segfaults -- thanks Tridge for the hints
Volker Lendecke [Mon, 29 May 2006 10:59:43 +0000 (10:59 +0000)]
r15930: Attempt to fix the buildfarm segfaults -- thanks Tridge for the hints
(This used to be commit e363020115fc17caee6c3230d46fff41670a27d4)

16 years agor15927: Optimize ldb module traverse while keeping the API intact.
Simo Sorce [Mon, 29 May 2006 01:30:02 +0000 (01:30 +0000)]
r15927: Optimize ldb module traverse while keeping the API intact.
I was sick of jumping inot each module for each request,
even the ones not handle by that module.
(This used to be commit 7d65105e885a28584e8555453b90232c43a92bf7)

16 years agor15926: Add NET-API-DELETEUSER test to the standard tests run on 'make test'
Rafal Szczesniak [Sun, 28 May 2006 19:58:47 +0000 (19:58 +0000)]
r15926: Add NET-API-DELETEUSER test to the standard tests run on 'make test'

rafal
(This used to be commit 5c2bc9a4f6074735cf3fba4461a23132a9877b0c)

16 years agor15922: password_hash.c has proven to be a good way to research how to build an async...
Simo Sorce [Sun, 28 May 2006 15:20:53 +0000 (15:20 +0000)]
r15922: password_hash.c has proven to be a good way to research how to build an async module
change asq.c to be more readble
(This used to be commit 9197187c4290847721432db09bdfb2f1d06e51ba)

16 years agor15921: Include new headers.
Rafal Szczesniak [Sun, 28 May 2006 10:46:50 +0000 (10:46 +0000)]
r15921: Include new headers.

rafal
(This used to be commit a528b64054551c780bd546c92edf189409fa358b)

16 years agor15920: Move userman.c and userinfo.c definition into respective
Rafal Szczesniak [Sun, 28 May 2006 10:45:22 +0000 (10:45 +0000)]
r15920: Move userman.c and userinfo.c definition into respective
header files instead of composite.h

rafal
(This used to be commit 8cafbe7afedc90346cbd0cbedc2571143ae3dbc6)

16 years agor15919: - Create function checking prerequisites like valid domain
Rafal Szczesniak [Sun, 28 May 2006 10:43:48 +0000 (10:43 +0000)]
r15919: - Create function checking prerequisites like valid domain
  opened and rpc pipe connected. Each user management routine
  calls the function before doing their job
- Initial work on user modify functionality (does nothing yet)

rafal
(This used to be commit 51501cdeef0f253d52112a368a07815ef1fbccca)

16 years agor15916: Modify RPC-AUTHCONTEXT so that it can be anabled in samba3 make test
Volker Lendecke [Sun, 28 May 2006 08:21:35 +0000 (08:21 +0000)]
r15916: Modify RPC-AUTHCONTEXT so that it can be anabled in samba3 make test
(This used to be commit 4298fde656ac72a2f0fae9f25e3b5b1f3948f8f5)

16 years agor15913: Error passing in the async code is not in agood shape
Simo Sorce [Sun, 28 May 2006 02:10:44 +0000 (02:10 +0000)]
r15913: Error passing in the async code is not in agood shape
Start enhancing it and fix some problems with incorrect evalutaion of the codes

Implement rdn rename (async only)
(This used to be commit 6af1d738b9668d4f0eb6194ac0f84af9e73f8c2e)

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)