1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-02 00:23:50 +03:00
Commit Graph

2032 Commits

Author SHA1 Message Date
Andrew Tridgell
bae2baeb02 r2775: rewrote our ms_fnmatch code to be much more efficient, and to exactly
match w2k behaviour for older negotiated protocols.
2007-10-10 12:59:32 -05:00
Andrew Tridgell
630fefb24a r2774: get rid of the lanman specific code in masktest, and add a -l option 2007-10-10 12:59:31 -05:00
Andrew Tridgell
06c58ad221 r2773: allow zero sized array talloc 2007-10-10 12:59:31 -05:00
Tim Potter
b63a0ef0d4 r2767: Get rid of some unnecessary %s formatting. 2007-10-10 12:59:31 -05:00
Tim Potter
37af942d08 r2766: Test OpenKey, QueryInfoKey, EnumKey, CloseKey functions.
The IDL for EnumValue is wrong - can't figure it out right now.
2007-10-10 12:59:31 -05:00
Tim Potter
6f3f6de058 r2765: Allow functions containing WERROR values to be compiled.
Add winreg.i to list of extensions.
2007-10-10 12:59:31 -05:00
Tim Potter
c4c748ce63 r2764: Use hand-written function for all occurrences of IDL strings, not just
those with a single pointer.
2007-10-10 12:59:31 -05:00
Andrew Tridgell
f3adabf689 r2763: use no-auth bind on ncacn_np unless we specify at least one of "sign", "seal" or "connect" 2007-10-10 12:59:31 -05:00
Simo Sorce
5f9b58c785 r2758: keep docos handy while developing it 2007-10-10 12:59:31 -05:00
Stefan Metzmacher
991b4777c8 r2757: some minor fixes
metze
2007-10-10 12:59:30 -05:00
Simo Sorce
ba2970c3a4 r2754: Change sldb_trim_dn() to be sldb_fix_dn() as we are not really trimming.
Make it handle all cases:
- remove spaces before and after ','
- remove spaces after '='

TODO: check if there are escape chars in the RFC, they are not handled here yet.

Simo.
2007-10-10 12:59:30 -05:00
Stefan Metzmacher
3ff03b5cb2 r2751: this is a new ntvfs design which tries to solve:
- the stacking of modules
- finding the modules private data
- hide the ntvfs details from the calling layer
- I set NTVFS_INTERFACE_VERSION 0 till we are closer to release
  (because we need to solve some async problems with the module stacking)

metze
2007-10-10 12:59:30 -05:00
Stefan Metzmacher
4233067921 r2750: decode AbandonRequest correct (untested:-)
metze
2007-10-10 12:59:30 -05:00
Stefan Metzmacher
a62fbcb30f r2749: add asn1_read_implicit_Integer()
metze
2007-10-10 12:59:30 -05:00
Stefan Metzmacher
6825e78e01 r2748: implement sldb_Compare()
Simo: this commit should not conflict much with your changes:-)

metze
2007-10-10 12:59:30 -05:00
Stefan Metzmacher
72dfea2b07 r2747: use DATA_BLOB for attribute values
en/decode CompareRequest/Response correct

metze
2007-10-10 12:59:29 -05:00
Andrew Tridgell
8d4dc99b82 r2744: ben elliston taught me about gcov today, which allows you to measure
the % coverage in terms of lines of code of a test suite. I thought a
good first place to start with gcov was the talloc test suite. When I
started the test suite covered about 60% of all lines of code in
talloc.c, and now it covers about 99%. The only lines not covered are
talloc corruption errors, as that would cause smb_panic() to fire.

It will be interesting to try gcov on the main Samba test suite for
smbd. We won't achieve 100% coverage, but it would be nice to get to
90% or more.

I also modified the talloc.c sources to be able to be build standalone, using:

  gcc -c -D_STANDALONE_ -Iinlcude lib/talloc.c

that should make it much easier to re-use talloc in other projects
2007-10-10 12:59:29 -05:00
Andrew Tridgell
18d3e2647f r2742: - fixed a bug in talloc_unreference()
- made the LOCAL-TALLOC smbtorture test much stricter, checking that
  block counts for every pointer are correct after every operation
2007-10-10 12:59:29 -05:00
Jelmer Vernooij
0bb42ba898 r2741: Definition for ISystemActivator... 2007-10-10 12:59:29 -05:00
Jelmer Vernooij
ea0b0bfea9 r2740: Finish the RemoteActivation interface. Torture tests will follow
after pidl has been fixed (to be able to use input variables
inside size_is() for output variables)
2007-10-10 12:59:29 -05:00
Tim Potter
cf9b984b84 r2739: Start of torture test for winreg wrappers. 2007-10-10 12:59:29 -05:00
Andrew Tridgell
f4a7a3282a r2738: free up the session information as soon as it is invalidated in the
RAW-CONTEXT test case
2007-10-10 12:59:28 -05:00
Andrew Tridgell
e62bd7ef7e r2737: fixed up a corner case where talloc_unreference() and talloc_free()
might not place the pointer in the context specified in the docs. The
code was assuming that pointer was at the head of the child list,
which it may not be, depending on what other operations have happened
in between.
2007-10-10 12:59:28 -05:00
Jelmer Vernooij
1bb4718328 r2735: More DCOM updates:
- Several updates to the interface definitions after reading some more of the
 specs
  - Add Remote Activation interface
  - Add body extension uuids
 - Add oxidresolve torture test to list
 - Make pidl complain about object interfaces that don't inherit from IUnknown
2007-10-10 12:59:27 -05:00
Andrew Tridgell
feb63e74f9 r2734: the samdb_destructor can be static 2007-10-10 12:59:27 -05:00
Stefan Metzmacher
a0e4dca3da r2731: use debug level 10 everywhere
metze
2007-10-10 12:59:27 -05:00
Tim Potter
799b377bad r2728: Break arg parsing stuff out of samr.py into a standalone program. 2007-10-10 12:59:27 -05:00
Stefan Metzmacher
7ff118ecc9 r2727: mark the password fields as hidden
metze
2007-10-10 12:59:27 -05:00
Andrew Tridgell
476674af55 r2726: added a -r option to ldbdel to allow easy delete of a whole
subtree. Useful when cleaning up a mess after testing.
2007-10-10 12:59:27 -05:00
Andrew Tridgell
19925f5bd8 r2725: fixed ldbtest to give the basedn to ldb_search() 2007-10-10 12:59:27 -05:00
Stefan Metzmacher
0aa622bdc4 r2724: - use ldapsrv_service and set it up with the rootDSE and default partition
(this is not complete yet)

- call asn1_free() after each call

metze
2007-10-10 12:59:26 -05:00
Stefan Metzmacher
9600c1a2c7 r2723: fix some debug messages
metze
2007-10-10 12:59:26 -05:00
Stefan Metzmacher
60dcba3e91 r2722: remove tmp debug messages
metze
2007-10-10 12:59:26 -05:00
Andrew Tridgell
fd2725f5c0 r2721: added a -b option to ldbtest so it can be used with the new smbd ldap server
without changing realms
2007-10-10 12:59:26 -05:00
Stefan Metzmacher
e74d3895f0 r2720: -implement sldb_Modify() call
metze
2007-10-10 12:59:26 -05:00
Andrew Tridgell
a87584c8e3 r2718: - added a talloc_unreference() function as requested by metze.
- added documentation for talloc_unreference()

- made the abandoned child logic in talloc_free() clearer and more consistent
2007-10-10 12:59:26 -05:00
Stefan Metzmacher
7419c6dabb r2714: - add sldb_Add() implementation
- fix some errstr settings

metze
2007-10-10 12:59:25 -05:00
Andrew Tridgell
b0c92616fb r2713: better handling of binary values in index key creation 2007-10-10 12:59:25 -05:00
Andrew Tridgell
3f776a9b5c r2712: fixed a bug in ldbtest to make it cope with an existing index 2007-10-10 12:59:25 -05:00
Andrew Tridgell
91669ea830 r2711: added a simple talloc speed tester. I get the following on my laptop:
MEASURING TALLOC VS MALLOC SPEED
  talloc: 279154 ops/sec
  malloc: 318758 ops/sec

which I think is an acceptable overhead for the increased functionality
2007-10-10 12:59:25 -05:00
Andrew Tridgell
e14ee428ec r2710: continue with the new style of providing a parent context whenever
possible to a structure creation routine. This makes for much easier
global cleanup.
2007-10-10 12:59:25 -05:00
Andrew Tridgell
911a8d590c r2709: finally solved the talloc reference problem.
The problem was that the simple "uint_t ref_count;" in a talloc chunk
did not give enough information. It told us that a pointer was
referenced more than once, but it didn't say who it was referenced
by. This means that when the pointer was freed we had no sane way to
clean up the reference.

I have now replaced ref_count with a "refs" list, which means that
references point to the pointer, and the pointer has a linked list of
references. So now we can cleanup from either direction without losing track of anything.

I've also added a LOCAL-TALLOC smbtorture test that tests talloc
behaviour for some common uses.
2007-10-10 12:59:24 -05:00
Jelmer Vernooij
b2f4532e90 r2705: Don't try RemQueryInterface2 for now (doesn't validate) 2007-10-10 12:59:24 -05:00
Jelmer Vernooij
e364e46a88 r2704: Complain about 'object interfaces' that don't have version 0.0 (the standard
doesn't allow them to! I think the idea is that you just create a new
interface that inherits your old interface, thus ensuring backwards-compatibility)
Re-enable to validator
2007-10-10 12:59:24 -05:00
Jelmer Vernooij
9e74144aa8 r2699: Correct handle ServerAlive() and ServerAlive2() + add torture tests 2007-10-10 12:59:24 -05:00
Jelmer Vernooij
b54d14a01a r2696: DCOM updates:
- Start working on OXIDResolver interface
 - Add torture test for SimplePing()
2007-10-10 12:59:24 -05:00
Simo Sorce
ddd74dae8e r2695: revert "Del" renaming 2007-10-10 12:59:24 -05:00
Simo Sorce
35135033ff r2694: DN -> DC these are domain components ... 2007-10-10 12:59:23 -05:00
Stefan Metzmacher
1de1beca66 r2693: - send a reply when no attributes there
- add some debug messages

metze
2007-10-10 12:59:23 -05:00
Simo Sorce
3d587a7141 r2690: deleted by mistake 2007-10-10 12:59:22 -05:00