1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-22 05:57:43 +03:00

8096 Commits

Author SHA1 Message Date
Andrew Bartlett
c838f4965b r13321: Bind to each interface and to the 0.0.0.0 interface on the KDC. This
was pointed out by Maurice Massar.  It ensures we get the addresses
for the krb5_mk_priv() correct (otherwise an MIT kpasswdd fails over
localhost).

Also never run the KDC unless we are a DC.

Andrew Bartlett
(This used to be commit c17007918459678004a009ccaa50fb85e8b6a739)
2007-10-10 13:51:44 -05:00
Andrew Bartlett
1d9ffbbe67 r13320: Fix kpasswd's use of the local HDB. /dev/null was a bad idea, we want
'no filename' instead.

Andrew Bartlett
(This used to be commit 7de385dca4c40e98a40ef1e769826de8bff64323)
2007-10-10 13:51:43 -05:00
Andrew Bartlett
34aa19cafe r13317: Create a new function messaging_client_init() which can be used when
we don't have a server messaging context.  We should replace the
datagram messages with stream sockets in this case, so we don't have
to create a unique socket.

Andrew Bartlett
(This used to be commit fd974fb64792f8f6c532b01d2a2e012be18eef7e)
2007-10-10 13:51:43 -05:00
Simo Sorce
1d43fa6c9f r13307: docs
(This used to be commit e56630d1f8688ff3ff334893a4bc49dff8e36fe2)
2007-10-10 13:51:43 -05:00
Jeremy Allison
71a43967de r13297: It's a good thing the shipment of function headers tridge
sent me arrived on time... :-).
Refactor this code to make it comprehensible. Tested
against W2K3 SP 1 and W2K SP 4. Test 19 is different
from what I thought. Turns out delete on close on
"open" of a directory (not create) does have an
effect - even if not reported in the flag bit.
trige please test against Vista (my XP box is
refusing to serve at the moment - have to reinstall).

Jeremy.
(This used to be commit 2b708e26185bfc0a909a33e74e67dd2101c3bbbe)
2007-10-10 13:51:43 -05:00
Simo Sorce
ab6a39fa4f r13289: Check the tree is not NULL
Thanks to Aaron J. Seigo <aseigo@kde.org> for spotting this
(This used to be commit 4b5c0493e2276a9eba1bada7c4bac99999a465e2)
2007-10-10 13:51:43 -05:00
Andrew Tridgell
b9e07af822 r13283: added two optimisations to the tdb transactions code. The first is to
more agressively coalesce entries in the linked list of the undo
log. The second is to ensure that writes during a transaction into the
hash table don't cause the size of the undo log linked list to grow.

These optimisations don't affect Samba much, but they make a huge
difference to the use of ldb in kde
(This used to be commit a37d9434d1fa181fd3d060ad032ee4ec5135fc52)
2007-10-10 13:51:42 -05:00
Andrew Bartlett
5bb38cf7e6 r13282: Indentation, and ensure we handle the talloc_free in the right place
all the time.

Andrew Bartlett
(This used to be commit 2aa9fefbb30959f29e9d5a79c4880f33a747b68c)
2007-10-10 13:51:42 -05:00
Andrew Bartlett
ce927996c9 r13281: Use TALLOC_CTX * not a void *, and use tmp_ctx as the name for consistancy.
(I was chasing ghosts in this code, and decided to do a cleanup while
I was there).

Andrew Bartlett
(This used to be commit c05f6be09a0cffdd0b87483f5b3751cc3f96e7f5)
2007-10-10 13:51:42 -05:00
James Peach
b94280cd75 r13280: Tidy up formatting.
(This used to be commit 531995000df77a54a4f2d7734e1ad33cd7cda37a)
2007-10-10 13:51:42 -05:00
Andrew Tridgell
ce4f56dbdc r13278: remove a silly strcasecmp() replacement
(This used to be commit 6ec71ffbc141df398aff3e11c45e35e15192c66f)
2007-10-10 13:51:42 -05:00
Andrew Tridgell
52f023d4de r13277: print a useful error message when test 17 fails
(This used to be commit 70ad98b05136da0cdbd91b8374ac9709abfcadeb)
2007-10-10 13:51:41 -05:00
Andrew Tridgell
99c559cd58 r13276: start to work towards the BASE-DELETE test passing. This change
ensures that we give the right error code to opens that are denied due
to the file having delete pending set
(This used to be commit c5b709fae66f9135e5c0e2eeb2e25dd8837b64de)
2007-10-10 13:51:41 -05:00
Jeremy Allison
c084da47cf r13275: With a liberal sprinkling of smb_raw_exit this
now passes for me for W2K and W2K3... booting the XP
box to test it...
Jeremy.
(This used to be commit 0133ba78c15b10e925f4e26e163656aa7cd11476)
2007-10-10 13:51:41 -05:00
Jeremy Allison
4e612e7d20 r13272: Re-arrange so all the normal tests we can pass come first.
Jeremy.
(This used to be commit 0b61a8df3c1b5b1a73bf6afd0404871286d3a2fc)
2007-10-10 13:51:41 -05:00
Jeremy Allison
1b33f040d3 r13271: Do the same tests with directories.
Jeremy.
(This used to be commit 7986af2ece2e707ee3d98dadb37af9fc5126d138)
2007-10-10 13:51:41 -05:00
Jeremy Allison
4a9d08319b r13270: Add tests for even more insane delete-on-close semantics.
Jeremy.
(This used to be commit ae0851ce667c0559e786c3a83389ccfddce1a813)
2007-10-10 13:51:40 -05:00
Andrew Bartlett
658f9babe1 r13269: ${prefix} is a special case in the autoconf/build system, and should
be escaped as \${prefix}, otherwise it evaluates too early as "NONE".

Andrew Bartlett
(This used to be commit 6b42029de99011986c1fa7bfd5833dbbbf476206)
2007-10-10 13:51:40 -05:00
Andrew Tridgell
feb1c8ea82 r13268: fixed typo noticed by Aaron Seigo
(This used to be commit a49d024f3d4866655d4436a5c42b3c228374594b)
2007-10-10 13:51:40 -05:00
Andrew Bartlett
541809b006 r13265: Clarify how delegation works with the remote RPC backend.
Andrew Bartlett
(This used to be commit 75489ac8bced0f9e7ab28739fd6b26ab12cfa585)
2007-10-10 13:51:40 -05:00
James Peach
5113bb8438 r13264: Move declaration before code.
(This used to be commit 6e55241a843f80cc513d06266b54b38ce48c51ed)
2007-10-10 13:51:40 -05:00
James Peach
ad01edb37b r13263: Check whether open(2) will accept the O_DIRECT flag. This should fix the
build on NetBSD.
(This used to be commit 7354de62a7fbf3921dfcb0bd865e89bdf1ef5bcd)
2007-10-10 13:51:39 -05:00
Andrew Bartlett
b60415745a r13258: Fix the talloc heirachy for ldb_tdb.
In the return value res->msgs, msgs was not a child of res, in the
indexed path.  Instead, it hung directly off the ldb, which was
sometimes a long-term context.

Also remove unused parameters.

Found by --leak-report-full

Andrew Bartlett
(This used to be commit 29cb5af827c459758997c80dca034d471bb92449)
2007-10-10 13:51:39 -05:00
Andrew Bartlett
f9316daa46 r13256: Free temporary memory on error cases, and try to clean up what's left
earlier.

Move gendb_search() to use talloc_vasprintf() and steal only the parts
actually being used for the results.

Andrew Bartlett
(This used to be commit 53efb3e3e980c768e0aee216ccd8dc3e14707246)
2007-10-10 13:51:39 -05:00
James Peach
60f8666ae8 r13255: New CIFS dd client for use in performance testing. The guts of this is
in client/cifsdd*, which implements a minimal implementation of dd. The
IO path is careful to always perform IO at the requested block size.

There is a very basic test suite in script/tests/test_cifsdd.sh which
covers local and remote IO at a variety of block sizes.

Added to lib/util_str.c is a small set of conv_str_*() functions to
convert strings to the corresponding type.

smbcli_parse_unc is modified to insert NULL terminators after its
hostname and sharename parameters. This allows it to correctly parse a
path of the form //foo/share/path/file.
(This used to be commit cd2f94a65817bfae20ac21b730a2c42d8e581ab3)
2007-10-10 13:51:39 -05:00
Andrew Bartlett
99f0659f67 r13253: More work to ensure that we don't keep data on long-term contexts.
Andrew Bartlett
(This used to be commit 35517573ff807339f96573e58bdec29073be9594)
2007-10-10 13:51:38 -05:00
Andrew Bartlett
13c1f1b6f1 r13252: Cleanup, both in code, comments and talloc use:
In particular, I've used the --leak-report-full option to smbd to
track down memory that shouldn't be on a long-term context.  This is
now talloc_free()ed much earlier.

Andrew Bartlett
(This used to be commit c6eb74f42989d62c82d2a219251837b09df8491c)
2007-10-10 13:51:38 -05:00
Andrew Bartlett
7e9868c74f r13250: I missed a couple of talloc_free()'s
Andrew Bartlett
(This used to be commit 3570a62876dcd656b328bf8c2c1be617ae9a8fd7)
2007-10-10 13:51:38 -05:00
James Peach
67e78aabd6 r13249: Check for alloca.h. popt needs this.
(This used to be commit 08bdaa8e106caeab675aaca5124f0e59fa20cc8c)
2007-10-10 13:51:38 -05:00
James Peach
4c54a04969 r13248: Revert revision 13071. It turns out that sys/param.h can be implicitly
included from other headers. In this case, undeffing MIN and MAX is a
really bad idea because the subsequent include of sys/param.h will do
nothing because of its include guards.
(This used to be commit 8aa8be93b09cfbd176455738dfd305047030fd50)
2007-10-10 13:51:38 -05:00
Andrew Bartlett
7c7125be5d r13247: Try to make better use of talloc in the auth/ and auth/gensec code.
We don't want temporary memory hanging around on the long-term
contexts.

Andrew Bartlett
(This used to be commit 85b3f6ebddfb655fdd08d1799752e562a6ff9cb1)
2007-10-10 13:51:37 -05:00
Andrew Bartlett
bc72dfa91a r13246: Print winbindd pipe location correctly.
Andrew Bartlett
(This used to be commit fc045b42c24d9bfb10b9f98f38c771df4abcdee0)
2007-10-10 13:51:37 -05:00
Andrew Bartlett
a0060cb343 r13245: Don't segfault if we don't have a credentials structure on this gensec
context.

Andrew Bartlett
(This used to be commit 1e840aa43679ceccb2a3afc694a5de0828147e8c)
2007-10-10 13:51:37 -05:00
Andrew Bartlett
b70009649a r13244: Allow control of the location of the Samba3-compatible winbindd pipe
in Samba4.  This allows us to start winbindd by default, including in
'make test'.

This is via a new 'winbindd socket directory' parameter for utilities
linked against loadparm, as well as a --with-winbindd-socket-dir
option to configure (setting the default and the value for simple
clients).

I hope to add basic winbindd tests, to ensure continued correct
operation, but at least now I don't have to manually change my 'server
services' line.

The other problem with the hard-coded /tmp/.winbind is that RedHat has
moved this in Fedora (to /var/run I think).  For this reason, this
functionality should probably be ported to Samba3 as well.

The default for Samba4 is PREFIX/var/run/winbind_pipe.

I have also re-added the paranoia checks from Samba3 for correct
permissions on the socket directory.

Andrew Bartlett
(This used to be commit 8866aa06ffc3896094c878e9c07b40c03826d9a7)
2007-10-10 13:51:37 -05:00
James Peach
b98a5bf922 r13243: Bring __FUNCTION__ checks across from Samba 3.
(This used to be commit 92eec049628a79f8d9496c6d199d6de0238e7940)
2007-10-10 13:51:36 -05:00
James Peach
bf75891495 r13242: cc-1009 cc: WARNING File = librpc/idl/nbt.idl, Line = 579
cc-1009 cc: WARNING File = librpc/idl/nbt.idl, Line = 580
  A "/*" appears inside a comment.
(This used to be commit 53ac5a2fb251c04dab2b92cd8a9df8005e340e3a)
2007-10-10 13:51:36 -05:00
James Peach
d4a62250cc r13241: Work around missing AS_HELP_STRING definition in autoconf 2.57. Fix
from Brad Hards <bradh@frogmouth.net>.
(This used to be commit 3ade52398a345cc50c1bf52298e36ab1804b00ec)
2007-10-10 13:51:36 -05:00
Andrew Bartlett
d778912c3a r13240: Make the test scripts use the new smb.conf location (in PREFIX/etc).
Andrew Bartlett
(This used to be commit ea0a53d6795488ed530c3436343587595221cb78)
2007-10-10 13:51:36 -05:00
Andrew Bartlett
c06911376c r13239: Silly little patch: make the order of declaration match the order of use.
(This used to be commit 2b605cf22c7567e1171bf73cbbd37a5f0c1a4274)
2007-10-10 13:51:36 -05:00
Stefan Metzmacher
57f0db3588 r13228: revert more stuff from 13208
metze
(This used to be commit 6c7065463fded629febd03efb2943d24cac74fda)
2007-10-10 13:51:36 -05:00
Stefan Metzmacher
6dd836d688 r13227: revert some more stuff from 13208
metze
(This used to be commit 03a0363850b7b38fc3621dfde38504d66156e728)
2007-10-10 13:51:35 -05:00
Stefan Metzmacher
60ed2e4c27 r13226: remove empty file
metze>
(This used to be commit b8a6792a43c3d41ceccd16046c9794e701c6acc1)
2007-10-10 13:51:35 -05:00
James Peach
7daa5d139f r13225: Enable full compiler warnings for developer mode on IRIX.
(This used to be commit 2aefbcb47272536d8c2229f8b199f7cd7da7d890)
2007-10-10 13:51:35 -05:00
Jelmer Vernooij
713b296441 r13210: Revert my named pipes patch until it passes not just 'make quicktest' but
also 'make test'
(This used to be commit e3d0676aee84e96e5c87bed4cd0cde75a4191953)
2007-10-10 13:51:35 -05:00
Jelmer Vernooij
ad6303f82f r13208: Clearly separate named pipes from the IPC$ NTVFS type.
This allows the easy addition of additional named pipes and removes the
circular dependencies between the CIFS, RPC and RAP servers.

Simple tests for a custom named pipe included.
(This used to be commit 898d15acbd18e3b302a856c847e08c22c5024792)
2007-10-10 13:51:34 -05:00
Andrew Bartlett
654a21178f r13207: Use the new API for using/not using kerbeors in hdb-ldb.c
Update the rootdse module to use the new schema.

Andrew Bartlett
(This used to be commit b0b150d08ac39ed486071487826da2e306db6a0b)
2007-10-10 13:51:34 -05:00
Andrew Bartlett
44e601b5ad r13206: This patch finally re-adds a -k option that works reasonably.
From here we can add tests to Samba for kerberos, forcing it on and
off.  In the process, I also remove the dependency of credentials on
GENSEC.

This also picks up on the idea of bringing 'set_boolean' into general
code from jpeach's cifsdd patch.

Andrew Bartlett
(This used to be commit 1ac7976ea6e3ad6184c911de5df624c44e7c5228)
2007-10-10 13:51:33 -05:00
Andrew Bartlett
210d3c1dc7 r13205: Add another useful comment.
Andrew Bartlett
(This used to be commit 78d634047f41466e4bf169e727f730d776949b33)
2007-10-10 13:51:33 -05:00
Andrew Bartlett
086655dcb6 r13204: Remove extra newline we don't need.
Andrew Bartlett
(This used to be commit 765caa14b340f5111c07eda99fd2bd4c000dd7c7)
2007-10-10 13:51:33 -05:00
Andrew Bartlett
fd007e5512 r13203: Make this comment clearer.
Andrew Bartlett
(This used to be commit 8e2b461669d2d4d5a789da66b5049ecbddd8fd15)
2007-10-10 13:51:33 -05:00