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

6417 Commits

Author SHA1 Message Date
Andrew Bartlett
8a22d46e70 r10286: This patch is ugly and disgusting, but for now it works better than the other
ideas I have had.

When I get a full list of things I want to do to a krb5_context I'll
either add gsskrb5_ wrappers, or a way of speicfying the krb5 context
per gssapi context.

(I want to ensure that the only krb5_context variables created while
executing Samba4 are via our wrapper).

Andrew Bartlett
2007-10-10 13:38:13 -05:00
Jelmer Vernooij
c675ba0ee4 r10283: Eliminate some more use of autoconf substitution variables.
Add makefile rule for '.ho' files (compiled with host compiler). This
does not allow for cross-compiling yet as that requires a HOSTLD as well.
2007-10-10 13:38:13 -05:00
Simo Sorce
158693b406 r10277: do not ovverride LIKE, thanks to derrel I found out how to do
the same thing with a harmless user function
2007-10-10 13:38:13 -05:00
Tim Potter
360be7028c r10258: Fix an unused/duplicate local variable. 2007-10-10 13:38:12 -05:00
Tim Potter
4a4b053718 r10257: strlen returns a size_t which can be 64 bits long. 2007-10-10 13:38:12 -05:00
Tim Potter
5f1cd6382c r10256: Fix some unhandled enumeration warnings. There's one still left,
RAW_SEARCH_UNIX_INFO find_fill_info(), which I think is a bug.
2007-10-10 13:38:12 -05:00
Tim Potter
f4f9337619 r10255: Fix some more 64-bit warnings. 2007-10-10 13:38:12 -05:00
Andrew Tridgell
4673cdd0d2 r10253: a fairly large tdb cleanup and re-organise. Nearly all of this change
just involves splitting up the core tdb.c code into separate files on
logical boundaries, but there are some minor functional changes as well:

 - move the 'struct tdb_context' into tdb_private.h, hiding it from
   users. This was done to allow the structure to change without
   breaking code that uses tdb.

 - added accessor functions tdb_fd(), tdb_name(), and tdb_log_fn() to
   access the elements of struct tdb_context that were used by
   external code but are no longer visible

 - simplied tdb_append() to use tdb_fetch()/tdb_store(), which is just
   as good due to the way tdb locks work

 - changed some of the types (such as tdb_off to tdb_off_t) to make
   syntax highlighting work better

 - removed the old optional spinlock code. It was a bad idea.

 - fixed a bug in tdb_reopen_all() that caused tdbtorture to sometimes
   fail or report nasty looking errors. This is the only real bug
   fixed in this commit. Jeremy/Jerry, you might like to pickup this
   change for Samba3, as that could definately affect smbd in
   Samba3.

The aim of all of these changes is to make the tdb
transactions/journaling code I am working on easier to write. I
started to write it on top of the existing tdb.c code and it got very
messy. Splitting up the code makes it much easier to follow.

There are more cleanups we could do in tdb, such as using uint32_t
instead of u32 (suggested by metze). I'll leave those for another day.
2007-10-10 13:38:12 -05:00
Andrew Tridgell
dff660c23c r10252: a recent checkin from simo changed the handling of BASE and SUBTREE
searches in ldb to be more ldap compliant, but broke the wins server
and the ejs ldb code. This fixes those up so 'make test' passes again.
2007-10-10 13:38:11 -05:00
Simo Sorce
4357a2db5e r10251: some more work on ldb_sqlite3
I must say that writing a new module is a very good way
to find lot of subtle bugs laying in the code

We need more tests!

commit oLschema2ldif.c to keep it safe from data losses (rm -fr :-)

update test generic to reflect the fix made on comparsion functions
2007-10-10 13:38:11 -05:00
Simo Sorce
f6ea6e9382 r10250: the comparison is caseless so we must caseless subtract
otherwise we get the wrong result when comparing upper
case chars with lower case chars
2007-10-10 13:38:11 -05:00
Jelmer Vernooij
8aa9711a30 r10246: Remove unused function
Move auth-specific file to auth/
2007-10-10 13:38:11 -05:00
Jelmer Vernooij
6685009f6a r10245: Get rid of XFILE in a few places.
Add fdprintf() and vfdprintf() helper functions.
2007-10-10 13:38:11 -05:00
Tim Potter
8a0a8d259d r10238: Add a entry for sec_info to treat it as a uint32 for now. 2007-10-10 13:38:10 -05:00
Stefan Metzmacher
d02e1aa049 r10237: fix parameter, how have I missed this...?
metze
2007-10-10 13:38:10 -05:00
Simo Sorce
466e6812c3 r10236: fix (C) note 2007-10-10 13:38:10 -05:00
Simo Sorce
e5d8d83460 r10233: add commented PRAGMA to avoid fsyncs 2007-10-10 13:38:10 -05:00
Simo Sorce
ace9990060 r10232: Some work on ldb_sqlite3.
It is still far from being usable in samba4 but I want to commit
so that the work does not get lost by mistake.
This is also a good way to get comments if somebody is interested.

Sorry Derrell I ended up rewriting large parts of the code but I find
this style much more readable. Thanks for the hard work done. Your
work was a good reference for me.

ah the current code also shows some good numbers

sqlite3 generic test:
uid search took 0.05 seconds
real    0m12.492s
user    0m0.492s
sys     0m0.345s

with tdb we still get better numbers:
uid search took 0.46 seconds
real    0m0.892s
user    0m0.360s
sys     0m0.468s

but most of the time is spent in adding operations and I think
there's still a lot of space for improvement.

Simo.
2007-10-10 13:38:10 -05:00
Simo Sorce
8ddf4de162 r10231: seem I flipped these, fix. 2007-10-10 13:38:09 -05:00
Deryck Hodge
e7015c1937 r10228: Reorganizing a bit, trying to simplify. This is an attempt
to find what's going wrong in IE formatting.

This is some better, but still IE needs help.

deryck
2007-10-10 13:38:09 -05:00
Deryck Hodge
b10d1d522c r10225: Adding back a style rule to qooxdoo that was originally
removed.  This is a cross browser hack that makes for
better performance amone differing browsers.

deryck
2007-10-10 13:38:09 -05:00
Andrew Tridgell
c0de3fd4c5 r10216: Chris Samuel pointed out that we should note the need to run provision
as a user with write permission on the install directory
2007-10-10 13:38:09 -05:00
Andrew Tridgell
09948a5933 r10213: fixed a memory leak in the ldap client and server code spotted by Karl
Melcher. ldap_encode() now takes a memory context to use for the data
blob
2007-10-10 13:38:09 -05:00
Deryck Hodge
3264ccf743 r10212: An IE fix. Must set initial values in the onload function.
deryck
2007-10-10 13:38:08 -05:00
Jelmer Vernooij
b1ad340b47 r10207: Add some const 2007-10-10 13:38:08 -05:00
Andrew Tridgell
9cc000d868 r10200: added a composite_trigger_done() call that allows a composite function
to cause an event to happen immediately. This allows metzes patch for
recognising IPs in resolve_name() to work, and also allows us to
remove some of the other code where we currently do specific checks
for is_ipaddress().
2007-10-10 13:38:08 -05:00
Andrew Tridgell
b3a9d759bb r10199: added a LOCAL-RESOLVE torture test, useful for measuring the overhead of
the async name resolution mechanisms
2007-10-10 13:38:08 -05:00
Tim Potter
515f456fac r10197: Assume that external dissectors are structs which I think is always the
case.
2007-10-10 13:38:07 -05:00
Andrew Tridgell
173655aec2 r10193: r11632@blu: tridge | 2005-08-30 23:08:27 +1000
if we fail to erase a ldb during provision by traversing
 and deleting records (an in-place erase) then just unlink it
 and start it again. This makes provisioning much more robust
 to changes in ldb that make it not backward compatible with
 old DBs.
2007-10-10 13:38:07 -05:00
Andrew Tridgell
1f12364a0f r10192: r11631@blu: tridge | 2005-08-30 23:06:37 +1000
added a ldb.close() method in js. Useful for re-opening the db
2007-10-10 13:38:07 -05:00
Jelmer Vernooij
3b6bfbe8cf r10191: Return the right error code in the case of a time skew. Windows will now
ignore Kerberos and fallback to NTLMSSP when joining. Thanks to Andrew Bartlett
for the assistence.
2007-10-10 13:38:07 -05:00
Jelmer Vernooij
87f25fe49c r10190: Do some very basic input checking when provisioning. 2007-10-10 13:38:06 -05:00
Tim Potter
2f24fc7a7a r10185: Fix another two sets of unhandled enumeration warnings, plus correct some awful indentation. (-: 2007-10-10 13:38:06 -05:00
Tim Potter
aeb42a446b r10184: Fix a stack of unhandled enumeration warnings. 2007-10-10 13:38:06 -05:00
Jelmer Vernooij
231d01a3e7 r10181: Fix the build 2007-10-10 13:38:06 -05:00
Andrew Bartlett
3c8be196cc r10174: This patch implements generic PAC verification, without assumptions
about the size of the signature.  In particular, this works with AES,
which was previously broken Samba4/Samba4.

Reviewed by metze (and thanks for help with the previous IDL commit).
2007-10-10 13:38:06 -05:00
Jelmer Vernooij
efa6e3938d r10173: Document new option 2007-10-10 13:38:05 -05:00
Jelmer Vernooij
8eb69b3a6e r10172: Add --dump-ndr-tree argument 2007-10-10 13:38:05 -05:00
Andrew Bartlett
76c224f288 r10171: This seems to work for encoding/decoding a PAC at the buffers only
level (required for signature verification).

Andrew Bartlett
2007-10-10 13:38:05 -05:00
Stefan Metzmacher
589541b740 r10167: add a test to check if we always get the same assoc_ctx, on one connection.
metze
2007-10-10 13:38:05 -05:00
Stefan Metzmacher
d2e62dc205 r10164: - add first assoc_ctx test
- handle the case where we're no valid pull partner of the tested server

metze
2007-10-10 13:38:05 -05:00
James Peach
efc70d2672 r10161: Check for alloca.h to prevent incorrect local declaration. 2007-10-10 13:38:04 -05:00
James Peach
5767c05909 r10159: Dereference padsize before comparing to an int. 2007-10-10 13:38:04 -05:00
James Peach
6512490107 r10157: Remove the last traces of heimdal/include. 2007-10-10 13:38:04 -05:00
Andrew Bartlett
cdfcc09343 r10155: Add more notes on required gsskrb5 functions.
Andrew Bartlett
2007-10-10 13:38:04 -05:00
Andrew Bartlett
e4f2afc343 r10153: This patch adds a new parameter to gensec_sig_size(), the size of the
data to be signed/sealed.  We can use this to split the data from the
signature portion of the resultant wrapped packet.

This required merging the gsskrb5_wrap_size patch from
lorikeet-heimdal, and fixes AES encrption issues on DCE/RPC (we no
longer use a static 45 byte value).

This fixes one of the krb5 issues in my list.

Andrew Bartlett
2007-10-10 13:38:04 -05:00
Andrew Bartlett
b9695d5e7c r10149: Update Samba4 to current lorikeet-heimdal.
Andrew Bartlett
2007-10-10 13:38:03 -05:00
Andrew Bartlett
4969f86ac2 r10148: Use samdb_base_dn() to find the local domain.
Andrew Bartlett
2007-10-10 13:38:03 -05:00
Andrew Bartlett
a798d76a4a r10146: Clarify which test is failing in error messages.
Don't dump the pac to x.dat (accidental commit).

Andrew Bartlett
2007-10-10 13:38:03 -05:00
Andrew Bartlett
2e5884fc24 r10145: Allow a variable length signature, so we can support signing with
other than arcfour-hmac-md5.  Currently we still fail to verify other
signatures however.

Andrew Bartlett
2007-10-10 13:38:03 -05:00