Andrew Tridgell [Sun, 30 Jan 2005 10:24:36 +0000 (10:24 +0000)]
r5108: the beginnings of a nbtd server for Samba4. Currently just displays
the packets it receives, but it at least shows how the server
structure will work.
To implement it I extended the libcli/nbt/ library to allow for an
incoming packet handler to be registered. That allows the nbt client
library to be used for low level processing of the nbtd server packets.
Other changes:
- made the socket library always set SO_REUSEADDR when binding to an
interface, to ensure that restarts of a server don't have to wait
for a couple of minutes.
- made the nbt port configurable. Defaults to 137, but other ports
will be useful for testing.
(This used to be commit
2fedca6adfd4df9e85cc86896dfa79630777a917)
Andrew Tridgell [Sun, 30 Jan 2005 07:22:16 +0000 (07:22 +0000)]
r5107: moved the horrible ldap socket code, and the even worse
asn1-tied-to-blocking-sockets code into the ldap client and torture
suite, and out of the generic libs, so nobody else is tempted to use
it for any new code.
(This used to be commit
39d1ced21baeca40d1fca62ba65243ca8f15757e)
Andrew Tridgell [Sun, 30 Jan 2005 07:08:08 +0000 (07:08 +0000)]
r5106: removed a bunch of unused socket functions. We still need
open_socket_out() as its used by the ldap client code (uggh)
(This used to be commit
95d9766be8b08b7ca52c24d4ed3313e147edb159)
Andrew Tridgell [Sun, 30 Jan 2005 07:07:11 +0000 (07:07 +0000)]
r5105: removed some unused events functions. These are no longer needed as
destructors are used to remove pending socket events
(This used to be commit
ce62105434ab02e94e38897409c3512905c48f02)
Andrew Tridgell [Sun, 30 Jan 2005 02:55:30 +0000 (02:55 +0000)]
r5104: - added support for task based servers. These are servers that within
themselves are run as a single process, but run as a child of the
main process when smbd is run in the standard model, and run as part
of the main process when in the single mode.
- rewrote the winbind template code to use the new task services. Also
fixed the packet queueing
- got rid of event_context_merge() as it is no longer needed
(This used to be commit
339964a596689278d2138cff05d7d444798a3504)
Andrew Tridgell [Sun, 30 Jan 2005 00:55:49 +0000 (00:55 +0000)]
r5103: forgot to add two new files
these are the stream server helper functions
(This used to be commit
3c5a7650a9730d74503b759bccafbb0fa3bbce78)
Andrew Tridgell [Sun, 30 Jan 2005 00:54:57 +0000 (00:54 +0000)]
r5102: This is a major simplification of the logic for controlling top level
servers in smbd. The old code still contained a fairly bit of legacy
from the time when smbd was only handling SMB connection. The new code
gets rid of all of the smb_server specific code in smbd/, and creates
a much simpler infrastructures for new server code.
Major changes include:
- simplified the process model code a lot.
- got rid of the top level server and service structures
completely. The top level context is now the event_context. This
got rid of service.h and server.h completely (they were the most
confusing parts of the old code)
- added service_stream.[ch] for the helper functions that are
specific to stream type services (services that handle streams, and
use a logically separate process per connection)
- got rid of the builtin idle_handler code in the service logic, as
none of the servers were using it, and it can easily be handled by
a server in future by adding its own timed_event to the event
context.
- fixed some major memory leaks in the rpc server code.
- added registration of servers, rather than hard coding our list of
possible servers. This allows for servers as modules in the future.
- temporarily disabled the winbind code until I add the helper
functions for that type of server
- added error checking on service startup. If a configured server
fails to startup then smbd doesn't startup.
- cleaned up the command line handling in smbd, removing unused options
(This used to be commit
cf6a46c3cbde7b1eb1b86bd3882b953a2de3a42e)
Tim Potter [Sat, 29 Jan 2005 05:05:17 +0000 (05:05 +0000)]
r5095: uint32 -> uint32_t
%include misc.i to get definition of struct policy_handle
Remove #includes we aren't using just now.
(This used to be commit
e561bc3efa2a5307a3940a32058ca00d5dfc2fc5)
Tim Potter [Sat, 29 Jan 2005 05:04:23 +0000 (05:04 +0000)]
r5094: Use builtin swig types for converting between fixed width integer types.
(This used to be commit
f2a1b237bcc824bd3e84da69f472ffb3c9055d00)
Andrew Bartlett [Sat, 29 Jan 2005 04:11:04 +0000 (04:11 +0000)]
r5093: Make debugs less confusing when a 0 NTTIME is printed.
Andrew Bartlett
(This used to be commit
9493c47b1833a4a7781303f8139f1636f86bf126)
Andrew Bartlett [Sat, 29 Jan 2005 04:04:38 +0000 (04:04 +0000)]
r5092: Add a bit more const - moving it further into the LDB layer.
Andrew Bartlett
(This used to be commit
ffad9b22be595279b247fa72d51145830fecbb06)
Andrew Bartlett [Sat, 29 Jan 2005 04:03:12 +0000 (04:03 +0000)]
r5091: The Kerberos secrets are queried by realm
Andrew Bartlett
(This used to be commit
8f38b5ae229984c9f9b0d7721d04da6a45c16f13)
Andrew Bartlett [Sat, 29 Jan 2005 04:02:13 +0000 (04:02 +0000)]
r5090: Fix up the IDL for LogonGetDomainInfo in NETLOGON.
Andrew Bartlett
(This used to be commit
e5afc3609382a7b534c9d845e809d135a0d4eb3a)
Andrew Bartlett [Sat, 29 Jan 2005 04:01:23 +0000 (04:01 +0000)]
r5089: Fix indentation.
(This used to be commit
2e31694f9e133ffee793de52b78a813b441acbc2)
Andrew Bartlett [Sat, 29 Jan 2005 04:00:29 +0000 (04:00 +0000)]
r5088: Push some of the heimdal tests into a 'if we didn't have krb5-config' block.
This lets krb5-config handle this without us stuffing things up.
Add back the test tridge removed
Andrew Bartlett
(This used to be commit
2206b0e8ca4b9d0be137bd6676e252c3b66faf81)
Tim Potter [Sat, 29 Jan 2005 04:00:14 +0000 (04:00 +0000)]
r5087: Add --swig to pidl flags so that swig .i files are generated with
make idl.
(This used to be commit
7ba9f329aa8baa8e8c0efe742ad51eb5b3487cbc)
Andrew Bartlett [Sat, 29 Jan 2005 03:58:44 +0000 (03:58 +0000)]
r5086: Fix list of binaries to install:
- nmblookup and net are generic, not torture programs.
- Add ntlm_auth
Andrew Bartlett
(This used to be commit
a2a49d1be00bdf33f941890399d6cbdf46968d9b)
Andrew Tridgell [Sat, 29 Jan 2005 03:44:47 +0000 (03:44 +0000)]
r5085: add net and nmblookup to installed binaries
metze, can you look at automating this when you get time? We really
need a flag in config.mk for "BINARY::" sections for the install
location, something like:
[BINARY::nmblookup]
OBJ_FILES = \
utils/nmblookup.o
INSTALL_IN = bin
(This used to be commit
a69c1a91307dc5bd13db94fdbb7cbaba90b074aa)
Andrew Tridgell [Sat, 29 Jan 2005 03:17:14 +0000 (03:17 +0000)]
r5084: - handle arbitrary data in the NULL record reply type for nbt name queries
- fixed unaligned pulls at the end of the packet in the ndr lib
(This used to be commit
61c43509f7a538541d87bd505ca241e08a50f605)
Andrew Tridgell [Sat, 29 Jan 2005 03:12:00 +0000 (03:12 +0000)]
r5083: removed the libcrypto test that is forcing the pull in of the MIT krb5 libs when you
have openssl-dev installed
(This used to be commit
27d79059f809b00c122cfde1a7530a06ee57a471)
Andrew Tridgell [Sat, 29 Jan 2005 02:46:37 +0000 (02:46 +0000)]
r5080: patch from ronnie to make our samr IDL a little more consistent
(This used to be commit
7607ddda3f221bd5a68d28c0eae297569fbb58b1)
Andrew Tridgell [Sat, 29 Jan 2005 02:41:46 +0000 (02:41 +0000)]
r5079: don't look for gss_display_status() in libgssapi_krb5 unless we
haven't already got it from libgssapi. This should fix the problem of
building with heimdal when we have MIT installed
(This used to be commit
bfa870262e5f5f803a33268fce04831b0670ab67)
Tim Potter [Sat, 29 Jan 2005 01:42:09 +0000 (01:42 +0000)]
r5074: Remove dead code.
(This used to be commit
36b46bb05aeffb2ba708e4653c131cecece01984)
Tim Potter [Sat, 29 Jan 2005 01:39:50 +0000 (01:39 +0000)]
r5073: Call new autogenerator function for swig stuff instead of old one.
(This used to be commit
a1c98101e4ebdcc4a9504d401a9d34c88c797e6e)
Tim Potter [Sat, 29 Jan 2005 00:19:23 +0000 (00:19 +0000)]
r5072: oDecrease the amount of autogenerated code (sorry tridge) and use swig's
structure mapping features instead of doing it all ourselves.
This basically works, but has broken all the existing checked in Python
code.
Sample:
pipe = dcerpc.pipe_connect(binding,
dcerpc.DCERPC_SAMR_UUID, int(dcerpc.DCERPC_SAMR_VERSION),
domain, username, password)
r = dcerpc.samr_Connect2()
r.data_in.system_name = 'foo'
r.data_in.access_mask = 0x02000000
result = dcerpc.dcerpc_samr_Connect2(pipe, r)
(This used to be commit
c2996ad910a24c977b4c0a1925118d36454514f7)
Jeremy Allison [Fri, 28 Jan 2005 23:57:03 +0000 (23:57 +0000)]
r5071: Reverted (per tridge request).
Jeremy.
(This used to be commit
554e27023f8222cb0e2791fac924bb5a0dc97ba2)
Jeremy Allison [Fri, 28 Jan 2005 23:16:19 +0000 (23:16 +0000)]
r5068: I'm pretty sure an old search request is allowed to return changed case
versions of filenames. Tridge please check I haven't screwed this up.
Jeremy.
(This used to be commit
40c1e16b5bcdf520db1b514d647a7c7048e13ecc)
Andrew Tridgell [Fri, 28 Jan 2005 11:26:51 +0000 (11:26 +0000)]
r5054: added a nmblookup tool, based on the new nbt library
(This used to be commit
9587cbcb9ea5303b345c31a662e9cd75d7cd705d)
Andrew Tridgell [Fri, 28 Jan 2005 11:25:01 +0000 (11:25 +0000)]
r5053: - fix up the library dependencies so that tools that need nbt don't
need to pull in the whole dcerpc subsystem
- moved smbencrypt.c code into libcli/auth/
(This used to be commit
3351c636af23ad88649e84f4cb88fc1167d5c654)
Andrew Tridgell [Fri, 28 Jan 2005 11:23:31 +0000 (11:23 +0000)]
r5052: minor formatting fix
(This used to be commit
4337901c1b38aaaf6cc09641ad51ff28e591b1f4)
Andrew Tridgell [Fri, 28 Jan 2005 09:21:19 +0000 (09:21 +0000)]
r5051: initialise all elements of an array (thanks to Mike Allan for pointing
this out)
(This used to be commit
7bd4ced313592310475b7403b87c7606afb1b7c1)
Andrew Tridgell [Thu, 27 Jan 2005 23:22:12 +0000 (23:22 +0000)]
r5050: make sure we translate the generic to the specific bits before doing a
pvfs_access_check_unix().
Fixes a problem with the cifsfs filesystem
(This used to be commit
8ebc61a2297176515d767ef0f67ec912293ab905)
Andrew Tridgell [Thu, 27 Jan 2005 22:36:25 +0000 (22:36 +0000)]
r5049: updated howto.txt with new provisioning instructions
(This used to be commit
82e331db5ffe3f5f96b734d84476119792a1b927)
Andrew Tridgell [Thu, 27 Jan 2005 22:32:44 +0000 (22:32 +0000)]
r5048: made the provision.pl script much less error prone (you don't need to
rename a bunch of files)
(This used to be commit
9aa5b076962c08cd54050526ecb41b2f613172e8)
Tim Potter [Thu, 27 Jan 2005 20:50:17 +0000 (20:50 +0000)]
r5047: Fix swig dependencies.
(This used to be commit
f9e56d39c943a3edd6a13b6d29fe4e614c32d289)
Stefan Metzmacher [Thu, 27 Jan 2005 11:54:24 +0000 (11:54 +0000)]
r5045: add TODO comment
metze
(This used to be commit
cbb6b80f41a7f9689d1ec5ea2d6caba147260089)
Stefan Metzmacher [Thu, 27 Jan 2005 11:23:16 +0000 (11:23 +0000)]
r5044: fix pidl--swig
metze
(This used to be commit
030bfd8d7feb16fd6d5117d17913b77b1468a507)
Andrew Tridgell [Thu, 27 Jan 2005 11:07:23 +0000 (11:07 +0000)]
r5043: this broke more systems than it helped. Remove it and try to work
around broken solaris headers some other way.
(This used to be commit
1333522a6beea8d474aa36390acbd265b63413d3)
Andrew Tridgell [Thu, 27 Jan 2005 10:18:31 +0000 (10:18 +0000)]
r5042: another attempt to get solaris10 building
(This used to be commit
11277ddb4ca8a2917565f4e211816cbba431b90d)
Stefan Metzmacher [Thu, 27 Jan 2005 09:49:45 +0000 (09:49 +0000)]
r5041: add more verbose output for the krb5 libs detection
metze
(This used to be commit
917a3b214abd2d92ba8df3e72c4e8711fe523e09)
Andrew Tridgell [Thu, 27 Jan 2005 09:33:16 +0000 (09:33 +0000)]
r5040: attempt to get solaris10 building by defining _XOPEN_SOURCE
(This used to be commit
d9c1bf10608ecc3d6a4aace44fb0dce3547c5f53)
Andrew Tridgell [Thu, 27 Jan 2005 07:13:31 +0000 (07:13 +0000)]
r5039: fixed eparser not to generate talloc_p()
(This used to be commit
dd67a5d833d7e44ff0ec1ba9f5c55c2b1e121b9a)
Andrew Tridgell [Thu, 27 Jan 2005 07:09:42 +0000 (07:09 +0000)]
r5038: we don't need these defines any more
(This used to be commit
03697fc761d5f6a93de34c9eadc8fe2c45fa78ae)
Andrew Tridgell [Thu, 27 Jan 2005 07:08:20 +0000 (07:08 +0000)]
r5037: got rid of all of the TALLOC_DEPRECATED stuff. My apologies for the
large commit. I thought this was worthwhile to get done for
consistency.
(This used to be commit
ec32b22ed5ec224f6324f5e069d15e92e38e15c0)
Andrew Tridgell [Thu, 27 Jan 2005 06:33:07 +0000 (06:33 +0000)]
r5036: changed HYPER_T to the more standard "hyper"
(This used to be commit
1d1a9c11ee681540ef8a1029409bb24fc26f976c)
Andrew Tridgell [Thu, 27 Jan 2005 06:18:20 +0000 (06:18 +0000)]
r5035: fixed composite test to use --num-ops command line option
(This used to be commit
f36e4cf6862c9cbcd36563007efa8dc59912d896)
Andrew Tridgell [Thu, 27 Jan 2005 06:16:59 +0000 (06:16 +0000)]
r5034: - added a type mapping function in pidl, so the type names in our IDL
files don't need to match the type names in the generated headers
- with this type mapping we no longer need definitions for the
deprecated "int32", "uint8" etc form of types. We can now force
everyone to use the standard types int32_t, uint8_t etc.
- fixed all the code that used the deprecated types
- converted the IDL types "int64" and "uint64" to "dlong" and
"udlong". These are the 4 byte aligned 64 bit integers that
Microsoft internally define as two 32 bit integers in a
structure. After discussions with Ronnie Sahlberg we decided that
calling these "int64" was confusing, as it implied a true 8 byte
aligned type
- fixed all the cases where we incorrectly used things like
"NTTIME_hyper" in our C code. The generated API now uses a NTTIME for
those. The fact that it is hyper-aligned on the wire is not relevant
to the API, and should remain just a IDL property
(This used to be commit
f86521677d7ff16bdc4815f9524e5286026f10f3)
Tim Potter [Thu, 27 Jan 2005 04:41:40 +0000 (04:41 +0000)]
r5033: Remove --with-eparserdir configure option and eparser_idl make target.
This is all done in the lorikeet/ethereal Makefile now.
(This used to be commit
5ec9fad5cfc9c6010550aa1890e9d213030db55d)
Andrew Tridgell [Thu, 27 Jan 2005 04:22:44 +0000 (04:22 +0000)]
r5032: get rid of the init fns in eparser
(This used to be commit
dc8c7cb85cf87d5976573ea6e9de43c0c9d5f44a)
Andrew Tridgell [Thu, 27 Jan 2005 01:44:26 +0000 (01:44 +0000)]
r5027: added the IDL license to the IDL directory
(This used to be commit
765ede8ca6032ac1efdeca417eb62f34fdd7ed24)
Tim Potter [Thu, 27 Jan 2005 01:06:50 +0000 (01:06 +0000)]
r5026: Don't build the swig stuff by default until it's a bit more stable.
(This used to be commit
df35f1debf30682363399ee2a02063da695fff84)
Tim Potter [Wed, 26 Jan 2005 22:34:30 +0000 (22:34 +0000)]
r5024: Fix build.
(This used to be commit
425b988541fa669e7f2905fe959522f2d2d50da1)
Tim Potter [Wed, 26 Jan 2005 20:46:58 +0000 (20:46 +0000)]
r5019: Some tweaks to building the swig .i files.
(This used to be commit
c252a286efcb9ca2024c8d234c8a65855522fb25)
Tim Potter [Wed, 26 Jan 2005 20:43:55 +0000 (20:43 +0000)]
r5018: Initialise required subsystems (by hand, generated by substituting
BINARY for LIBRARY in config.mk).
Cut things down to just the samr pipe for the moment.
(This used to be commit
95d2a58e5b2cfc30304ca390de7073c214850984)
Tim Potter [Wed, 26 Jan 2005 20:41:58 +0000 (20:41 +0000)]
r5017: Fix bug in output typemap for uint32 (!)
(This used to be commit
dc845154ca1738f4c3959a1799cbbd6ce65b7d02)
Tim Potter [Wed, 26 Jan 2005 20:40:59 +0000 (20:40 +0000)]
r5016: Use LIBRARY instead of BINARY for inserting the swig stuff into the
build system. This still generates bogus targets (i.e
bin/swig_dcerpc.so.0.0.1) and the subsystem initialisation needs to be
done by hand but it is less of a hack.
(This used to be commit
e9b69d19a84b31966fb6e66e9d8682b0f9b40a47)
Günther Deschner [Wed, 26 Jan 2005 13:19:47 +0000 (13:19 +0000)]
r5011: Do not use KRB5_CONFIG internally as it is used by MIT and Heimdal to find
the configfile (/etc/krb5.conf). Kerberos-Tests tend to segfault when
reading the krb5-config binary as configuration-file...
Also allow KRB5CONFIG to be passed over again
(KRB5CONFIG=/my/heimdal/bin/krb5-config ./configure...)
Guenther
(This used to be commit
d925606bbf869a526a0189485f4011ac359e3323)
Tim Potter [Wed, 26 Jan 2005 07:06:22 +0000 (07:06 +0000)]
r5010: Handle weird-ass NTTIME_1sec and NTTIME_hyper types.
(This used to be commit
a38db33713348e8a07d3fc932865b2f649dc962f)
Tim Potter [Wed, 26 Jan 2005 06:51:39 +0000 (06:51 +0000)]
r5009: Put bitmaps in their own subtree.
(This used to be commit
8ca1e3aa3b5007f9da3e951e15e0380ae170a1cf)
Tim Potter [Wed, 26 Jan 2005 06:29:10 +0000 (06:29 +0000)]
r5008: 32-bits is the default bitmap size.
(This used to be commit
493ba2da6bb93d080ff92c50d920df8c858f3010)
Tim Potter [Wed, 26 Jan 2005 05:24:13 +0000 (05:24 +0000)]
r5007: Fix bug in regexp where we were eating the strings "in" or "out" from
structure names if they started with those strings.
(This used to be commit
e983de6ead6ed23b51c2df70e69586b1e7be5a60)
Tim Potter [Wed, 26 Jan 2005 04:50:04 +0000 (04:50 +0000)]
r5006: Implement parsing of pidl bitmaps in ethereal parsers. This works
well but needs to be stuck in a subtree.
(This used to be commit
a34212247b5dfb87d87c1ce12aab1835c88a0651)
Tim Potter [Wed, 26 Jan 2005 04:34:16 +0000 (04:34 +0000)]
r5005: Add missing size specifiers to various bitmaps.
(This used to be commit
19a907cb58f9ec58c5eea12e7979134976c0c469)
Andrew Tridgell [Wed, 26 Jan 2005 03:19:42 +0000 (03:19 +0000)]
r5004: add current samba3 nmblookup.c ready for updating to new nbt lib
(This used to be commit
854f7f376d7e15524a76bdb43a56be2a1a1d8123)
Andrew Tridgell [Wed, 26 Jan 2005 03:19:05 +0000 (03:19 +0000)]
r5003: delete old nmblookup.c code
(This used to be commit
b781a542447f9b9468ab20dd26c222a4ebfcda85)
Tim Potter [Tue, 25 Jan 2005 23:14:46 +0000 (23:14 +0000)]
r4993: Generate nicer name for enum hf.
Start work on supporting bitmaps.
(This used to be commit
6f418f14267291bf8637e5dcd7e8ceca4e430314)
Tim Potter [Tue, 25 Jan 2005 22:38:57 +0000 (22:38 +0000)]
r4991: Remove debugging statement.
(This used to be commit
4640d3371eb57de90d972719e8550fea65831f74)
Tim Potter [Tue, 25 Jan 2005 22:33:44 +0000 (22:33 +0000)]
r4990: Generate value strings for pidl enumerations.
(This used to be commit
edaf81b6395e1af06e9546027f9a9c3c4975c4b4)
Tim Potter [Tue, 25 Jan 2005 11:38:39 +0000 (11:38 +0000)]
r4983: On second thoughts don't include the config.mk file for the swig stuff
just yet. More testing required.
(This used to be commit
c2664bb365e31a160b72e6eecfdfce9921e913f0)
Tim Potter [Tue, 25 Jan 2005 11:21:25 +0000 (11:21 +0000)]
r4982: Start to move swig dependencies into new build system. Unfortunately
I can only get something useful happening by using the BINARY keyword
as nothing else seems to generate dependency lists that can be used
when linking the swig shared libraries. Anyway this is a lot nicer
than having lots of junk in makefile.pm.
(This used to be commit
71a22f5206086c5ab7315d38934d65483aff7a70)
Tim Potter [Tue, 25 Jan 2005 10:20:24 +0000 (10:20 +0000)]
r4981: Fix swig build.
(This used to be commit
b44ab87c83ad094ce4595c9702d6a21f30c1de26)
Tim Potter [Tue, 25 Jan 2005 10:03:57 +0000 (10:03 +0000)]
r4980: Copy RAP callno constants from Samba 3 and start to use them.
(This used to be commit
e32ade44858b869001d2990c788a7e34fb70b121)
Tim Potter [Tue, 25 Jan 2005 09:46:00 +0000 (09:46 +0000)]
r4979: Return NT_STATUS_INVALID_SYSTEM_SERVICE for unimplemented RAP calls as
this is what win2k3 does.
(This used to be commit
145d7c03df477eca08cb81d221e3a1b60ccf8c7f)
Tim Potter [Tue, 25 Jan 2005 02:07:27 +0000 (02:07 +0000)]
r4975: Update usage of talloc in rap torture code.
Don't use ZERO_STRUCTP() when creating a new struct rap_call.
(This used to be commit
c475fa44575430cdab15d71548ca8d8222d9adb0)
Tim Potter [Tue, 25 Jan 2005 01:39:44 +0000 (01:39 +0000)]
r4974: Update location of talloc_guide.txt
(This used to be commit
a2f25260224cd27e5730ba3dc0757dd14e709fd5)
Tim Potter [Tue, 25 Jan 2005 01:21:59 +0000 (01:21 +0000)]
r4973: Add a RAP scanner to smbtorture. win2k has call numbers 0-215 although
the cifs tr lists 250-318 also.
(This used to be commit
37b4d1a676f341bc32a2a5a49fdfe2667636ccef)
Stefan Metzmacher [Mon, 24 Jan 2005 14:44:15 +0000 (14:44 +0000)]
r4962: add infrastructure to use raw krb5 auth in dcerpc client code
Note this doesn't work currently because the gensec_modules are not ready for that yet
metze
(This used to be commit
7b09a3f725baca5d4483b7ec24a9cb6151557bb5)
Stefan Metzmacher [Mon, 24 Jan 2005 14:31:19 +0000 (14:31 +0000)]
r4959: fix compiler warning
metze
(This used to be commit
e849db13dce1233a37c5b175cf8bea0a473ba6d7)
Stefan Metzmacher [Mon, 24 Jan 2005 14:30:22 +0000 (14:30 +0000)]
r4958: fix compiler warnings
metze
(This used to be commit
522af7ecc0020b7c56182ca628f6d1623abe303e)
Andrew Tridgell [Mon, 24 Jan 2005 03:43:48 +0000 (03:43 +0000)]
r4957: the fetchfile _recv() function was neglecting to steal the data and
free the connection context. This left a whole lot of state hanging
around and didn't give the memory to the caller properly
(This used to be commit
3e13e1d526563d91cb2342ae68455e54eb49a9bd)
Andrew Tridgell [Mon, 24 Jan 2005 03:33:36 +0000 (03:33 +0000)]
r4956: - moved the definition of the mangle context structure into a pvfs_shortname
- made the mangle cache size configurable
(This used to be commit
4adbd01812a53395f175bd6d8e402ad5451f7561)
Andrew Tridgell [Mon, 24 Jan 2005 02:19:57 +0000 (02:19 +0000)]
r4955: fixed a couple of minor memory leaks in the auth_sam code
(This used to be commit
2eba223bda43a81e7aa795e58e551b0b556ddcfa)
Andrew Tridgell [Mon, 24 Jan 2005 01:51:45 +0000 (01:51 +0000)]
r4954: we don't need the separate event_remove_*() calls any more, as you now
remove an event by calling talloc_free().
(This used to be commit
8f19b6886cc58a56d52aecfc83a175197061e533)
Andrew Tridgell [Mon, 24 Jan 2005 01:15:30 +0000 (01:15 +0000)]
r4953: - enable easy valgrind use in all our test scripts
- when valgrind isn't set, then setup MALLOC_CHECK_ to abort on error
(This used to be commit
21e629e80e5b320616135d3f3641801dc29594e6)
Andrew Tridgell [Mon, 24 Jan 2005 01:04:15 +0000 (01:04 +0000)]
r4952: removed a bogus talloc_steal() that was trying to cope with the
inverted memory hierarchy. Now the memory hierarchy is logical its not
needed (and can cause a double free in RPC-SCHANNEL)
(This used to be commit
f8a950b57d7137c6fd0a77d063d946b4f9b3f014)
Andrew Tridgell [Mon, 24 Jan 2005 00:57:14 +0000 (00:57 +0000)]
r4951: some of the code dealing with libcli was getting too complex trying to
handle the inverted memory hierarchy that a normal session
establishment gave. The inverted hierarchy came from that fact that
you first establish a socket, then a transport, then a session and
finally a tree. That leads to the socket being at the top of the
memory hierarchy and the tree at the bottom, which makes no sense from
the users point of view, as they want to be able to free the tree and
have everything disappear.
The core problem was that the libcli interface didn't distinguish
between establishing a primary context and a secondary context. If you
establish a 2nd session on a transport then you want the transport to
be referenced by the session, whereas if you establish a primary
session then you want the transport to be a child of the session.
To fix this I have added "parent_ctx" and "primary" arguments to the
libcli intialisation functions. This makes using the library much
easier, and gives us a memory hierarchy that makes much more sense.
I was prompted to do this by a bug in the cifs backend, which was
caused by the socket not being properly torn down on a disconnect due
to the inverted memory hierarchy.
(This used to be commit
5e8fd5f70178992e249805c2e1ddafaf6840739b)
Andrew Tridgell [Mon, 24 Jan 2005 00:51:06 +0000 (00:51 +0000)]
r4950: removed some excessive debugging messages
(This used to be commit
4a351901aa49090700d89274559d6dda76f06b7d)
Volker Lendecke [Sun, 23 Jan 2005 23:23:26 +0000 (23:23 +0000)]
r4949: First version of a fetchfile composite function which connects to a server and
loads a file. Needs a smb url parsing wrapper.
Volker
(This used to be commit
fa435bf7c878d4a5beb6afb2ed6e2990abc11e82)
Rafal Szczesniak [Sun, 23 Jan 2005 22:14:44 +0000 (22:14 +0000)]
r4948: Typo fixes in comments.
rafal
(This used to be commit
97d40f1603eeed1b5ff3f2c7d668858fef20f130)
Andrew Tridgell [Sun, 23 Jan 2005 12:24:36 +0000 (12:24 +0000)]
r4945: the te element isn't needed any more
In general, now that events are children of the structure they are
handling events for, the caller only needs to keep the event handle
around if it plans on changing the event flags later
(This used to be commit
8c8955155476827408c107af38089c8320631526)
Andrew Tridgell [Sun, 23 Jan 2005 12:17:45 +0000 (12:17 +0000)]
r4944: every event_add_*() caller was having to call talloc_steal() to take
control of the event, so instead build that into the function. If you
pass NULL as mem_ctx then it leaves it as a child of the events
structure.
(This used to be commit
7f981b9ed96f39027cbfd500f41e0c2be64cbb50)
Andrew Tridgell [Sun, 23 Jan 2005 11:49:15 +0000 (11:49 +0000)]
r4943: Smplified the events handling code a lot. The first source of
complexity was that events didn't automatically cleanup
themselves. This was because the events code was written before we had
talloc destructors, so you needed to call event_remove_XX() to clean
the event out of the event lists from every piece of code that used
events. I have now added automatic event destructors, which in turn
allowed me to simplify a lot of the calling code.
The 2nd source of complexity was caused by the ref_count, which was
needed to cope with event handlers destroying events while handling
them, which meant the linked lists became invalid, so the ref_count ws
used to mark events for later destruction.
The new system is much simpler. I now have a ev->destruction_count,
which is incremented in all event destructors. The event dispatch code
checks for changes to this and handles it.
(This used to be commit
a3c7417cfeab429ffb22d5546b205818f531a7b4)
Andrew Tridgell [Sun, 23 Jan 2005 11:42:56 +0000 (11:42 +0000)]
r4942: converted the cifs backend to not use event_context_merge(). Instead,
is supplies the server event context during the connect.
(This used to be commit
133e67bb1fa661b0e0d340091be4160f9af04fe3)
Stefan Metzmacher [Sun, 23 Jan 2005 11:12:42 +0000 (11:12 +0000)]
r4941: - all needed data is now in sam.ldb and hacked.ldb is not needed anymore by the hacked ldap backend
- readd the schema naming context container object as it's needed for a w2k3 dc join
metze
(This used to be commit
c583f806231652cce9879e9fc4237a5ab0774346)
Tim Potter [Sun, 23 Jan 2005 11:03:20 +0000 (11:03 +0000)]
r4940: Add a variable to hold a list of typedefs for which we shouldn't generate
a dissector for. A hand written dissector needs to be added to eparser.c
for the plugin to link.
(This used to be commit
d4f7f6b0b41cb572320a5aeaf771c5af2b7bf13d)
Andrew Tridgell [Sun, 23 Jan 2005 09:03:05 +0000 (09:03 +0000)]
r4939: make a few more private pointers type safe (this might help abartlet
track down a bug he just told me about)
(This used to be commit
fb326cbb32ef7eebb7073777d834d6bea25069a7)
Andrew Tridgell [Sun, 23 Jan 2005 09:01:46 +0000 (09:01 +0000)]
r4938: allow the caller to supply an existing event_context if they want to
in smb_composite_connect_send(). This makes doing parallel calls much
easier.
(This used to be commit
442308970c123b9fb25615673049e1c1c234a0b9)
Andrew Tridgell [Sun, 23 Jan 2005 08:19:38 +0000 (08:19 +0000)]
r4937: simplify the connect code in the same way
(This used to be commit
347dfa47249d55c61e1e7c82d10444a71aca8a85)
Andrew Tridgell [Sun, 23 Jan 2005 08:16:16 +0000 (08:16 +0000)]
r4936: moved to a convention where the completion function is only called in
one place. This makes the code more robust, and simpler (it would have
prevented the error that volker found).
(This used to be commit
420b53091ee784d7891fb62d48e2f5a225b4dbf8)
Andrew Tridgell [Sun, 23 Jan 2005 00:51:20 +0000 (00:51 +0000)]
r4935: fixed a bug where "c->status = xxx_handler(x);" could write to c after
it is freed. The problem is that the handler might complete the
request, and called the c->async.fn() async handler. That handler
might free the request handle.
(This used to be commit
c4faceadc74e0849f6197ccbec9952f6c94f6176)