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

8103 Commits

Author SHA1 Message Date
Simo Sorce
baccb3c914 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
2007-10-10 13:51:45 -05:00
Simo Sorce
6104f90086 r13335: Fix the build and add an utf8 safe ldb_hadler_fold function
based on ldb_casefold
2007-10-10 13:51:45 -05:00
Andrew Bartlett
b2bda127f6 r13334: Add comments describing what these functions do.
We still need many more, but it is a start...

Andrew Bartlett
2007-10-10 13:51:45 -05:00
Simo Sorce
3b4eb2413b 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
2007-10-10 13:51:45 -05:00
Simo Sorce
afda68d7bf 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.
2007-10-10 13:51:44 -05:00
Simo Sorce
12faf55683 r13325: let samba register it's own utf8 aware functions in ldb 2007-10-10 13:51:44 -05:00
Simo Sorce
ac9b8a41ff 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.
2007-10-10 13:51:44 -05:00
Andrew Bartlett
c170079184 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
2007-10-10 13:51:44 -05:00
Andrew Bartlett
7de385dca4 r13320: Fix kpasswd's use of the local HDB. /dev/null was a bad idea, we want
'no filename' instead.

Andrew Bartlett
2007-10-10 13:51:43 -05:00
Andrew Bartlett
fd974fb647 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
2007-10-10 13:51:43 -05:00
Simo Sorce
e56630d1f8 r13307: docs 2007-10-10 13:51:43 -05:00
Jeremy Allison
2b708e2618 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.
2007-10-10 13:51:43 -05:00
Simo Sorce
4b5c0493e2 r13289: Check the tree is not NULL
Thanks to Aaron J. Seigo <aseigo@kde.org> for spotting this
2007-10-10 13:51:43 -05:00
Andrew Tridgell
a37d9434d1 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
2007-10-10 13:51:42 -05:00
Andrew Bartlett
2aa9fefbb3 r13282: Indentation, and ensure we handle the talloc_free in the right place
all the time.

Andrew Bartlett
2007-10-10 13:51:42 -05:00
Andrew Bartlett
c05f6be09a 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
2007-10-10 13:51:42 -05:00
James Peach
531995000d r13280: Tidy up formatting. 2007-10-10 13:51:42 -05:00
Andrew Tridgell
6ec71ffbc1 r13278: remove a silly strcasecmp() replacement 2007-10-10 13:51:42 -05:00
Andrew Tridgell
70ad98b051 r13277: print a useful error message when test 17 fails 2007-10-10 13:51:41 -05:00
Andrew Tridgell
c5b709fae6 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
2007-10-10 13:51:41 -05:00
Jeremy Allison
0133ba78c1 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.
2007-10-10 13:51:41 -05:00
Jeremy Allison
0b61a8df3c r13272: Re-arrange so all the normal tests we can pass come first.
Jeremy.
2007-10-10 13:51:41 -05:00
Jeremy Allison
7986af2ece r13271: Do the same tests with directories.
Jeremy.
2007-10-10 13:51:41 -05:00
Jeremy Allison
ae0851ce66 r13270: Add tests for even more insane delete-on-close semantics.
Jeremy.
2007-10-10 13:51:40 -05:00
Andrew Bartlett
6b42029de9 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
2007-10-10 13:51:40 -05:00
Andrew Tridgell
a49d024f3d r13268: fixed typo noticed by Aaron Seigo 2007-10-10 13:51:40 -05:00
Andrew Bartlett
75489ac8bc r13265: Clarify how delegation works with the remote RPC backend.
Andrew Bartlett
2007-10-10 13:51:40 -05:00
James Peach
6e55241a84 r13264: Move declaration before code. 2007-10-10 13:51:40 -05:00
James Peach
7354de62a7 r13263: Check whether open(2) will accept the O_DIRECT flag. This should fix the
build on NetBSD.
2007-10-10 13:51:39 -05:00
Andrew Bartlett
29cb5af827 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
2007-10-10 13:51:39 -05:00
Andrew Bartlett
53efb3e3e9 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
2007-10-10 13:51:39 -05:00
James Peach
cd2f94a658 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.
2007-10-10 13:51:39 -05:00
Andrew Bartlett
35517573ff r13253: More work to ensure that we don't keep data on long-term contexts.
Andrew Bartlett
2007-10-10 13:51:38 -05:00
Andrew Bartlett
c6eb74f429 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
2007-10-10 13:51:38 -05:00
Andrew Bartlett
3570a62876 r13250: I missed a couple of talloc_free()'s
Andrew Bartlett
2007-10-10 13:51:38 -05:00
James Peach
08bdaa8e10 r13249: Check for alloca.h. popt needs this. 2007-10-10 13:51:38 -05:00
James Peach
8aa8be93b0 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.
2007-10-10 13:51:38 -05:00
Andrew Bartlett
85b3f6ebdd 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
2007-10-10 13:51:37 -05:00
Andrew Bartlett
fc045b42c2 r13246: Print winbindd pipe location correctly.
Andrew Bartlett
2007-10-10 13:51:37 -05:00
Andrew Bartlett
1e840aa436 r13245: Don't segfault if we don't have a credentials structure on this gensec
context.

Andrew Bartlett
2007-10-10 13:51:37 -05:00
Andrew Bartlett
8866aa06ff 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
2007-10-10 13:51:37 -05:00
James Peach
92eec04962 r13243: Bring __FUNCTION__ checks across from Samba 3. 2007-10-10 13:51:36 -05:00
James Peach
53ac5a2fb2 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.
2007-10-10 13:51:36 -05:00
James Peach
3ade52398a r13241: Work around missing AS_HELP_STRING definition in autoconf 2.57. Fix
from Brad Hards <bradh@frogmouth.net>.
2007-10-10 13:51:36 -05:00
Andrew Bartlett
ea0a53d679 r13240: Make the test scripts use the new smb.conf location (in PREFIX/etc).
Andrew Bartlett
2007-10-10 13:51:36 -05:00
Andrew Bartlett
2b605cf22c r13239: Silly little patch: make the order of declaration match the order of use. 2007-10-10 13:51:36 -05:00
Stefan Metzmacher
6c7065463f r13228: revert more stuff from 13208
metze
2007-10-10 13:51:36 -05:00
Stefan Metzmacher
03a0363850 r13227: revert some more stuff from 13208
metze
2007-10-10 13:51:35 -05:00
Stefan Metzmacher
b8a6792a43 r13226: remove empty file
metze>
2007-10-10 13:51:35 -05:00
James Peach
2aefbcb472 r13225: Enable full compiler warnings for developer mode on IRIX. 2007-10-10 13:51:35 -05:00