1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-05 12:23:50 +03:00
Commit Graph

259 Commits

Author SHA1 Message Date
Jelmer Vernooij
8768bec81f r19676: Fix some more dependencies. 2007-10-10 14:25:29 -05:00
Stefan Metzmacher
f37c9f4d92 r19675: the process model don't depend on heimdal anymore
and only have private depdendencies

metze
2007-10-10 14:25:29 -05:00
Stefan Metzmacher
f02f7ed19d r19643: make process_model thread compile again
metze
2007-10-10 14:25:24 -05:00
Stefan Metzmacher
59fe6cfaba r19610: fix the build
metze
2007-10-10 14:25:04 -05:00
Andrew Bartlett
4826f17351 r19604: This is a massive commit, and I appologise in advance for it's size.
This merges Samba4 with lorikeet-heimdal, which itself has been
tracking Heimdal CVS for the past couple of weeks.

This is such a big change because Heimdal reorganised it's internal
structures, with the mechglue merge, and because many of our 'wishes' have been granted:  we now have DCE_STYLE GSSAPI, send_to_kdc hooks and many other features merged into the mainline code.  We have adapted to upstream's choice of API in these cases.

In gensec_gssapi and gensec_krb5, we either expect a valid PAC, or NO
PAC.  This matches windows behavour.  We also have an option to
require the PAC to be present (which allows us to automate the testing
of this code).

This also includes a restructure of how the kerberos dependencies are
handled, due to the fallout of the merge.

Andrew Bartlett
2007-10-10 14:25:03 -05:00
Jelmer Vernooij
8143de855c r19573: Move secrets.o into param/ (subsystems haven't been integrated yet). 2007-10-10 14:24:55 -05:00
Jelmer Vernooij
3894497a23 r19569: Require that all public header files have a destination path. Fix
places where this was currently not the case.
2007-10-10 14:24:53 -05:00
Jelmer Vernooij
eefa64cbe3 r19539: Move pidfile to smbd/ 2007-10-10 14:24:46 -05:00
Jelmer Vernooij
7a01235067 r19507: Merge my DSO fixes branch. Building Samba's libraries as shared libraries
works again now, by specifying --enable-dso to configure.
2007-10-10 14:24:41 -05:00
Andrew Tridgell
f11112d7f0 r18806: fixed two spelling errors 2007-10-10 14:19:13 -05:00
Andrew Tridgell
e46d8ed53f r18805: make error message match function name 2007-10-10 14:19:12 -05:00
Andrew Tridgell
6a2144caab r18360: better handling of child process killing in standard mode 2007-10-10 14:18:18 -05:00
Jelmer Vernooij
8b622c5ded r18168: Use {NULL} rather than POPT_TABLEEND, which is not always available. 2007-10-10 14:17:45 -05:00
Jelmer Vernooij
1adf65b4d7 r18121: Simplify m4 code, hopefully fix Samba4 build problems. 2007-10-10 14:17:35 -05:00
Andrew Tridgell
c079cedb08 r18117: first steps in making samba4 use libreplace 2007-10-10 14:17:34 -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
3711b968ad r17227: don't call a function which takes some nonoptional args
with NULL.

metze
2007-10-10 14:10:22 -05:00
Simo Sorce
15b8fafb99 r17209: Add dependency over the new share configuration module into smbd
Should fix some build farm machine
2007-10-10 14:10:19 -05:00
Simo Sorce
a89cc346b9 r17206: Add a modular API for share configuration.
Commit the classic backwards compatible module which is the default one
2007-10-10 14:10:18 -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
Jelmer Vernooij
8d95bf14b9 r15580: (Hopefully) fix pthreads process model 2007-10-10 14:05:59 -05:00
Jelmer Vernooij
d72c5c8f75 r15572: Trim build/m4/rewrite.m4 a bit more, remove unused tests. 2007-10-10 14:05:58 -05:00
Jelmer Vernooij
0654739166 r15301: Use static libraries internally. This required a few hacks in the build
system - these should be removed later on.
2007-10-10 14:05:07 -05:00
Jelmer Vernooij
6646384aaf r15298: Fix the build using a few hacks in the build system.
Recursive dependencies are now forbidden (the build system
will bail out if there are any).

I've split up auth_sam.c into auth_sam.c and sam.c. Andrew,
please rename sam.c / move its contents to whatever/wherever you think suits
best.
2007-10-10 14:05:04 -05:00
Stefan Metzmacher
0754154f51 r15277: - fix the build on netbsd, where stdlib.h has the setproctitle() prototype
but --with-setproctitle wasn't used

metze
2007-10-10 14:05:01 -05:00
Jelmer Vernooij
2f06305e53 r15274: Drop default EXT_LIB_ prefix for external libraries. Fixes issues with local
(empty) libpopt.a overriding global one
2007-10-10 14:05:00 -05:00
Stefan Metzmacher
35936fd474 r15273: fix setproctitle support
metze
2007-10-10 14:05:00 -05:00
Jelmer Vernooij
2fbb4d91fa r15223: Move heimdal's -I parameters from the global list of includes to
the subsystems in question
2007-10-10 14:04:20 -05:00
Jelmer Vernooij
555ca1df1c r15212: Simplify setproctitle code 2007-10-10 14:04:19 -05:00
Jelmer Vernooij
adc8a019b6 r15207: Introduce PRIVATE_DEPENDENCIES and PUBLIC_DEPENDENCIES as replacement
for REQUIRED_SUBSYSTEMS.
2007-10-10 14:04:18 -05:00
James Peach
7e4ad7e8e5 r15186: Introduce ISDOT and ISDOTDOT macros for testing whether a filename is
"." for "..". These express the intention better that strcmp or strequal
and improve searchability via cscope/ctags.
2007-10-10 14:04:14 -05:00
Stefan Metzmacher
2b0ce388a4 r15182: make stuff more portable
metze
2007-10-10 14:04:13 -05:00
Jelmer Vernooij
3ebdae4217 r15179: Detect setproctitle if it is in libc. Patch by Timur Bakevey 2007-10-10 14:04:13 -05:00
Volker Lendecke
5f1d52f232 r15100: Port the bugfix for #3569 to Samba4 2007-10-10 14:04:09 -05:00
Jelmer Vernooij
d3106699db r14997: Fix build of static libraries. Libraries build fine now, but linking doesn't
work yet.
2007-10-10 14:03:59 -05:00
Stefan Metzmacher
ad84a69db2 r14890: fix the usage of popt...
I don't know why this causes problems on my laptop today...

anyway we have done this change in smbtorture month ago...

metze
2007-10-10 14:00:12 -05:00
Stefan Metzmacher
bac95bb8f4 r14736: - the ntvfs subsystem should not know about smb_server.h
- the process module subsystem should not know about smb_server.h
- the smb_server module should not know about process models

metze
2007-10-10 13:59:17 -05:00
Jelmer Vernooij
ed382873fd r14572: Give libraries saner names, remove some .pc files, make some things
subsystems in case a library doesn't make sense.
2007-10-10 13:58:49 -05:00
Jelmer Vernooij
e71cca7f0c r14571: More improvements on shared library support in Samba. Only ldb is left now... 2007-10-10 13:58:49 -05:00
Jelmer Vernooij
8e84e6cb6b r14567: Make some more functions public. 2007-10-10 13:58:48 -05:00
Jelmer Vernooij
eb435386f0 r14554: Write out header dependencies. This means all C files affected will be
rebuilt when a header file is changed. It also means parallel builds work now.

It will take a minute or so to generate all the dependency information,
but there should be no need to rebuild that information later on, unless
a file changes.

This behaviour is only enabled when building in developer mode
(--enable-developer) and requires a GNU make (or compatible). In all other
cases, the file 'static_deps.mk' is included, which contains some basic
hardcoded dependency information.
2007-10-10 13:58:45 -05:00
Jelmer Vernooij
1a16a6f1df r14380: Reduce the size of structs.h 2007-10-10 13:57:16 -05:00
Stefan Metzmacher
180a79d103 r14205: move smb specific stuff out of includes.h (finally!!!:-)
all this changes really help ccache to speed up the samba4 build:-)

metze
2007-10-10 13:57:03 -05:00
Stefan Metzmacher
defc9438d1 r14100: print out the title with the thread specific debug messages
metze
2007-10-10 13:56:50 -05:00
Stefan Metzmacher
fb9e7d176a r14095: disable setproctitle support by default
--with-setproctitle enables it

metze
2007-10-10 13:56:50 -05:00
Jelmer Vernooij
b6ffad3860 r14094: Use saner module directory names, fix loading of server service modules. 2007-10-10 13:56:49 -05:00
Stefan Metzmacher
63778a76be r14082: fix the build of process model thread
metze
2007-10-10 13:56:49 -05:00
Stefan Metzmacher
526f20bbec r14079: I just found the setproctitle library from alt linux:-)
- add set_title hook to the process models
- use setproctitle library in process_model standard if available
- the the title for the task servers and on connections

metze
2007-10-10 13:56:49 -05:00
Stefan Metzmacher
a465126e15 r14078: move ldb_global_init() to the main smbd code,
to fix the process_model standard

metze
2007-10-10 13:56:49 -05:00
Stefan Metzmacher
8e9a69171a r14038: reopen log files after a SIGHUP
metze
2007-10-10 13:52:37 -05:00