1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-27 08:23:49 +03:00
Commit Graph

277 Commits

Author SHA1 Message Date
Jelmer Vernooij
925abf74fa r24994: Fix some C++ warnings. 2007-10-10 15:05:26 -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
Jelmer Vernooij
7a1eec6358 r24667: Finally merge the registry improvements that Wilco Baan Hofman and I have
been working on for at least half a year now. Contains the following
improvements:

 * proper layering (finally!) for the registry library. Distinction is
   now made between 'real' backends (local, remote, wine, etc) and
   the low-level hive backends (regf, creg, ldb, ...) that are only used
   by the local registry backend
 * tests for all important hive and registry operations
 * re-enable RPC-WINREG tests (still needs more work though, as
							   some return values aren't checked yet)
 * write support for REGF files
 * dir backend now supports setting/reading values, creating keys
 * support for storing security descriptors
 * remove CREG backend as it was incomplete, didn't match the data model
   and wasn't used at all anyway
 * support for parsing ADM files as used by the policy editor (see lib/policy)
 * support for parsing PREG files (format used by .POL files)
 * new streaming interface for registry diffs (improves speed and memory usage
	for regdiff/regpatch significantly)

   ... and fixes a large number of bugs in the registry code
2007-10-10 15:02:34 -05:00
Andrew Bartlett
3d74d178bf r24631: Fix up format warnings, found on my Fedora 7 x86_64 workstation.
Andrew Bartlett
2007-10-10 15:02:27 -05:00
Stefan Metzmacher
5ecc1311a1 r24623: add back '-D' option to smbd
metze
2007-10-10 15:02:26 -05:00
Andrew Tridgell
8e378051e5 r24276: don't mark a stream readable until after the messaging setup is
complete. This is needed because messaging setup with ctdb involve
events, and we don't want a SMB packet to be processed on this stream
until after the stream structure is fully setup
2007-10-10 15:01:34 -05:00
Andrew Bartlett
18d2680f35 r23960: Don't destory the 'reason' for terminating the service before printing it.
Andrew Bartlett
2007-10-10 15:01:11 -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
d1b710f09c r23702: fixed a "falling back to select" error in the standard process
model. It's much cleaner to get the event system to close the fd,
especially with the complexity of forks
2007-10-10 14:59:05 -05:00
Andrew Bartlett
e3eb6c2cf6 r23695: By not using the NULL context for these large structures, we don't
falsely report them as leaked.

Andrew Bartlett
2007-10-10 14:59:02 -05:00
Stefan Metzmacher
7fae261a49 r23288: give more info...
metze
2007-10-10 14:53:08 -05:00
Stefan Metzmacher
c3cc03ffb2 r22403: this dependencies should be private
metze
2007-10-10 14:51:14 -05:00
Andrew Tridgell
ec611774da r22242: ctdb init now takes a process model 2007-10-10 14:50:45 -05:00
Jelmer Vernooij
7cf9d07c88 r21669: Fix --enable-dso build 2007-10-10 14:49:07 -05:00
Andrew Tridgell
e73063a0c6 r20895: enable ctdb backend at startup (if configured) 2007-10-10 14:43:47 -05:00
Andrew Tridgell
2365abaa99 r20646: first preparations for cluster enablement. This changes "
uint32_t server_id
to
  struct server_id server_id;

which allows a server ID to have an node number. The node number will
be zero in non-clustered case. This is the most basic hook needed for
clustering, and ctdb.
2007-10-10 14:37:23 -05:00
Stefan Metzmacher
dbabec6338 r20449: Happy New Year!
metze
2007-10-10 14:35:46 -05:00
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