1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-29 21:47:30 +03:00

1052 Commits

Author SHA1 Message Date
Andrew Tridgell
3a3025485b r7633: this patch started as an attempt to make the dcerpc code use a given
event_context for the socket_connect() call, so that when things that
use dcerpc are running alongside anything else it doesn't block the
whole process during a connect.

Then of course I needed to change any code that created a dcerpc
connection (such as the auth code) to also take an event context, and
anything that called that and so on .... thus the size of the patch.

There were 3 places where I punted:

  - abartlet wanted me to add a gensec_set_event_context() call
    instead of adding it to the gensec init calls. Andrew, my
    apologies for not doing this. I didn't do it as adding a new
    parameter allowed me to catch all the callers with the
    compiler. Now that its done, we could go back and use
    gensec_set_event_context()

  - the ejs code calls auth initialisation, which means it should pass
    in the event context from the web server. I punted on that. Needs fixing.

  - I used a NULL event context in dcom_get_pipe(). This is equivalent
    to what we did already, but should be fixed to use a callers event
    context. Jelmer, can you think of a clean way to do that?

I also cleaned up a couple of things:

 - libnet_context_destroy() makes no sense. I removed it.

 - removed some unused vars in various places
2007-10-10 13:18:15 -05:00
Tim Potter
b2529307aa r7628: Unused variables. 2007-10-10 13:18:15 -05:00
Andrew Tridgell
2e3c660b2f r7626: a new ldap client library. Main features are:
- hooked into events system, so requests can be truly async and won't
   interfere with other processing happening at the same time

 - uses NTSTATUS codes for errors (previously errors were mostly
   ignored). In a similar fashion to the DOS error handling, I have
   reserved a range of the NTSTATUS code 32 bit space for LDAP error
   codes, so a function can return a LDAP error code in a NTSTATUS

 - much cleaner packet handling
2007-10-10 13:18:14 -05:00
Andrew Tridgell
912d0427f5 r7593: simplified the memory management in the ldap code. Having a mem_ctx
element in a structure is not necessary any more.
2007-10-10 13:18:12 -05:00
Stefan Metzmacher
08e6de37bc r7580: - add GetPrinterDriverDirectory() idl, torture test and server code
- add EnumMonitors() server code and return "Standard TCP/IP Port"
- add parsing for opening Ports and Monitors with OpenPrinterEx()

metze
2007-10-10 13:18:11 -05:00
Stefan Metzmacher
f5532a5b74 r7574: - seperate [in] and [out] buffers and buf_sizes
- use the same names as etherel (offered,needed) for the buffer sizes
  (and they are really independently used)

metze
2007-10-10 13:18:11 -05:00
Andrew Bartlett
990e061939 r7530: Simply calling convention of lp_load().
This always loads all the services, as we now don't have an easy way
to split out smbd.

Andrew Bartlett
2007-10-10 13:18:07 -05:00
Andrew Tridgell
a977dcef03 r7528: cleaned up the QueryDisplayInfo_continue test 2007-10-10 13:18:06 -05:00
Andrew Tridgell
96620ab2ee r7527: - added a ldb_search_bytree() interface, which takes a ldb_parse_tree
instead of a search expression. This allows our ldap server to pass
  its ASN.1 parsed search expressions straight to ldb, instead of going
  via strings.

- updated all the ldb modules code to handle the new interface

- got rid of the separate ldb_parse.h now that the ldb_parse
  structures are exposed externally

- moved to C99 structure initialisation in ldb

- switched ldap server to using ldb_search_bytree()
2007-10-10 13:18:06 -05:00
Andrew Bartlett
50f3c2b3a2 r7525: Unify lp_load(), load_interfaces and logging setup into popt().
There is now a new --debug-stderr option to enable debug to STDERR.

popt isn't perfect, but the callbacks are used in all the main Samba
binaries, and should be used in the rest.  This avoids duplicated
code, and ensures every binary is setup correctly.

This also ensures the setup happens early enough to have -s function,
and have a correct impact on the credentials code.  (Fixing a bug that
frustrated tridge earlier today).

The only 'subtle' aspect of all this is that I'm pretty sure that the
SAMBA_COMMON popt code must be above the CREDENTIALS code, in the
popt tables.

Andrew Bartlett
2007-10-10 13:18:06 -05:00
Andrew Bartlett
d74b7c20b6 r7521: Remove useless loops from SAMLOGON test, which speeds it up a lot.
Andrew Bartlett
2007-10-10 13:18:05 -05:00
Andrew Tridgell
9e428881f6 r7507: fixed the problem with users being shown too many times in acl
editors, and added a test for it.
2007-10-10 13:18:02 -05:00
Andrew Tridgell
5cccf0a770 r7494: added --maximum-runtime to smbtorture as well. I have seen smbtorture
get stuck waiting on no file descriptors, with no timeout, so it sits
forever. I need to fix that bug separately, but to prevent build farm
machines being totally stuck, this timeout will be used.
2007-10-10 13:18:00 -05:00
Rafal Szczesniak
d54bf09701 r7491: libnet functions used in tests have different names now.
rafal
2007-10-10 13:17:59 -05:00
Stefan Metzmacher
376c0560e0 r7487: check both files before and after setting the attribs on file1
metze
2007-10-10 13:17:58 -05:00
Tim Potter
340ad67cad r7482: Rename smbcli_send_tconX() to smbcli_tconX() so as not to get it
confused with an async function.
2007-10-10 13:17:58 -05:00
Tim Potter
c4d10a98ff r7479: ifdef out some more stuff to fix compiler warnings. 2007-10-10 13:17:57 -05:00
Stefan Metzmacher
7123cd1116 r7464: add newline to printf
metze
2007-10-10 13:17:56 -05:00
Andrew Tridgell
167c29bec6 r7431: this should fix the bug that mkaplan and I noticed which is that
BENCH-NBENCH sometimes incorrectly reports that it failed.
2007-10-10 13:17:52 -05:00
Stefan Metzmacher
820e5a1270 r7426: add an option to disable progress output
torture:progress=no

metze
2007-10-10 13:17:52 -05:00
Stefan Metzmacher
74bb55f3ae r7401: add config option to disable the TestSleep() test
torture:echo_TestSleep=no

metze
2007-10-10 13:17:50 -05:00
Rafal Szczesniak
966d148eca r7384: I've forgotten to commit test source.
Fix the build and get some sleep...

rafal
2007-10-10 13:17:49 -05:00
Rafal Szczesniak
bac24d9774 r7383: Add CreateUser test to torture suite.
rafal
2007-10-10 13:17:49 -05:00
Stefan Metzmacher
3778da9d17 r7369: allow no entries returned by Enum*()
metze
2007-10-10 13:17:47 -05:00
Tim Potter
aa3dd5e8cf r7365: Remove unused variables. 2007-10-10 13:17:47 -05:00
Andrew Tridgell
5883ce16d0 r7358: make the irpc test use two messaging contexts, not one, so it better
matches the LOCAL-MESSAGING test
2007-10-10 13:17:46 -05:00
Stefan Metzmacher
6bccf55ab9 r7346: use StartPagePrinter(), WritePrinter() and EndPagePrinter() to print a few test pages
on each printer
(we don't actually print because we have paused the printer before...)

metze
2007-10-10 13:17:45 -05:00
Stefan Metzmacher
b71d577097 r7342: submit a test job for each printer and delete this job
metze
2007-10-10 13:17:44 -05:00
Stefan Metzmacher
da6263d421 r7340: fix the build
and some more error checks

metze
2007-10-10 13:17:44 -05:00
Stefan Metzmacher
191375f417 r7333: Pause and resume each printer
metze
2007-10-10 13:17:43 -05:00
Stefan Metzmacher
ad35bfb225 r7329: test some more PrinterData values
metze
2007-10-10 13:17:42 -05:00
Stefan Metzmacher
73d597bacf r7328: fix GetPrinterData and SetPrinterData, with zero length subcontexts
metze
2007-10-10 13:17:42 -05:00
Rafal Szczesniak
2614aa6934 r7325: Add composite domain open test.
rafal
2007-10-10 13:17:42 -05:00
Rafal Szczesniak
482ff6a780 r7324: Torture test for composite domain open function.
rafal
2007-10-10 13:17:42 -05:00
Andrew Tridgell
4c0ed7328b r7321: add nbtd statistics serving over irpc 2007-10-10 13:17:41 -05:00
Andrew Tridgell
a05d38d1d9 r7295: added an irpc benchmark. It gets about 16k messages/sec on my laptop,
compared to about 20k messages/sec for the raw messaging layer. I
think that is quite acceptable given the extra functionality.
2007-10-10 13:17:38 -05:00
Andrew Tridgell
3d589a0995 r7294: implemented the irpc messaging system. This is the core of the
management system I proposed on samba-technical a couple of days
ago. Essentially it is a very lightweight way for any code in Samba to
make IDL based rpc calls to anywhere else in the code, without the
client or server having to go to the trouble of setting up a full rpc
service.

It can be used with any of our existing IDL, but I expect it will
mostly be used for a new set of Samba specific management calls.

The LOCAL-IRPC torture test demonstrates how it can be used by calling
the echo_AddOne() call over this transport.
2007-10-10 13:17:37 -05:00
Jelmer Vernooij
837c83d77a r7195: - Fix echo pipe
- Don't allocate strings
- Give higher preference to the [out] part of variables when they
  are being used by another [out] variable. Also make sure that
  [in] variables never use [out] variables (i.e. switch_is() on an
  [in] variable can no longer use an [out] variable).
2007-10-10 13:17:25 -05:00
Jeremy Allison
997e1405cb r7180: Missed fixing the shutdown for 1 process...
Jeremy.
2007-10-10 13:17:23 -05:00
Jeremy Allison
fba9462591 r7178: If we're using one process in NETBENCH simultion only open one
connection to the server. Makes valgrind/cachegrind on the server
easier.
Jeremy.
2007-10-10 13:17:23 -05:00
Jelmer Vernooij
b264c61061 r7159: Improve the messages from pidl's validator module.
Change the IDL file for the echo interface to match the one we use for
Windows. The only thing different between the two files currently is the
names of the scalar types and the handling of strings.
2007-10-10 13:17:21 -05:00
Stefan Metzmacher
155d18e8b7 r7120: make use of the new 'noopnum' property and get rid of handwritten
parsing code for the spoolss_Enum* functions, there still same handwritten code needed
but just to stack the autogenerated code into the correct way

metze
2007-10-10 13:17:19 -05:00
Jelmer Vernooij
b00355bf0c r7117: Move more manpages to the source repository 2007-10-10 13:17:18 -05:00
Jeremy Allison
ec72d7d614 r6975: Test opening filenames with control characters in fails
with INVALID_NAME.
Jeremy.
2007-10-10 13:17:01 -05:00
Jelmer Vernooij
7b6b8d6b34 r6961: Add RPC-WINREG to list of win2k3 tests
Fix bug in test for QueryMultipleValues
Ignore errors from CreateKey() and GetKeySecurity() for now
2007-10-10 13:17:00 -05:00
Tim Potter
affacc5398 r6951: Fix all calls to setup_logging() that use 'True' as a second argument.
In Samba4 this is now an enum.  Possibly by accident, True just happens
to map to the right value in this case.  (-:
2007-10-10 13:17:00 -05:00
Tim Potter
b896daf11c r6933: Add a couple of helper functions for creating nbt names. 2007-10-10 13:16:58 -05:00
Volker Lendecke
81ddffde36 r6907: Unixinfo for samba4, not activated by default.
Volker
2007-10-10 13:16:56 -05:00
Andrew Tridgell
ab19e38c23 r6875: added a BENCH-CLDAP test. Speed of the cldap server isn't all that important, but it does
help find memory leaks (and in fact, there was one, fixed in next commit)
2007-10-10 13:16:53 -05:00
Andrew Tridgell
b3dd5c326e r6869: removed completely bogus BASE-RW2 test 2007-10-10 13:16:52 -05:00