1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-07 17:18:11 +03:00
Commit Graph

3683 Commits

Author SHA1 Message Date
Stefan Metzmacher
ca3f70256a r5145: define struct ipv4_addr in misc.idl,
so we can use it in nbt.idl and
get a nicer debug output

metze
(This used to be commit abacbc9192)
2007-10-10 13:09:27 -05:00
Stefan Metzmacher
3b6fb59314 r5144: add more forward declarations
metze
(This used to be commit c5a24792db)
2007-10-10 13:09:27 -05:00
Stefan Metzmacher
852228e8c6 r5143: don't generate prototypes for lib/tdb/
metze
(This used to be commit 1c48c30aaf)
2007-10-10 13:09:27 -05:00
Stefan Metzmacher
dd0d8b2a89 r5142: fix compiler warning
metze
(This used to be commit d8aeb69ea8)
2007-10-10 13:09:27 -05:00
Stefan Metzmacher
65db148d87 r5141: fix compiler warnings
metze
(This used to be commit 12b0841b30)
2007-10-10 13:09:26 -05:00
Stefan Metzmacher
4c6bcb0c05 r5139: fix types
metze
(This used to be commit 8507a57b88)
2007-10-10 13:09:26 -05:00
Stefan Metzmacher
ad234a53f6 r5138: don't create prototypes for samba3's winbind client lib
they're in hand declared

metze
(This used to be commit fcc690a274)
2007-10-10 13:09:26 -05:00
Stefan Metzmacher
d8d3a5ffe3 r5137: fix types
metze
(This used to be commit add1c57937)
2007-10-10 13:09:26 -05:00
Stefan Metzmacher
f0d97d27ae r5136: fix types
metze
(This used to be commit 344367cc4c)
2007-10-10 13:09:26 -05:00
Stefan Metzmacher
2cb711f39f r5135: I prepare a clean up in includes.h
metze
(This used to be commit 670e088e94)
2007-10-10 13:09:25 -05:00
Stefan Metzmacher
73a0b6ea47 r5134: - fix types to always use _t types
- add #include "system/filesys.h" where needed

metze
(This used to be commit 6bb07a0ed8)
2007-10-10 13:09:25 -05:00
Stefan Metzmacher
a67ef6c6a1 r5133: fix type mapping to internal types
metze
(This used to be commit 4cebc7a858)
2007-10-10 13:09:25 -05:00
Andrew Tridgell
75049fb66f r5130: added a single NBT name query benchmark. It keeps 10 queries in flight at a time.
(This used to be commit 2d23c665ff)
2007-10-10 13:09:25 -05:00
Andrew Tridgell
547d54a6de r5129: make sure we don't spin chewing CPU time due to my last change
(This used to be commit 69e97ad9c3)
2007-10-10 13:09:25 -05:00
Andrew Tridgell
9a70f446fc r5126: the composite code is no longer client specific or smb specific, so
rename the core structure to composite_context and the wait routine to
composite_wait() (suggestion from metze)
(This used to be commit cf11d05e35)
2007-10-10 13:09:25 -05:00
Andrew Tridgell
58d6c73e94 r5123: fixed a bug in the timed events handling. It was possible for a timed
event handler to trigger a free that could cause a timer to be
triggered twice. This changs fixes it properly by marking timer events
to be removed using a zero next_event time.

I also changed the default timeout for events.c to be infinite, so if
there are no events to handle then smbd will sit forever doing
nothing. That allows it to be swapped out completely when idle.
(This used to be commit 0f1fb7017e)
2007-10-10 13:09:25 -05:00
Andrew Tridgell
26bf3063d3 r5122: fixed name of winbind stream ops
(This used to be commit 984c737c1b)
2007-10-10 13:09:24 -05:00
Andrew Tridgell
2e953b967a r5121: added periodic name refresh requests for all our registered names, reporting any
name conflicts
(This used to be commit 69e6a1cd4b)
2007-10-10 13:09:24 -05:00
Andrew Tridgell
0700676da6 r5120: encode outgoing nbt packets when queueing them rather than in the send
event code, as elements of the callers packet structure could go away
while the queue is pending (if for example a name was de-registered
while a packet referencing that name is queued)
(This used to be commit 6726f15cf4)
2007-10-10 13:09:24 -05:00
Andrew Tridgell
784dde73bc r5119: fflush after talloc reports to ensure they are fully on disk when using tee
(This used to be commit e73e49aaa6)
2007-10-10 13:09:24 -05:00
Andrew Tridgell
aa985bdee0 r5118: added support for node status replies in nbtd. nmblookup -S now works against Samba4.
Also added support for the '*' wildcard name
(This used to be commit 2dd7ccf724)
2007-10-10 13:09:24 -05:00
Andrew Tridgell
5e6082b4b0 r5117: used a composite function to add 4 stage name registration. We send 3
broadcast name registration demands per name per interface at 1 second
intervals, then send a name overwrite request and demand. Any name
conflict replies are reported.
(This used to be commit d656fba6f1)
2007-10-10 13:09:24 -05:00
Andrew Tridgell
5269fb13a9 r5116: fixed build of the nbtlist code
(This used to be commit 506e1e823c)
2007-10-10 13:09:24 -05:00
Andrew Tridgell
b8ab357df9 r5115: enable the nbt daemon by default
(This used to be commit 4c0cc5fc11)
2007-10-10 13:09:24 -05:00
Andrew Tridgell
414f6c80b2 r5114: the nbtd task can now act as a basic B-node server. It registers its
names on the network and answers name queries. Lots of details are
still missing, but at least this now means you don't need a Samba3
nmbd to use Samba4.

missing pieces include:

 - name registrations should be "shout 3 times, then demand"

 - no WINS server yet

 - no master browser code
(This used to be commit d7d31fdc66)
2007-10-10 13:09:23 -05:00
Andrew Tridgell
37449657a8 r5109: - fixed handling of zero-length subcontexts in the ndr library
- added error checking on socket startup in nbtd
(This used to be commit 5707ebc9ec)
2007-10-10 13:09:23 -05:00
Andrew Tridgell
c7ded5ab0a 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 2fedca6adf)
2007-10-10 13:09:23 -05:00
Andrew Tridgell
a0ab1f7afd 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 39d1ced21b)
2007-10-10 13:09:23 -05:00
Andrew Tridgell
003fbe7f64 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 95d9766be8)
2007-10-10 13:09:23 -05:00
Andrew Tridgell
791426317c 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 ce62105434)
2007-10-10 13:09:23 -05:00
Andrew Tridgell
1447b9a8c1 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 339964a596)
2007-10-10 13:09:23 -05:00
Andrew Tridgell
597142ddd3 r5103: forgot to add two new files
these are the stream server helper functions
(This used to be commit 3c5a7650a9)
2007-10-10 13:09:22 -05:00
Andrew Tridgell
55d4d36993 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 cf6a46c3cb)
2007-10-10 13:09:22 -05:00
Tim Potter
5540449f1c 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 e561bc3efa)
2007-10-10 13:09:22 -05:00
Tim Potter
7e877072bd r5094: Use builtin swig types for converting between fixed width integer types.
(This used to be commit f2a1b237bc)
2007-10-10 13:09:22 -05:00
Andrew Bartlett
51ad25e8ea r5093: Make debugs less confusing when a 0 NTTIME is printed.
Andrew Bartlett
(This used to be commit 9493c47b18)
2007-10-10 13:09:22 -05:00
Andrew Bartlett
ea2209e3db r5092: Add a bit more const - moving it further into the LDB layer.
Andrew Bartlett
(This used to be commit ffad9b22be)
2007-10-10 13:09:22 -05:00
Andrew Bartlett
b4055c9908 r5091: The Kerberos secrets are queried by realm
Andrew Bartlett
(This used to be commit 8f38b5ae22)
2007-10-10 13:09:21 -05:00
Andrew Bartlett
5045bdc2a4 r5090: Fix up the IDL for LogonGetDomainInfo in NETLOGON.
Andrew Bartlett
(This used to be commit e5afc36093)
2007-10-10 13:09:21 -05:00
Andrew Bartlett
89d6c45d7c r5089: Fix indentation.
(This used to be commit 2e31694f9e)
2007-10-10 13:09:21 -05:00
Andrew Bartlett
1a013ce4d3 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 2206b0e8ca)
2007-10-10 13:09:21 -05:00
Tim Potter
7d43a2bdfe r5087: Add --swig to pidl flags so that swig .i files are generated with
make idl.
(This used to be commit 7ba9f329aa)
2007-10-10 13:09:21 -05:00
Andrew Bartlett
f0158210b3 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 a2a49d1be0)
2007-10-10 13:09:21 -05:00
Andrew Tridgell
efc42a068b 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 a69c1a9130)
2007-10-10 13:09:20 -05:00
Andrew Tridgell
2c0a1f5391 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 61c43509f7)
2007-10-10 13:09:20 -05:00
Andrew Tridgell
087fb574b2 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 27d79059f8)
2007-10-10 13:09:20 -05:00
Andrew Tridgell
465e089dd3 r5080: patch from ronnie to make our samr IDL a little more consistent
(This used to be commit 7607ddda3f)
2007-10-10 13:09:20 -05:00
Andrew Tridgell
6e614bf632 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 bfa870262e)
2007-10-10 13:09:20 -05:00
Tim Potter
d5b8ec7b0e r5074: Remove dead code.
(This used to be commit 36b46bb05a)
2007-10-10 13:09:20 -05:00
Tim Potter
47c7fac701 r5073: Call new autogenerator function for swig stuff instead of old one.
(This used to be commit a1c98101e4)
2007-10-10 13:09:20 -05:00