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

1064 Commits

Author SHA1 Message Date
Rafal Szczesniak
982b3d7412 r7737: Test for libnet_Lookup function.
rafal
(This used to be commit 4655881fac37dbf26a5d60385e5f0a70b8c1c775)
2007-10-10 13:18:28 -05:00
Andrew Tridgell
ee57c76a68 r7704: - fixed open_nbt_connection() to return NULL when the connection failed
- got rid of smbcli_shutdown() and use talloc_free() instead.
(This used to be commit 1011b1bf51d420d6702ef448c894ea8ebeafa284)
2007-10-10 13:18:23 -05:00
Andrew Bartlett
a4bb5ae30c r7689: Add new file from previous commit (seperate file for session key test).
(This used to be commit fbec0ed13bc20093da308dee0108721d88e9c322)
2007-10-10 13:18:23 -05:00
Andrew Bartlett
88fc8f243f r7686: Check for a type of invalid account name.
Andrew Bartlett
(This used to be commit 7520879bb08d191f0ab97508f14f525886b1b48b)
2007-10-10 13:18:22 -05:00
Andrew Bartlett
9db3f0cd5e r7685: Simply the test for session key logic, so we pass against NT4.
Now, to try and figure out why this logic failed for jra...

Andrew Bartlett
(This used to be commit a32066a9ecf7cd82f66eb8381e07d014f5ac5eff)
2007-10-10 13:18:22 -05:00
Andrew Bartlett
b0f5ac8248 r7684: Add a test aimed at checking we have agreement between client and
server as to the CIFS session key.

JRA had pain with this being wrong against NT4 (without spnego), hence
this specific test.

Andrew Bartlett
(This used to be commit 47f433708ba38db9bf569567cc048e65f2786ebe)
2007-10-10 13:18:22 -05:00
Andrew Bartlett
b523bde499 r7675: Use correct memory context for anonymous session setup auth context
(no need for it to hang around forever).

Add test for this behaviour.

Andrew Bartlett
(This used to be commit 36dc2491d778fbbff32c4abdf95faa9f83024e12)
2007-10-10 13:18:21 -05:00
Andrew Tridgell
07c395a40b r7657: test addone again after request timeout and destruction to ensure the pipe is still OK
(This used to be commit 9f7f70124fc67109bc9ace7a57490851341ad759)
2007-10-10 13:18:18 -05:00
Andrew Tridgell
dc8961ad42 r7656: added testing of rpc request timeouts and destruction
(This used to be commit eddf41d5e4ca43073b96f96b96dbadf7b8b91df5)
2007-10-10 13:18:18 -05:00
Andrew Tridgell
4f6225d695 r7655: test the evnt friendly socket_connect() in the LOCAL-SOCKET test
(This used to be commit b9ed92d550f1b821c5402a516eb2dfc2c8d69f0a)
2007-10-10 13:18:18 -05:00
Andrew Tridgell
ffa3632188 r7650: fixed a typo
(This used to be commit 331afee4ca5bc6a6f7e4fe3333846881424314fe)
2007-10-10 13:18:17 -05:00
Stefan Metzmacher
038628b9c5 r7642: - test NULL server_name in GetPrinterDriverDirectory() too, (same result as "")
- test EnumForms() on the PrintServer (NT4 returns WERR_BADFID)
  (jerry: how do it get the lists of forms in the printserver gui)

metze
(This used to be commit fddfe1f04b3ae594e75d702aba4d17ee4d103b8e)
2007-10-10 13:18:16 -05:00
Andrew Tridgell
af237084ec 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
(This used to be commit 3a3025485bdb8f600ab528c0b4b4eef0c65e3fc9)
2007-10-10 13:18:15 -05:00
Tim Potter
fb201ec2af r7628: Unused variables.
(This used to be commit b2529307aaf1e47ce74632b4e516494ac71fe8d1)
2007-10-10 13:18:15 -05:00
Andrew Tridgell
bab977dad7 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
(This used to be commit 2e3c660b2fc20e046d82bf1cc296422b6e7dfad0)
2007-10-10 13:18:14 -05:00
Andrew Tridgell
c0947b0d7f r7593: simplified the memory management in the ldap code. Having a mem_ctx
element in a structure is not necessary any more.
(This used to be commit 912d0427f52eac811b27bf7e385b0642f7dc7f53)
2007-10-10 13:18:12 -05:00
Stefan Metzmacher
056d63c62f 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
(This used to be commit 08e6de37bc293e2f000d03b51642964d92d6e95e)
2007-10-10 13:18:11 -05:00
Stefan Metzmacher
04c3bbe053 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
(This used to be commit f5532a5b74e972f44ed8aa19ee9c5851a4b40f65)
2007-10-10 13:18:11 -05:00
Andrew Bartlett
00e2b7c1b4 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
(This used to be commit 990e061939c76b559c4f5914c5fc6ca1b13e19dd)
2007-10-10 13:18:07 -05:00
Andrew Tridgell
68c15667f5 r7528: cleaned up the QueryDisplayInfo_continue test
(This used to be commit a977dcef030605d0be1b7ce2a6500b202e35eaac)
2007-10-10 13:18:06 -05:00
Andrew Tridgell
4b0e5bd753 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()
(This used to be commit 96620ab2ee5d440bbbc51c1bc0cad9977770f897)
2007-10-10 13:18:06 -05:00
Andrew Bartlett
2b4791ae73 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
(This used to be commit 50f3c2b3a22971f40e0d3a88127b5120bfc47591)
2007-10-10 13:18:06 -05:00
Andrew Bartlett
04b350acf8 r7521: Remove useless loops from SAMLOGON test, which speeds it up a lot.
Andrew Bartlett
(This used to be commit d74b7c20b6e547dba039992f69cea31b46d92286)
2007-10-10 13:18:05 -05:00
Andrew Tridgell
694488d29c r7507: fixed the problem with users being shown too many times in acl
editors, and added a test for it.
(This used to be commit 9e428881f6fc0a422ac9011d847e8f692284397a)
2007-10-10 13:18:02 -05:00
Andrew Tridgell
82da98a1da 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.
(This used to be commit 5cccf0a770e0c1069f940fa8f4853f64327dc90c)
2007-10-10 13:18:00 -05:00
Rafal Szczesniak
1104ca3337 r7491: libnet functions used in tests have different names now.
rafal
(This used to be commit d54bf09701b1085451479a32569849998c53c811)
2007-10-10 13:17:59 -05:00
Stefan Metzmacher
68ff6b1262 r7487: check both files before and after setting the attribs on file1
metze
(This used to be commit 376c0560e0cb453fa8a378ff2983b34310956ae8)
2007-10-10 13:17:58 -05:00
Tim Potter
6412e8eeae r7482: Rename smbcli_send_tconX() to smbcli_tconX() so as not to get it
confused with an async function.
(This used to be commit 340ad67cada15329051c205c5b094ad641718c72)
2007-10-10 13:17:58 -05:00
Tim Potter
43d3689ecf r7479: ifdef out some more stuff to fix compiler warnings.
(This used to be commit c4d10a98ff991cc48d065c4373570aedc37dccf3)
2007-10-10 13:17:57 -05:00
Stefan Metzmacher
56af29caa5 r7464: add newline to printf
metze
(This used to be commit 7123cd1116a464057bfaa0b3fcb881ee96f684cc)
2007-10-10 13:17:56 -05:00
Andrew Tridgell
34f48e0e09 r7431: this should fix the bug that mkaplan and I noticed which is that
BENCH-NBENCH sometimes incorrectly reports that it failed.
(This used to be commit 167c29bec6f28e58b5d36325b4285748a47adc58)
2007-10-10 13:17:52 -05:00
Stefan Metzmacher
1b11f11b34 r7426: add an option to disable progress output
torture:progress=no

metze
(This used to be commit 820e5a1270d8bd308f03fc96161396fb4b95da61)
2007-10-10 13:17:52 -05:00
Stefan Metzmacher
be6b73de65 r7401: add config option to disable the TestSleep() test
torture:echo_TestSleep=no

metze
(This used to be commit 74bb55f3ae90871749f34f17a79eabe38d6b437a)
2007-10-10 13:17:50 -05:00
Rafal Szczesniak
c80aedc744 r7384: I've forgotten to commit test source.
Fix the build and get some sleep...

rafal
(This used to be commit 966d148ecaa66987832df6dc8da4c53bfb04d18d)
2007-10-10 13:17:49 -05:00
Rafal Szczesniak
74c5b52962 r7383: Add CreateUser test to torture suite.
rafal
(This used to be commit bac24d9774f6f9298278a1dd9ab7718d8ab6c87c)
2007-10-10 13:17:49 -05:00
Stefan Metzmacher
30da4d8d93 r7369: allow no entries returned by Enum*()
metze
(This used to be commit 3778da9d17778cb215ac08e1dcd6ad8c0fa13dfd)
2007-10-10 13:17:47 -05:00
Tim Potter
7d3d4d0f3b r7365: Remove unused variables.
(This used to be commit aa3dd5e8cf21d3502e10686ce94c802ebaa41ee8)
2007-10-10 13:17:47 -05:00
Andrew Tridgell
74aeab5329 r7358: make the irpc test use two messaging contexts, not one, so it better
matches the LOCAL-MESSAGING test
(This used to be commit 5883ce16d0b98c9c23ee60fe6089e0adf2ce8d15)
2007-10-10 13:17:46 -05:00
Stefan Metzmacher
22ae788666 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
(This used to be commit 6bccf55ab9dcdd8590684ab46c5b101e2969e7f7)
2007-10-10 13:17:45 -05:00
Stefan Metzmacher
f9716b51cd r7342: submit a test job for each printer and delete this job
metze
(This used to be commit b71d57709733b33e553022271de4ec51f9049a66)
2007-10-10 13:17:44 -05:00
Stefan Metzmacher
6484698ee4 r7340: fix the build
and some more error checks

metze
(This used to be commit da6263d4211d85872a232349164e669c33234d6f)
2007-10-10 13:17:44 -05:00
Stefan Metzmacher
87bbda10bf r7333: Pause and resume each printer
metze
(This used to be commit 191375f41708503e62e14132f691a9b6ec149a1b)
2007-10-10 13:17:43 -05:00
Stefan Metzmacher
d8889b6f8d r7329: test some more PrinterData values
metze
(This used to be commit ad35bfb2250c97571334ab0e9b32b3080cba2e7f)
2007-10-10 13:17:42 -05:00
Stefan Metzmacher
9a831a3963 r7328: fix GetPrinterData and SetPrinterData, with zero length subcontexts
metze
(This used to be commit 73d597bacf83492ed3da2307dd6785548b903b39)
2007-10-10 13:17:42 -05:00
Rafal Szczesniak
4a456f2fbc r7325: Add composite domain open test.
rafal
(This used to be commit 2614aa69341f21fc02a9b08fc1657364f78aafbd)
2007-10-10 13:17:42 -05:00
Rafal Szczesniak
adc603731e r7324: Torture test for composite domain open function.
rafal
(This used to be commit 482ff6a78078b62041ba69947048ed96dee13144)
2007-10-10 13:17:42 -05:00
Andrew Tridgell
412e4bd820 r7321: add nbtd statistics serving over irpc
(This used to be commit 4c0ed7328b14969ea34790b0e80fa714c44ccc5f)
2007-10-10 13:17:41 -05:00
Andrew Tridgell
d934cb71d0 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.
(This used to be commit a05d38d1d91f1f54d3e3794a596b468992594852)
2007-10-10 13:17:38 -05:00
Andrew Tridgell
bf1ffa283c 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.
(This used to be commit 3d589a09954eb8b318f567e1150b0c27412fb942)
2007-10-10 13:17:37 -05:00
Jelmer Vernooij
c56ddaf7ef 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).
(This used to be commit 837c83d77a2d1990419c4f3e343616daf8da5799)
2007-10-10 13:17:25 -05:00