1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

3736 Commits

Author SHA1 Message Date
Günther Deschner
77b99c03b8 r5266: This is a nice typo ;-)
Guenther
2007-10-10 13:09:35 -05:00
Andrew Tridgell
554d1b70e7 r5261: translate nbt rcode errors to NTSTATUS codes 2007-10-10 13:09:35 -05:00
Andrew Tridgell
919bc14e7b r5260: - show an error message on nmblookup failure
- always try to enable broadcast on nbt name sockets (this matches
  samba3 behaviour better)
2007-10-10 13:09:35 -05:00
Andrew Tridgell
a9128f6544 r5259: make sure we give the ip of the interface that a name query comes in
on as the first IP in a multi-homed reply
2007-10-10 13:09:35 -05:00
Rafal Szczesniak
38ac6b8d57 r5256: More verbose description of functions (as I learn the code).
rafal
2007-10-10 13:09:35 -05:00
Andrew Tridgell
a4d44d4a9d r5253: need to pre-declare some structures 2007-10-10 13:09:35 -05:00
Andrew Tridgell
d56e68ebf5 r5252: - fixed nmblookup for the nbt api changes
- added a simple WINS server name registration and query test
2007-10-10 13:09:34 -05:00
Andrew Tridgell
a1553fa805 r5251: - renamed the nbtd server side structures to have a nbtd_ prefix, to
be consistent with the function names

- added WINS client support to the NBT server. It will do initial WINS
  registration, and WINS refresh, automatically failing over to
  secondary WINS servers and handling multi-homed servers where we need
  to register multiple IPs.

- added support for multi-homed name query replies, which are
  essential for multi-homed registration as the WINS server will query
  us to ensure we have the names when doing the secondary IPs in
  multi-homed registration
2007-10-10 13:09:34 -05:00
Andrew Tridgell
76be35cb99 r5250: - added low level support for retrying nbt name queries, rather than
having the 2nd layer functions do retries themselves. This makes the
  code simpler, and allows the TRN_ID to be reused in the retry (which
  is how it is supposed to work).

- added support for WACK replies to nbt name requests. A WACK reply
  specifies a timeout to wait for the real reply.

- added WINS name refresh async calls, supporting multiple wins
  servers and multiple IPs to register
2007-10-10 13:09:34 -05:00
Andrew Tridgell
75a6cfb2f6 r5249: don't include ';' in the default list separators for parsing
smb.conf. It was rarely (if ever?) used, and poses problems as it is
not multi-byte safe for character searches
2007-10-10 13:09:34 -05:00
Andrew Tridgell
e36b6882fd r5248: fixed a silly bug in DLIST_ADD_AFTER() 2007-10-10 13:09:34 -05:00
Tim Potter
ad12a90d0e r5247: Fix rpcclient to work with new swig interface. 2007-10-10 13:09:34 -05:00
Tim Potter
949f31ad28 r5245: Remove dead code. 2007-10-10 13:09:34 -05:00
Tim Potter
53b361657f r5244: Convert this module to use the new structure mapping SWIG stuff instead of
the old dictionary based routines.  The SAMR connect, close, enumdomains,
opendomain, enum{users,aliases,groups} functions now work again!
2007-10-10 13:09:33 -05:00
Tim Potter
c63668cbbe r5243: Woohoo - memory leak city! Comment out talloc_free() call until I
figure out a better way to pass tallocated memory around with SWIG.
2007-10-10 13:09:33 -05:00
Tim Potter
6dba5d6fb4 r5242: Check that argument is an integer or a long for uint32_t input
typemap.

The uint32_t output typemap must return a Python long as an unsigned
uint32_t cannot be fully represented by a Python int.

Likewise for the NTSTATUS typemap.
2007-10-10 13:09:33 -05:00
Tim Potter
e65741159d r5241: Generate swig wrappers for unions as well as structures. 2007-10-10 13:09:33 -05:00
Jelmer Vernooij
f2e6d71584 r5240: Don't return WERR_OK when no values were found (reported by Matt Cobb) 2007-10-10 13:09:33 -05:00
Jelmer Vernooij
b72a0ac654 r5237: Add error code for "class not registered" 2007-10-10 13:09:33 -05:00
Tim Potter
5a1f6c999e r5224: Add in/out typemaps for resume handles. This saves us having to much
around with pointers to just one uint32.

Add an output typemap to copy a policy handle as the talloc context is
destroyed before the wrapper function returns.  More work here needed
to avoid memory leaks.

Use the swig carrays.i file to create accessor and setter functions
for fixed width integer types.  Also add functions for struct samr_SamEntry
as it's returned by the LookupDomain RPC.  This really needs to be
done by pidl so I don't have to go through and find all the structures
that are returned in arrays.

Include security.i to give us SIDs and security descriptors.
2007-10-10 13:09:33 -05:00
Tim Potter
edb32b9b51 r5223: Rename dom_sid2 to dom_sid as we don't care about the difference
for the swig wrappers.
2007-10-10 13:09:33 -05:00
Andrew Tridgell
8fe477955d r5222: made the nbtd_self_packet() code more efficient 2007-10-10 13:09:32 -05:00
Andrew Tridgell
e8e499755a r5221: replace the str_list_*() code with new code based on talloc(). This is
a precursor to adding the wins client code in the nbt server.
2007-10-10 13:09:32 -05:00
Andrew Tridgell
d89b493aaf r5217: avoid epoll_ctl() if the event flags are already set correctly 2007-10-10 13:09:32 -05:00
Andrew Tridgell
c5f5e1d401 r5216: don't defend group names against incoming name registration requests 2007-10-10 13:09:32 -05:00
Andrew Tridgell
3e9788691f r5215: register aliases as both client and server node types, so nmblookup can see them 2007-10-10 13:09:32 -05:00
Andrew Tridgell
3270b07539 r5214: added support for "netbios aliases" in smb.conf 2007-10-10 13:09:31 -05:00
Andrew Tridgell
3935b5f7c5 r5213: do our name broadcast refresh requests as register packets not refresh
packets, as w2k3 and Samba3 do not defend against broadcast name
refresh packets
2007-10-10 13:09:31 -05:00
Andrew Tridgell
290dbd8cdc r5212: added checking for receiving our own packets as broadcasts 2007-10-10 13:09:31 -05:00
Andrew Tridgell
9eafe2caca r5211: added broadcast name defense against both registration and refresh
requests
2007-10-10 13:09:31 -05:00
Andrew Tridgell
b07a7e35f2 r5210: changed server side nbt functions to be prefixed with nbtd_ instead of
nbt_, so as to more clearly separate them from the client code in
libcli/nbt/
2007-10-10 13:09:31 -05:00
Jelmer Vernooij
7b847de64f r5209: Fix the endpoint mapper to work with IPX endpoints (which
accidently have the same protocol id as UUID's)
Before this, Samba would give NDR errors when contacting
a remote server that has IPX support enabled.

This one was on my long due bugs list.
2007-10-10 13:09:31 -05:00
Stefan Metzmacher
274ef2a206 r5199: fix some minor configure bugs
metze
2007-10-10 13:09:30 -05:00
Andrew Tridgell
2d7242f2ec r5198: don't consider failure to remove an epoll event as enough reason to
fallback to select(). This can happen in too many situations.
2007-10-10 13:09:30 -05:00
Andrew Tridgell
7f54c8a339 r5197: moved events code to lib/events/ (suggestion from metze) 2007-10-10 13:09:30 -05:00
Andrew Tridgell
180f29f9e0 r5196: fixed sily bug (that metze found) 2007-10-10 13:09:30 -05:00
Andrew Tridgell
236403cc4d r5195: most events don't need the time of the event, so save a gettimeofday() call
and just use timeval_current() when its actually needed
2007-10-10 13:09:30 -05:00
Andrew Tridgell
26aa1aa693 r5194: added support for using epoll instead of select() on systems that have
it. epoll is much more scalable than select(), but only exists on some
systems (such as Linux with the 2.6.x kernel). The code detects any
epoll system call failures at runtime and falls back to select() if
there is a problem, so it should be safe to compile this on a 2.6
kernel and run it on a 2.4.x kernel.

The speedup is quite large. It gains 20% in packet rate in the
BENCH-NBT test, on top of another 20% gain from the better timer
handling I added earlier. The really big gain will be when we are
dealing with large numbers of file descriptors. With epoll we can
handle hundreds of file descriptors all O(1), whereas with select it
is O(n).
2007-10-10 13:09:30 -05:00
Andrew Tridgell
90535bab95 r5193: make sure we mark the event dead when we free it on a dead connection 2007-10-10 13:09:29 -05:00
Tim Potter
5f40ff0f55 r5190: Grr - typo. 2007-10-10 13:09:29 -05:00
Andrew Tridgell
7be0bc93bd r5189: fixed a double free bug in the ltdb indexing code 2007-10-10 13:09:29 -05:00
Tim Potter
c40fb6625d r5188: Add config.mk file for swig. 2007-10-10 13:09:29 -05:00
Andrew Tridgell
b45b9436d7 r5187: ordered the timed events in the events code, which makes processing
events much more efficient (no linked lists need to be traversed, so
large numbers of timers are no problem)
2007-10-10 13:09:29 -05:00
Andrew Tridgell
d7b4b6de51 r5185: make all the events data structures private to events.c. This will
make it possible to add optimisations to the events code such as
keeping the next timed event in a sorted list, and using epoll for
file descriptor events.

I also removed the loop events code, as it wasn't being used anywhere,
and changed timed events to always be one-shot (as adding a new timed
event in the event handler is so easy to do if needed)
2007-10-10 13:09:29 -05:00
Alexander Bokovoy
0c96cc8bab r5173: Refer to a proper zone file name in resulting message 2007-10-10 13:09:29 -05:00
Andrew Tridgell
7720d247fe r5172: actually bind to the right address for the wildcard interface .... 2007-10-10 13:09:28 -05:00
Andrew Tridgell
b3edf17281 r5171: added support for "bind interfaces only" in nbtd. The solution was to
bind twice on each interface, once using the broadcast address and
once using the specific IP. We then only listen on the wildcard
address if we don't have "bind interface only" set. This also happens
to simplify the code that finds the right interface for an incoming
request.
2007-10-10 13:09:28 -05:00
Andrew Tridgell
2eefe4f8de r5170: fixed a bug handling events that have already timed out - they were
being treated as events that never time out, so they happened on the
next other event
2007-10-10 13:09:28 -05:00
Alexander Bokovoy
f4fc885c14 r5169: As provisioning script generates everything under $newdb/ directory, put generated domain zone there as well 2007-10-10 13:09:28 -05:00
Andrew Tridgell
bb1298a2eb r5156: started on test driven development of the nbt server. This adds a
NBT-REGISTER test that tests that a server correctly defends its name
against broadcast name registrations.

Jeremy, you might like to look at this. Samba3 nmbd fails to respond.
2007-10-10 13:09:28 -05:00