1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-21 01:59:07 +03:00

8105 Commits

Author SHA1 Message Date
Andrew Bartlett
f1b2c6d686 r13340: The gensec_init() needs to be after the popt processing, as it
disables modules based on parametric options.

Andrew Bartlett
(This used to be commit db32a81f3ea661e2308cccca8d6a251a3d57337e)
2007-10-10 13:51:46 -05:00
Andrew Bartlett
15f73e6404 r13339: Propogate more error infomation into the error packet and reformat the
code a little.  This also fixes a segfault when we didn't fill in the
error message.

Andrew Bartlett
(This used to be commit 3be01a4ac7efe8d161910e8339bfe42584c0db86)
2007-10-10 13:51:46 -05:00
Simo Sorce
3f04b896e7 r13336: Doh! We actually never optimized for the ascii case.
In the 3.0 branches it is fixed this but we missed it for samba4
(This used to be commit baccb3c9147e161a6d2cbe371a60bf2ddcc0585c)
2007-10-10 13:51:45 -05:00
Simo Sorce
3ba24e4a35 r13335: Fix the build and add an utf8 safe ldb_hadler_fold function
based on ldb_casefold
(This used to be commit 6104f900863c688707809d42c5429a42d654d5fb)
2007-10-10 13:51:45 -05:00
Andrew Bartlett
f2d76bddd5 r13334: Add comments describing what these functions do.
We still need many more, but it is a start...

Andrew Bartlett
(This used to be commit b2bda127f681dc1e2003c86159a85fa613373f16)
2007-10-10 13:51:45 -05:00
Simo Sorce
04396c36d3 r13333: revert previous commit I will use ldb_caseless_cmp in attrib_handlers
to correctly support utf8 comparisons

add an ldb_attr_Casefold function for attribute names and use it
instead of casefold in the right places
(This used to be commit 3b4eb2413bbce059dde69f35c03cdc3cc2ba85c5)
2007-10-10 13:51:45 -05:00
Simo Sorce
88279373ab r13328: After the attribute name check cleanup it turned up ldb_caseless_cmp()
was used just in one places and by mistake, as there we should have
been using ldb_attr_cmp()

Remove ldb_caseless_cmp() ... going on with the cleanup and utf8 compliance
effort.

Simo.
(This used to be commit afda68d7bf655a9145648856d29e6e64b9f21aa3)
2007-10-10 13:51:44 -05:00
Simo Sorce
48d8eee752 r13325: let samba register it's own utf8 aware functions in ldb
(This used to be commit 12faf556833807d3f2aa4360c54e10583ac77fed)
2007-10-10 13:51:44 -05:00
Simo Sorce
f5ebc8e404 r13324: From now on check attribute names obey rfc2251
Also add a way to provide utf8 compliant functions
by registering them with ldb_set_utf8_fns()

Next comes code to register samba internal utf8 functions.

Simo.
(This used to be commit ac9b8a41ffca8e06c5e849d544d3203a665b8e0d)
2007-10-10 13:51:44 -05:00
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