1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-03 13:47:25 +03:00

8229 Commits

Author SHA1 Message Date
Simo Sorce
398f989d65 r13374: new revision of the snprintf replace code
still missing a configure test to make us
substitute our snprintf to system one when
the system one does not have positional parameters support
2007-10-10 13:51:51 -05:00
James Peach
fc17a50b48 r13373: Implement the -p option for smbtorture. 2007-10-10 13:51:51 -05:00
Simo Sorce
0e2cca9153 r13372: fixes ... still no joy 2007-10-10 13:51:51 -05:00
Jeremy Allison
fbea18e78f r13370: Added deltest21 - pull the rug out from a connection by socket
close after setting delete on close flag.
Jeremy.
2007-10-10 13:51:50 -05:00
Simo Sorce
3fb9571a76 r13369: let's have a way to show the samba4 version through ejs
and use it in provisioning to fullfill rfc 3045 requirements
2007-10-10 13:51:50 -05:00
James Peach
dc20bb0ddc r13362: Rename variables for better consistency. 2007-10-10 13:51:50 -05:00
Simo Sorce
e1318383e9 r13361: initial implementation of the vlv control
seem still buggy, can't make w2k3 to like it yet
2007-10-10 13:51:50 -05:00
Simo Sorce
fbee725ae8 r13360: Fix crash bug when 0 results are returned on the internal base search 2007-10-10 13:51:50 -05:00
Stefan Metzmacher
24c6e2f731 r13359: make sure we don't look at s[-1]
metze
2007-10-10 13:51:49 -05:00
Andrew Tridgell
a73b76a36a r13358: removed some unused functions and make some local functions static 2007-10-10 13:51:49 -05:00
Simo Sorce
5af9086dea r13357: more docs 2007-10-10 13:51:49 -05:00
Simo Sorce
7ddec83a60 r13356: test utf8 usernames 2007-10-10 13:51:48 -05:00
Simo Sorce
07fa55db32 r13355: check controls are correctly exported 2007-10-10 13:51:48 -05:00
Simo Sorce
933a80397d r13354: Add tests to check that controls work properly
Fix asq module, add a second_stage_init to register with rootdse
Fix asq control ldap parsing routines (this was nasty to find out)
2007-10-10 13:51:48 -05:00
Simo Sorce
bec99c5cb6 r13353: Fix a crash bug in rootdse when we do not pass in credentials
a plain ldbsearch would just crash

Fix kludge_acl, not passing on the second stage registration
phase to other modules

Simo
2007-10-10 13:51:48 -05:00
Simo Sorce
bf20a848fd r13352: Integrate Patch to support the ManageDSAIT control
from Pete Rowley <prowley@redhat.com>
2007-10-10 13:51:48 -05:00
Simo Sorce
513ff49907 r13349: In the end I could not use ldb_caseless_cmp
in attrib_handler.c functions

remove it again

Simo
2007-10-10 13:51:47 -05:00
Simo Sorce
5d93c1eeba r13348: Put a reminder for now.
Until we do not have an internal utf8 compliant
casefloding function we cannot pass this test
in the non-samba build
2007-10-10 13:51:47 -05:00
Simo Sorce
e12f070958 r13347: - Now we compare values with an optimized utf8
safe function if the user provides an utf8
compliant casefold function to ldb.

- Fix toupper_m and tolower_m to not crash if
the case tables are not found

- Let load_case_table() search into the correct
directory in the search tree for the case
tables so that we can test utf8

Simo
2007-10-10 13:51:47 -05:00
Stefan Metzmacher
67837dbd2b r13346: use private proto header files for the torture tests
metze
2007-10-10 13:51:47 -05:00
Stefan Metzmacher
02d6dfa1da r13345: let us replicate with NT4sp6a
I don't yet know what the extra data in the start_association call mean...

This also let w2k use WREPL_REPL_INFORM messages to us, but w2k3 doesn't
it do it yet...

metze
2007-10-10 13:51:47 -05:00
Andrew Bartlett
0cbe18211a r13344: Trust SASL to have subtle distinctions between NULL and zero-length
responses...

Also trust OpenLDAP to be pedantic about it, breaking connections to AD.

In any case, we now get this 'right' (by nasty overloading hacks, but
hey), and we can now use system-supplied OpenLDAP libs and SASL/GSSAPI
to talk to Samba4.

Andrew Bartlett
2007-10-10 13:51:46 -05:00
Andrew Bartlett
3e46289775 r13342: Make the GSSAPI SASL mech actually work, by (shock horror) reading the spec.
GSSAPI differs from GSS-SPNEGO in an additional 3 packets, negotiating
a buffer size and what integrity protection/privacy should be used.

I worked off draft-ietf-sasl-gssapi-03, and this works against Win2k3.

I'm doing this in the hope that Apple clients as well as SASL-based
LDAP tools may get a bit further.

I still can't get ldapsearch to work, it fails with the ever-helpful
'Local error'.

Andrew Bartlett
2007-10-10 13:51:46 -05:00
Andrew Bartlett
b986278b36 r13341: Trivial. 2007-10-10 13:51:46 -05:00
Andrew Bartlett
db32a81f3e r13340: The gensec_init() needs to be after the popt processing, as it
disables modules based on parametric options.

Andrew Bartlett
2007-10-10 13:51:46 -05:00
Andrew Bartlett
3be01a4ac7 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
2007-10-10 13:51:46 -05:00
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