1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-29 04:23:51 +03:00
Commit Graph

162 Commits

Author SHA1 Message Date
Stefan Metzmacher
192c05556f r25600: fix stupid typo...this should fix the build on sunX
metze
2007-10-10 15:08:03 -05:00
Jelmer Vernooij
e3df90927b r25545: Use inet_ntop for ipv4 code as well - should make it easier to share code between IPv4 and IPv6 later on. 2007-10-10 15:07:51 -05:00
Jelmer Vernooij
5e814287ba r25522: Convert to standard bool types. 2007-10-10 15:07:47 -05:00
Jelmer Vernooij
fd697d77c9 r25430: Add the loadparm context to all parametric options. 2007-10-10 15:07:31 -05:00
Jelmer Vernooij
02b4621181 r25411: Fix IPv6 socket backend. 2007-10-10 15:07:29 -05:00
Jelmer Vernooij
3fcc960839 r25398: Parse loadparm context to all lp_*() functions. 2007-10-10 15:07:25 -05:00
Jelmer Vernooij
e227c74971 r25384: Support DGRAM IPv6 sockets. 2007-10-10 15:07:23 -05:00
Stefan Metzmacher
4c8063b9c4 r25122: fix interface detection code
jelmer: I wonder what broke it...

metze
2007-10-10 15:06:43 -05:00
Jelmer Vernooij
3f30cd5688 r25043: Avoid allocation on with NULL parent. 2007-10-10 15:05:47 -05:00
Jelmer Vernooij
df9cebcb97 r25035: Fix some more warnings, use service pointer rather than service number in more places. 2007-10-10 15:05:43 -05:00
Jelmer Vernooij
5085c53fcf r25027: Fix more warnings. 2007-10-10 15:05:41 -05:00
Jelmer Vernooij
abe8349f9b r25026: Move param/param.h out of includes.h 2007-10-10 15:05:38 -05:00
Jelmer Vernooij
0bcb21ed74 r25001: Fix more C++ and other warnings, fix some of the indentation with ts=4 lines that I accidently added earlier. 2007-10-10 15:05:28 -05:00
Jelmer Vernooij
a5a1a55405 r24992: Remove some uses of lp_*(). 2007-10-10 15:05:25 -05:00
Jelmer Vernooij
15f47aaf53 r24939: Integrate IPv4 and IPv6 modules (a lot of code can be shared). 2007-10-10 15:03:39 -05:00
Jelmer Vernooij
9b256a0ca2 r24937: Merge tests spoolss RPC callbacks. 2007-10-10 15:03:39 -05:00
Jelmer Vernooij
1ce32673d9 r24712: No longer expose the 'BOOL' data type in any interfaces. 2007-10-10 15:02:54 -05:00
Andrew Tridgell
fcf38a38ac r23792: convert Samba4 to GPLv3
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
2007-10-10 14:59:12 -05:00
Andrew Tridgell
4e31eda055 r23701: when we create a new socket with socket_accept(), clear any flags that
were set in the old one. Otherwise SOCKET_FLAG_NOCLOSE causes a major
fd leak
2007-10-10 14:59:05 -05:00
Andrew Tridgell
d57aaf5ba6 r22960: added a SOCKET_FLAG_NOCLOSE to allow us to tell the socket layer that
we will handle the close of the socket
2007-10-10 14:52:31 -05:00
Jelmer Vernooij
5ff665b653 r22602: s/HAVE_SOCKET_IPV6/HAVE_IPV6/ to match the define used by Heimdal. 2007-10-10 14:51:50 -05:00
Jelmer Vernooij
2f64b75846 r22503: Add support for dgram to socket_ipv6. No tests yet... 2007-10-10 14:51:34 -05:00
Jelmer Vernooij
7a0da66e39 r22488: Hopefully fix ipv6. 2007-10-10 14:51:33 -05:00
Stefan Metzmacher
e0e35965d1 r22404: more dependencies which should be private
metze
2007-10-10 14:51:14 -05:00
Andrew Tridgell
af6661e442 r22089: check the return value of interpret_addr2() 2007-10-10 14:49:50 -05:00
Jelmer Vernooij
4d755fb5d7 r21656: Move tests a bit closer to the things they test, should make syncing with samba3 easier. 2007-10-10 14:49:05 -05:00
Stefan Metzmacher
8999a9eb2e r18708: much nicer fix
metze
2007-10-10 14:19:03 -05:00
Stefan Metzmacher
018b142d93 r18704: readd BOOL define to fix the build
but I think this is the wrong fix...

metze
2007-10-10 14:19:03 -05:00
Stefan Metzmacher
cc729e646c r18685: we don't need this here
metze
2007-10-10 14:19:02 -05:00
Andrew Tridgell
ac71f40f8f r18589: make inclusion of net/if.h conditional. It breaks HPUX with gcc. 2007-10-10 14:18:53 -05:00
Andrew Tridgell
bde18f3d5c r18563: - move more of the header checks into lib/replace/
- change the test for net/if.h to do a full compile, not just an
  existance test. net/if.h is completely broken on hpux, and can never
  compile (it uses stuff before it defines it), so by using a
  AC_TRY_COMPILE() test we avoid using net/if.h on hpux, which should
  fix the build
2007-10-10 14:18:46 -05:00
Stefan Metzmacher
04a0a5144a r18553: - confdefs.h is always included in configure checks no need to include them explicit
- undefine _XOPEN_SOURCE_EXTENDED for the AIX interface detection test
  #define _XOPEN_SOURCE_EXTENDED 1 brings in sa_len to sockaddr on Tru64
  which means the AIX code compiles...

metze
2007-10-10 14:18:45 -05:00
Stefan Metzmacher
8fa9852160 r18548: don't use #elif as we don't notice when 2 HAVE_IFACE_ versions are defined
try to find the problem on Tru64...where configure says the AIX method finds 1 interface
but later can't compile netif.c. (revision 18486 was the last that detects ifconf with 2 interfaces)

metze
2007-10-10 14:18:45 -05:00
Andrew Tridgell
449fab2c26 r18321: fixed some warnings on AIX 2007-10-10 14:18:08 -05:00
Stefan Metzmacher
135d096776 r18213: don't list LIBREPLACE depdendecies explicit and
always at it as first private dependencies

metze
2007-10-10 14:17:50 -05:00
Andrew Tridgell
18542f184f r18130: the move to system/ in libreplace broke some things ... should be
happier now
2007-10-10 14:17:37 -05:00
Jelmer Vernooij
f7afa1cb77 r17930: Merge noinclude branch:
* Move dlinklist.h, smb.h to subsystem-specific directories
 * Clean up ads.h and move what is left of it to dsdb/
   (only place where it's used)
2007-10-10 14:16:54 -05:00
Stefan Metzmacher
f20e251bfd r17586: merge lib/netif into lib/socket and use -lnsl -lsocket on the
configure check for the interfaces.

should fix the build on some old sun boxes

metze
2007-10-10 14:15:39 -05:00
Andrew Bartlett
650b99b19d r17524: Lets see if we can try and get the socket_wapper includes to be
pre-processed last, and get AIX and some other hosts to pass make test
again (I think the macros were being over-overridden).

Andrew Bartlett
2007-10-10 14:15:32 -05:00
Stefan Metzmacher
b5c06d5b4c r17253: add configure checks for writev/readv to see how portable they're
metze
2007-10-10 14:10:24 -05:00
Andrew Bartlett
5d7c9c12cb r17197: This patch moves the encryption of bulk data on SASL negotiated security
contexts from the application layer into the socket layer.

This improves a number of correctness aspects, as we now allow LDAP
packets to cross multiple SASL packets.  It should also make it much
easier to write async LDAP tests from windows clients, as they use SASL
by default.  It is also vital to allowing OpenLDAP clients to use GSSAPI
against Samba4, as it negotiates a rather small SASL buffer size.

This patch mirrors the earlier work done to move TLS into the socket
layer.

Unusual in this pstch is the extra read callback argument I take.  As
SASL is a layer on top of a socket, it is entirely possible for the
SASL layer to drain a socket dry, but for the caller not to have read
all the decrypted data.  This would leave the system without an event
to restart the read (as the socket is dry).

As such, I re-invoke the read handler from a timed callback, which
should trigger on the next running of the event loop.  I believe that
the TLS code does require a similar callback.

In trying to understand why this is required, imagine a SASL-encrypted
LDAP packet in the following formation:

+-----------------+---------------------+
| SASL  Packet #1 | SASL Packet #2      |
----------------------------------------+
| LDAP Packet #1       | LDAP Packet #2 |
----------------------------------------+

In the old code, this was illegal, but it is perfectly standard
SASL-encrypted LDAP.  Without the callback, we would read and process
the first LDAP packet, and the SASL code would have read the second SASL
packet (to decrypt enough data for the LDAP packet), and no data would
remain on the socket.

Without data on the socket, read events stop.  That is why I add timed
events, until the SASL buffer is drained.

Another approach would be to add a hack to the event system, to have it
pretend there remained data to read off the network (but that is ugly).

In improving the code, to handle more real-world cases, I've been able
to remove almost all the special-cases in the testnonblock code.  The
only special case is that we must use a deterministic partial packet
when calling send, rather than a random length.  (1 + n/2).  This is
needed because of the way the SASL and TLS code works, and the 'resend
on failure' requirements.

Andrew Bartlett
2007-10-10 14:10:18 -05:00
Andrew Bartlett
9c33c6a20a r17168: Now that TLS (and soon SASL) is below the socket layer, we need to
make the testnonblock skip some things.  The socket *under* the tls
socket is still tested.

Andrew Bartlett
2007-10-10 14:10:15 -05:00
Andrew Tridgell
61c6100617 r15854: more talloc_set_destructor() typesafe fixes 2007-10-10 14:08:32 -05:00
Andrew Tridgell
dea82fa615 r15798: shortcut the lookup of "localhost" in the ipv6 backend 2007-10-10 14:08:21 -05:00
Jelmer Vernooij
aa6d66fda6 r15573: Fix build of systems that have iconv headers in non-standard locations
Split of system/locale.h header from system/iconv.h

Previously, iconv wasn't being used on these systems
2007-10-10 14:05:58 -05:00
Andrew Bartlett
09b2f30dfa r15400: Move the TLS code behind the socket interface.
This reduces caller complexity, because the TLS code is now called
just like any other socket.  (A new socket context is returned by the
tls_init_server and tls_init_client routines).

When TLS is not available, the original socket is returned.

Andrew Bartlett
2007-10-10 14:05:32 -05:00
Jelmer Vernooij
f919fd6655 r15384: Improve naming of socket library, disable Requires(.private)? fields in pkg-config files for now as
they break external projects.
2007-10-10 14:05:30 -05:00
Jelmer Vernooij
49bac12767 r15376: Add detection of -lnsl, required for building on SUN boxes. 2007-10-10 14:05:29 -05:00
Jelmer Vernooij
c95ad11307 r15373: Rename SOCKET to LIBSAMBA-SOCKET to prevent name clashes with -lsocket on SUN
boxes.
2007-10-10 14:05:28 -05:00
Andrew Bartlett
a312812b92 r15356: Remove unused 'flags' argument from socket_send() and friends.
This is in preperation for making TLS a socket library.

Andrew Bartlett
2007-10-10 14:05:25 -05:00