samba.git
14 years agor5084: - handle arbitrary data in the NULL record reply type for nbt name queries
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

14 years agor5083: removed the libcrypto test that is forcing the pull in of the MIT krb5 libs...
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

14 years agor5080: patch from ronnie to make our samr IDL a little more consistent
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

14 years agor5079: don't look for gss_display_status() in libgssapi_krb5 unless we
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

14 years agor5074: Remove dead code.
Tim Potter [Sat, 29 Jan 2005 01:42:09 +0000 (01:42 +0000)]
r5074: Remove dead code.

14 years agor5073: Call new autogenerator function for swig stuff instead of old one.
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.

14 years agor5072: oDecrease the amount of autogenerated code (sorry tridge) and use swig's
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)

14 years agor5071: Reverted (per tridge request).
Jeremy Allison [Fri, 28 Jan 2005 23:57:03 +0000 (23:57 +0000)]
r5071: Reverted (per tridge request).
Jeremy.

14 years agor5068: I'm pretty sure an old search request is allowed to return changed case
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.

14 years agor5054: added a nmblookup tool, based on the new nbt library
Andrew Tridgell [Fri, 28 Jan 2005 11:26:51 +0000 (11:26 +0000)]
r5054: added a nmblookup tool, based on the new nbt library

14 years agor5053: - fix up the library dependencies so that tools that need nbt don't
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/

14 years agor5052: minor formatting fix
Andrew Tridgell [Fri, 28 Jan 2005 11:23:31 +0000 (11:23 +0000)]
r5052: minor formatting fix

14 years agor5051: initialise all elements of an array (thanks to Mike Allan for pointing
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)

14 years agor5050: make sure we translate the generic to the specific bits before doing a
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

14 years agor5049: updated howto.txt with new provisioning instructions
Andrew Tridgell [Thu, 27 Jan 2005 22:36:25 +0000 (22:36 +0000)]
r5049: updated howto.txt with new provisioning instructions

14 years agor5048: made the provision.pl script much less error prone (you don't need to
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)

14 years agor5047: Fix swig dependencies.
Tim Potter [Thu, 27 Jan 2005 20:50:17 +0000 (20:50 +0000)]
r5047: Fix swig dependencies.

14 years agor5045: add TODO comment
Stefan Metzmacher [Thu, 27 Jan 2005 11:54:24 +0000 (11:54 +0000)]
r5045: add TODO comment

metze

14 years agor5044: fix pidl--swig
Stefan Metzmacher [Thu, 27 Jan 2005 11:23:16 +0000 (11:23 +0000)]
r5044: fix pidl--swig

metze

14 years agor5043: this broke more systems than it helped. Remove it and try to work
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.

14 years agor5042: another attempt to get solaris10 building
Andrew Tridgell [Thu, 27 Jan 2005 10:18:31 +0000 (10:18 +0000)]
r5042: another attempt to get solaris10 building

14 years agor5041: add more verbose output for the krb5 libs detection
Stefan Metzmacher [Thu, 27 Jan 2005 09:49:45 +0000 (09:49 +0000)]
r5041: add more verbose output for the krb5 libs detection

metze

14 years agor5040: attempt to get solaris10 building by defining _XOPEN_SOURCE
Andrew Tridgell [Thu, 27 Jan 2005 09:33:16 +0000 (09:33 +0000)]
r5040: attempt to get solaris10 building by defining _XOPEN_SOURCE

14 years agor5039: fixed eparser not to generate talloc_p()
Andrew Tridgell [Thu, 27 Jan 2005 07:13:31 +0000 (07:13 +0000)]
r5039: fixed eparser not to generate talloc_p()

14 years agor5038: we don't need these defines any more
Andrew Tridgell [Thu, 27 Jan 2005 07:09:42 +0000 (07:09 +0000)]
r5038: we don't need these defines any more

14 years agor5037: got rid of all of the TALLOC_DEPRECATED stuff. My apologies for the
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.

14 years agor5036: changed HYPER_T to the more standard "hyper"
Andrew Tridgell [Thu, 27 Jan 2005 06:33:07 +0000 (06:33 +0000)]
r5036: changed HYPER_T to the more standard "hyper"

14 years agor5035: fixed composite test to use --num-ops command line option
Andrew Tridgell [Thu, 27 Jan 2005 06:18:20 +0000 (06:18 +0000)]
r5035: fixed composite test to use --num-ops command line option

14 years agor5034: - added a type mapping function in pidl, so the type names in our IDL
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

14 years agor5033: Remove --with-eparserdir configure option and eparser_idl make target.
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.

14 years agor5032: get rid of the init fns in eparser
Andrew Tridgell [Thu, 27 Jan 2005 04:22:44 +0000 (04:22 +0000)]
r5032: get rid of the init fns in eparser

14 years agor5027: added the IDL license to the IDL directory
Andrew Tridgell [Thu, 27 Jan 2005 01:44:26 +0000 (01:44 +0000)]
r5027: added the IDL license to the IDL directory

14 years agor5026: Don't build the swig stuff by default until it's a bit more stable.
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.

14 years agor5024: Fix build.
Tim Potter [Wed, 26 Jan 2005 22:34:30 +0000 (22:34 +0000)]
r5024: Fix build.

14 years agor5019: Some tweaks to building the swig .i files.
Tim Potter [Wed, 26 Jan 2005 20:46:58 +0000 (20:46 +0000)]
r5019: Some tweaks to building the swig .i files.

14 years agor5018: Initialise required subsystems (by hand, generated by substituting
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.

14 years agor5017: Fix bug in output typemap for uint32 (!)
Tim Potter [Wed, 26 Jan 2005 20:41:58 +0000 (20:41 +0000)]
r5017: Fix bug in output typemap for uint32 (!)

14 years agor5016: Use LIBRARY instead of BINARY for inserting the swig stuff into the
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.

14 years agor5011: Do not use KRB5_CONFIG internally as it is used by MIT and Heimdal to find
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

14 years agor5010: Handle weird-ass NTTIME_1sec and NTTIME_hyper types.
Tim Potter [Wed, 26 Jan 2005 07:06:22 +0000 (07:06 +0000)]
r5010: Handle weird-ass NTTIME_1sec and NTTIME_hyper types.

14 years agor5009: Put bitmaps in their own subtree.
Tim Potter [Wed, 26 Jan 2005 06:51:39 +0000 (06:51 +0000)]
r5009: Put bitmaps in their own subtree.

14 years agor5008: 32-bits is the default bitmap size.
Tim Potter [Wed, 26 Jan 2005 06:29:10 +0000 (06:29 +0000)]
r5008: 32-bits is the default bitmap size.

14 years agor5007: Fix bug in regexp where we were eating the strings "in" or "out" from
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.

14 years agor5006: Implement parsing of pidl bitmaps in ethereal parsers. This works
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.

14 years agor5005: Add missing size specifiers to various bitmaps.
Tim Potter [Wed, 26 Jan 2005 04:34:16 +0000 (04:34 +0000)]
r5005: Add missing size specifiers to various bitmaps.

14 years agor5004: add current samba3 nmblookup.c ready for updating to new nbt lib
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

14 years agor5003: delete old nmblookup.c code
Andrew Tridgell [Wed, 26 Jan 2005 03:19:05 +0000 (03:19 +0000)]
r5003: delete old nmblookup.c code

14 years agor4993: Generate nicer name for enum hf.
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.

14 years agor4991: Remove debugging statement.
Tim Potter [Tue, 25 Jan 2005 22:38:57 +0000 (22:38 +0000)]
r4991: Remove debugging statement.

14 years agor4990: Generate value strings for pidl enumerations.
Tim Potter [Tue, 25 Jan 2005 22:33:44 +0000 (22:33 +0000)]
r4990: Generate value strings for pidl enumerations.

14 years agor4983: On second thoughts don't include the config.mk file for the swig stuff
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.

14 years agor4982: Start to move swig dependencies into new build system. Unfortunately
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.

14 years agor4981: Fix swig build.
Tim Potter [Tue, 25 Jan 2005 10:20:24 +0000 (10:20 +0000)]
r4981: Fix swig build.

14 years agor4980: Copy RAP callno constants from Samba 3 and start to use them.
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.

14 years agor4979: Return NT_STATUS_INVALID_SYSTEM_SERVICE for unimplemented RAP calls as
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.

14 years agor4975: Update usage of talloc in rap torture code.
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.

14 years agor4974: Update location of talloc_guide.txt
Tim Potter [Tue, 25 Jan 2005 01:39:44 +0000 (01:39 +0000)]
r4974: Update location of talloc_guide.txt

14 years agor4973: Add a RAP scanner to smbtorture. win2k has call numbers 0-215 although
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.

14 years agor4962: add infrastructure to use raw krb5 auth in dcerpc client code
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

14 years agor4959: fix compiler warning
Stefan Metzmacher [Mon, 24 Jan 2005 14:31:19 +0000 (14:31 +0000)]
r4959: fix compiler warning

metze

14 years agor4958: fix compiler warnings
Stefan Metzmacher [Mon, 24 Jan 2005 14:30:22 +0000 (14:30 +0000)]
r4958: fix compiler warnings

metze

14 years agor4957: the fetchfile _recv() function was neglecting to steal the data and
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

14 years agor4956: - moved the definition of the mangle context structure into a pvfs_shortname
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

14 years agor4955: fixed a couple of minor memory leaks in the auth_sam code
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

14 years agor4954: we don't need the separate event_remove_*() calls any more, as you now
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().

14 years agor4953: - enable easy valgrind use in all our test scripts
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

14 years agor4952: removed a bogus talloc_steal() that was trying to cope with the
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)

14 years agor4951: some of the code dealing with libcli was getting too complex trying to
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.

14 years agor4950: removed some excessive debugging messages
Andrew Tridgell [Mon, 24 Jan 2005 00:51:06 +0000 (00:51 +0000)]
r4950: removed some excessive debugging messages

14 years agor4949: First version of a fetchfile composite function which connects to a server and
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

14 years agor4948: Typo fixes in comments.
Rafal Szczesniak [Sun, 23 Jan 2005 22:14:44 +0000 (22:14 +0000)]
r4948: Typo fixes in comments.

rafal

14 years agor4945: the te element isn't needed any more
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

14 years agor4944: every event_add_*() caller was having to call talloc_steal() to take
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.

14 years agor4943: Smplified the events handling code a lot. The first source of
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.

14 years agor4942: converted the cifs backend to not use event_context_merge(). Instead,
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.

14 years agor4941: - all needed data is now in sam.ldb and hacked.ldb is not needed anymore by...
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

14 years agor4940: Add a variable to hold a list of typedefs for which we shouldn't generate
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.

14 years agor4939: make a few more private pointers type safe (this might help abartlet
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)

14 years agor4938: allow the caller to supply an existing event_context if they want to
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.

14 years agor4937: simplify the connect code in the same way
Andrew Tridgell [Sun, 23 Jan 2005 08:19:38 +0000 (08:19 +0000)]
r4937: simplify the connect code in the same way

14 years agor4936: moved to a convention where the completion function is only called in
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).

14 years agor4935: fixed a bug where "c->status = xxx_handler(x);" could write to c after
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.

14 years agor4930: Update my copyright.
Tim Potter [Sat, 22 Jan 2005 08:09:10 +0000 (08:09 +0000)]
r4930: Update my copyright.

14 years agor4927: parse the NBT session request in the smb server. This gets rid of that
Andrew Tridgell [Sat, 22 Jan 2005 05:36:32 +0000 (05:36 +0000)]
r4927: parse the NBT session request in the smb server. This gets rid of that
annoying "not parsing session request" message on each SMB connection

14 years agor4924: continue the effort to simplify and generalise the composite
Andrew Tridgell [Sat, 22 Jan 2005 02:51:39 +0000 (02:51 +0000)]
r4924: continue the effort to simplify and generalise the composite
interface. This patch removes the "stage" variable, which is really
better suited to the backend state structures

14 years agor4923: Avoid using krb5-config in the path if a krb5 prefix was already set.
Andrew Bartlett [Sat, 22 Jan 2005 02:39:05 +0000 (02:39 +0000)]
r4923: Avoid using krb5-config in the path if a krb5 prefix was already set.

Andrew Bartlett

14 years agor4922: fixed an infinite loop in the name resolve code when handling a method
Andrew Tridgell [Sat, 22 Jan 2005 02:08:30 +0000 (02:08 +0000)]
r4922: fixed an infinite loop in the name resolve code when handling a method
in smb.conf that isn't implemented in the library

14 years agor4919: if a caller doesn't provide an event context to the resolver library,
Andrew Tridgell [Sat, 22 Jan 2005 01:37:48 +0000 (01:37 +0000)]
r4919: if a caller doesn't provide an event context to the resolver library,
then create one. This fixes a crash in the RAW-NEGNOWAIT test for
'host' resolution.

14 years agor4916: added "host" name resolution using fork() per gethostbyname()
Andrew Tridgell [Sat, 22 Jan 2005 00:52:54 +0000 (00:52 +0000)]
r4916: added "host" name resolution using fork() per gethostbyname()

comments welcome, but please think about the alternatives first :-)

14 years agor4915: free temp context _before_ the async callback, as the async callback might...
Andrew Tridgell [Fri, 21 Jan 2005 23:53:10 +0000 (23:53 +0000)]
r4915: free temp context _before_ the async callback, as the async callback might destroy our top level context
leaving the tmp context freed (so a double free)

14 years agor4914: Fill in the realm for the self-join.
Andrew Bartlett [Fri, 21 Jan 2005 23:15:18 +0000 (23:15 +0000)]
r4914: Fill in the realm for the self-join.

Andrew Bartlett

14 years agor4911: make sure we fill in the transport called name on port 445 as well
Andrew Tridgell [Fri, 21 Jan 2005 22:01:57 +0000 (22:01 +0000)]
r4911: make sure we fill in the transport called name on port 445 as well
(thanks to abartlet for spotting this bug)

14 years agor4909: fixed name_trn_id generation (thanks to metze for spotting the bug!)
Andrew Tridgell [Fri, 21 Jan 2005 20:38:33 +0000 (20:38 +0000)]
r4909: fixed name_trn_id generation (thanks to metze for spotting the bug!)

14 years agor4901: a bit more info on nbt packets under high debug level
Andrew Tridgell [Fri, 21 Jan 2005 13:39:33 +0000 (13:39 +0000)]
r4901: a bit more info on nbt packets under high debug level

14 years agor4900: build fix for IRIX 6.5
Andrew Tridgell [Fri, 21 Jan 2005 13:29:24 +0000 (13:29 +0000)]
r4900: build fix for IRIX 6.5

14 years agor4899: fixed build
Andrew Tridgell [Fri, 21 Jan 2005 13:16:33 +0000 (13:16 +0000)]
r4899: fixed build

14 years agor4898: - removed the unused wins_srv_*() code
Andrew Tridgell [Fri, 21 Jan 2005 13:13:24 +0000 (13:13 +0000)]
r4898: - removed the unused wins_srv_*() code

- expanded the generic async name resolver to try multiple methods

- added wins resolutions to the list of methods tried

- fixed up the random trn id generation to use the good random generator

14 years agor4897: Unbreak the LDAP server. Somehow the generic service structures
Andrew Bartlett [Fri, 21 Jan 2005 12:45:11 +0000 (12:45 +0000)]
r4897: Unbreak the LDAP server.  Somehow the generic service structures
(which seem just a little too complex) changed, but this code was not
updated or tested.

Also clarify the existing code, by not reusing variables.

Andrew Bartlett

14 years agor4896: make sure the event context doesn't go away while waiting for event completion
Andrew Tridgell [Fri, 21 Jan 2005 11:41:48 +0000 (11:41 +0000)]
r4896: make sure the event context doesn't go away while waiting for event completion

14 years agor4895: I missed this in my previous 'use secrets.ldb' commit.
Andrew Bartlett [Fri, 21 Jan 2005 11:31:35 +0000 (11:31 +0000)]
r4895: I missed this in my previous 'use secrets.ldb' commit.

Andrew Bartlett