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

3757 Commits

Author SHA1 Message Date
Andrew Tridgell
35537c1255 r5302: fixed a compilation problem on solaris caused by the recent include
changes
(This used to be commit e7e015f79b)
2007-10-10 13:09:39 -05:00
Andrew Tridgell
f9529111af r5301: fixed pthreads build
(This used to be commit a7a72de07b)
2007-10-10 13:09:39 -05:00
Andrew Tridgell
8674eaa5cc r5300: more uint32 and system/filesys.h build fixes when developer mode is enabled
(This used to be commit 93931b1a74)
2007-10-10 13:09:39 -05:00
Andrew Tridgell
ec15008ec7 r5299: fixed an include ordering problem
(This used to be commit 483b7af1fd)
2007-10-10 13:09:38 -05:00
Andrew Tridgell
e82aad1ce3 r5298: - got rid of pstring.h from includes.h. This at least makes it a bit
less likely that anyone will use pstring for new code

 - got rid of winbind_client.h from includes.h. This one triggered a
   huge change, as winbind_client.h was including system/filesys.h and
   defining the old uint32 and uint16 types, as well as its own
   pstring and fstring.
(This used to be commit 9db6c79e90)
2007-10-10 13:09:38 -05:00
Andrew Tridgell
e3aae721a7 r5297: ensure pstring is not in the generated prototypes
(This used to be commit b4103d9f2b)
2007-10-10 13:09:38 -05:00
Andrew Tridgell
fedf0b0d91 r5296: - only include the tdb headers where they are needed
- removed the u32 hack in events.c as I think this was only needed as
  tdb.h defines u32. Metze, can you check that this hack is indeed no
  longer needed on your suse system?
(This used to be commit 6f79432fe6)
2007-10-10 13:09:38 -05:00
Andrew Tridgell
b9bb7f596d r5294: - added a separate NBT-WINS test for WINS operations (register, refresh, release and query)
- change the iface_n_*() functions to return a "const char *" instead of a "struct ipv4_addr"
  I think that in general we should move towards "const char *" for
  all IP addresses, as this makes IPv6 much easier, and is also easier
  to debug. Andrew, when you get a chance, could you fix some of the
  auth code to use strings for IPs ?

- return a NTSTATUS error on bad name queries and node status instead
  of using rcode. This makes the calling code simpler.

- added low level name release code in libcli/nbt/

- use a real IP in the register and wins nbt torture tests, as w2k3
  WINS server silently rejects some operations that don't come from the
  IP being used (eg. it says "yes" to a release, but does not in fact
  release the name)
(This used to be commit bb1ab11d8e)
2007-10-10 13:09:37 -05:00
Tim Potter
57f69e6f37 r5293: Map an empty policy handle to None when creating policy handles, and
refuse to accept None as a policy handle when accepting them.  Now we
don't segfault after running the samr_Shutdown() test.
(This used to be commit 2f0419c4d8)
2007-10-10 13:09:37 -05:00
Andrew Tridgell
22adab2004 r5292: ensure we cleanup the epoll_fd on event context destruction
(This used to be commit e820fca506)
2007-10-10 13:09:37 -05:00
Andrew Tridgell
1ac4f562e2 r5291: fixed ncacn_ip_tcp against windows
(This used to be commit 8df8308f7f)
2007-10-10 13:09:37 -05:00
Jelmer Vernooij
42ef2f8e7b r5288: Make alignment code more generic
(This used to be commit 5c2f0df566)
2007-10-10 13:09:37 -05:00
Jelmer Vernooij
632acd9bc7 r5286: Some first steps in making the pidl code somewhat more generic for the
various data types:

Add ndr_flags argument to all ndr push/pull scalar functions
(This used to be commit ab490c0c88)
2007-10-10 13:09:36 -05:00
Stefan Metzmacher
73d317e0da r5285: add a generic dlist_item struct which has a void *ptr for the data
metze
(This used to be commit 7dbd9e7aab)
2007-10-10 13:09:36 -05:00
Stefan Metzmacher
efd042e979 r5284: this is needed on my server
+/* this #undef is needed on my SuSE 9.2 Box with glibc-devel-2.3.3-118 */
+#undef u32

as sys/epoll.h has this:
typedef union epoll_data
{
  void *ptr;
  int fd;
  uint32_t u32;
  uint64_t u64;
} epoll_data_t;

metze
(This used to be commit b4928f3ea8)
2007-10-10 13:09:36 -05:00
Gerald Carter
6f99430d22 r5282: merging autogen fixes from 3_0
(This used to be commit ece7a3918e)
2007-10-10 13:09:36 -05:00
Andrew Tridgell
63438299ae r5277: initialise the multi_homed flag in the name registration test
(This used to be commit d51fcee29a)
2007-10-10 13:09:36 -05:00
Andrew Tridgell
998c856d90 r5276: - added support for NBT_OPCODE_REFRESH2 (type 0x9)
- when registering with a WINS server, initially use multi-homed
  registration, then switch to name refresh requests. Send refresh
  requests only to the WINS server that responded to our
  registration. If that server goes away, then start the registration
  from scratch. This makes registration more robust to WINS server
  failure.

- send WINS registration requests out on our first interface rather
  than an unbound interface, to avoid the problem of WACK replies
  being sent to the wrong port (w2k3 WINS server does this)
(This used to be commit f7712ac746)
2007-10-10 13:09:36 -05:00
Andrew Tridgell
2513ac33de r5275: - added support for NBT_OPCODE_MULTI_HOME_REG (opcode 0xf) for WINS name registrations
- fixed a bug in the send queue handling on timeouts

- added support for handling unexpected replies (replies to the wrong
  port) at the nbtsocket layer

- added separate layer 2 code for wins refresh and wins registration
(This used to be commit 2502b02898)
2007-10-10 13:09:36 -05:00
Andrew Tridgell
f6f70999ca r5274: fixed some const warnings by making the str_list_ functions return "const char **"
(This used to be commit 4165f21635)
2007-10-10 13:09:35 -05:00
Andrew Tridgell
579d40052c r5273: fixed another bug in the code that keeps timed events
sorted. Hopefully it really works now :-)
(This used to be commit 34e1a3ad78)
2007-10-10 13:09:35 -05:00
Günther Deschner
c4eeb0459c r5266: This is a nice typo ;-)
Guenther
(This used to be commit 77b99c03b8)
2007-10-10 13:09:35 -05:00
Andrew Tridgell
b69a2c0d6b r5261: translate nbt rcode errors to NTSTATUS codes
(This used to be commit 554d1b70e7)
2007-10-10 13:09:35 -05:00
Andrew Tridgell
fcb78064bf r5260: - show an error message on nmblookup failure
- always try to enable broadcast on nbt name sockets (this matches
  samba3 behaviour better)
(This used to be commit 919bc14e7b)
2007-10-10 13:09:35 -05:00
Andrew Tridgell
d09311baa7 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
(This used to be commit a9128f6544)
2007-10-10 13:09:35 -05:00
Rafal Szczesniak
f0b403f27a r5256: More verbose description of functions (as I learn the code).
rafal
(This used to be commit 38ac6b8d57)
2007-10-10 13:09:35 -05:00
Andrew Tridgell
dfe907313b r5253: need to pre-declare some structures
(This used to be commit a4d44d4a9d)
2007-10-10 13:09:35 -05:00
Andrew Tridgell
7f10614e94 r5252: - fixed nmblookup for the nbt api changes
- added a simple WINS server name registration and query test
(This used to be commit d56e68ebf5)
2007-10-10 13:09:34 -05:00
Andrew Tridgell
a75e9a3ee9 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
(This used to be commit a1553fa805)
2007-10-10 13:09:34 -05:00
Andrew Tridgell
e0caea68f5 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
(This used to be commit 76be35cb99)
2007-10-10 13:09:34 -05:00
Andrew Tridgell
4559bc7796 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
(This used to be commit 75a6cfb2f6)
2007-10-10 13:09:34 -05:00
Andrew Tridgell
0628d5fdeb r5248: fixed a silly bug in DLIST_ADD_AFTER()
(This used to be commit e36b6882fd)
2007-10-10 13:09:34 -05:00
Tim Potter
7411bf6775 r5247: Fix rpcclient to work with new swig interface.
(This used to be commit ad12a90d0e)
2007-10-10 13:09:34 -05:00
Tim Potter
a54dd495ce r5245: Remove dead code.
(This used to be commit 949f31ad28)
2007-10-10 13:09:34 -05:00
Tim Potter
d8e1c7f0a7 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!
(This used to be commit 53b361657f)
2007-10-10 13:09:33 -05:00
Tim Potter
e282b83381 r5243: Woohoo - memory leak city! Comment out talloc_free() call until I
figure out a better way to pass tallocated memory around with SWIG.
(This used to be commit c63668cbbe)
2007-10-10 13:09:33 -05:00
Tim Potter
a36c43bc21 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.
(This used to be commit 6dba5d6fb4)
2007-10-10 13:09:33 -05:00
Tim Potter
e2e8db3a65 r5241: Generate swig wrappers for unions as well as structures.
(This used to be commit e65741159d)
2007-10-10 13:09:33 -05:00
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