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

3719 Commits

Author SHA1 Message Date
Jelmer Vernooij
480ee7243c r5240: Don't return WERR_OK when no values were found (reported by Matt Cobb)
(This used to be commit f2e6d71584)
2007-10-10 13:09:33 -05:00
Jelmer Vernooij
58a9570353 r5237: Add error code for "class not registered"
(This used to be commit b72a0ac654)
2007-10-10 13:09:33 -05:00
Tim Potter
05db954edd 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.
(This used to be commit 5a1f6c999e)
2007-10-10 13:09:33 -05:00
Tim Potter
aa747a5712 r5223: Rename dom_sid2 to dom_sid as we don't care about the difference
for the swig wrappers.
(This used to be commit edb32b9b51)
2007-10-10 13:09:33 -05:00
Andrew Tridgell
6348a343de r5222: made the nbtd_self_packet() code more efficient
(This used to be commit 8fe477955d)
2007-10-10 13:09:32 -05:00
Andrew Tridgell
db4ba6e690 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.
(This used to be commit e8e499755a)
2007-10-10 13:09:32 -05:00
Andrew Tridgell
567b7a90f6 r5217: avoid epoll_ctl() if the event flags are already set correctly
(This used to be commit d89b493aaf)
2007-10-10 13:09:32 -05:00
Andrew Tridgell
5da52d3209 r5216: don't defend group names against incoming name registration requests
(This used to be commit c5f5e1d401)
2007-10-10 13:09:32 -05:00
Andrew Tridgell
6357adc6ee r5215: register aliases as both client and server node types, so nmblookup can see them
(This used to be commit 3e9788691f)
2007-10-10 13:09:32 -05:00
Andrew Tridgell
32899da200 r5214: added support for "netbios aliases" in smb.conf
(This used to be commit 3270b07539)
2007-10-10 13:09:31 -05:00
Andrew Tridgell
c832e57ceb 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
(This used to be commit 3935b5f7c5)
2007-10-10 13:09:31 -05:00
Andrew Tridgell
1b27d0ce12 r5212: added checking for receiving our own packets as broadcasts
(This used to be commit 290dbd8cdc)
2007-10-10 13:09:31 -05:00
Andrew Tridgell
9eb33fc212 r5211: added broadcast name defense against both registration and refresh
requests
(This used to be commit 9eafe2caca)
2007-10-10 13:09:31 -05:00
Andrew Tridgell
bd22848ad8 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/
(This used to be commit b07a7e35f2)
2007-10-10 13:09:31 -05:00
Jelmer Vernooij
60d9b40ba4 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.
(This used to be commit 7b847de64f)
2007-10-10 13:09:31 -05:00
Stefan Metzmacher
10c211f2af r5199: fix some minor configure bugs
metze
(This used to be commit 274ef2a206)
2007-10-10 13:09:30 -05:00
Andrew Tridgell
e6b8c811ca r5198: don't consider failure to remove an epoll event as enough reason to
fallback to select(). This can happen in too many situations.
(This used to be commit 2d7242f2ec)
2007-10-10 13:09:30 -05:00
Andrew Tridgell
131dc76d56 r5197: moved events code to lib/events/ (suggestion from metze)
(This used to be commit 7f54c8a339)
2007-10-10 13:09:30 -05:00
Andrew Tridgell
dc35a0eb4f r5196: fixed sily bug (that metze found)
(This used to be commit 180f29f9e0)
2007-10-10 13:09:30 -05:00
Andrew Tridgell
0798d54b4f 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
(This used to be commit 236403cc4d)
2007-10-10 13:09:30 -05:00
Andrew Tridgell
6e0a56f73b 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).
(This used to be commit 26aa1aa693)
2007-10-10 13:09:30 -05:00
Andrew Tridgell
a097414ed2 r5193: make sure we mark the event dead when we free it on a dead connection
(This used to be commit 90535bab95)
2007-10-10 13:09:29 -05:00
Tim Potter
c3f8ef9424 r5190: Grr - typo.
(This used to be commit 5f40ff0f55)
2007-10-10 13:09:29 -05:00
Andrew Tridgell
df9d1a3709 r5189: fixed a double free bug in the ltdb indexing code
(This used to be commit 7be0bc93bd)
2007-10-10 13:09:29 -05:00
Tim Potter
e951ffa761 r5188: Add config.mk file for swig.
(This used to be commit c40fb6625d)
2007-10-10 13:09:29 -05:00
Andrew Tridgell
dd638d3e53 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)
(This used to be commit b45b9436d7)
2007-10-10 13:09:29 -05:00
Andrew Tridgell
66170ef8b3 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)
(This used to be commit d7b4b6de51)
2007-10-10 13:09:29 -05:00
Alexander Bokovoy
1774b36c14 r5173: Refer to a proper zone file name in resulting message
(This used to be commit 0c96cc8bab)
2007-10-10 13:09:29 -05:00
Andrew Tridgell
906ca09578 r5172: actually bind to the right address for the wildcard interface ....
(This used to be commit 7720d247fe)
2007-10-10 13:09:28 -05:00
Andrew Tridgell
77cdd7c0ff 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.
(This used to be commit b3edf17281)
2007-10-10 13:09:28 -05:00
Andrew Tridgell
96f02f7403 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
(This used to be commit 2eefe4f8de)
2007-10-10 13:09:28 -05:00
Alexander Bokovoy
578b6e5567 r5169: As provisioning script generates everything under $newdb/ directory, put generated domain zone there as well
(This used to be commit f4fc885c14)
2007-10-10 13:09:28 -05:00
Andrew Tridgell
831e06810a 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.
(This used to be commit bb1298a2eb)
2007-10-10 13:09:28 -05:00
Andrew Tridgell
9b9c23b19b r5155: define ipv4address as a based IDL type, mapped to a "const char *" in
the header, and defined on the wire as a 4 byte network byte order
IP. This means the calling code doesn't have to worry about network
byte order conversions.
(This used to be commit 72048e3717)
2007-10-10 13:09:28 -05:00
Stefan Metzmacher
c4f115aa1b r5148: use ipv4_addr also in epmapper idl
metze
(This used to be commit cbc1f17282)
2007-10-10 13:09:28 -05:00
Stefan Metzmacher
1545d6ecf4 r5147: remove unused var
metze
(This used to be commit 79e79552e6)
2007-10-10 13:09:27 -05:00
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