1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
Commit Graph

61 Commits

Author SHA1 Message Date
Jelmer Vernooij
eefe30b7d8 r14379: Build torture/rpc/ as a seperate smbtorture module. Move helper
functions for rpc out of torture/torture.c
(This used to be commit 1d2d970f3b)
2007-10-10 13:57:16 -05:00
Jelmer Vernooij
4ac2be9958 r13924: Split more prototypes out of include/proto.h + initial work on header
file dependencies
(This used to be commit 1228358767)
2007-10-10 13:52:24 -05:00
Andrew Bartlett
4c6b9c79ff r12864: Fix valgrind errors in NET-API-LOOKUP* tests.
Andrew Bartlett
(This used to be commit 21f87f87a9)
2007-10-10 13:50:55 -05:00
Andrew Bartlett
b135f4467f r12858: This moves the libnet_LookupPdc code to use a GetDC request to find
the remote server's name, or in the absence of a local nbt_server to
communicate with (or without root access), a node status request.

The result is that we are in a better position to use kerberos, as well
as to remove the 'password server' mandatory parameter for the samsync
and samdump commands.  (I need this to put these into SWAT).

The only problem I have is that I must create a messaging context, which
requires a server ID.  As a client process, I don't expect to get
messages, but it is currently required for replies, so I generate a
random() number.  We probably need the servers to accept connections on
streamed sockets too, for client-only tasks that want IRPC.

Because I wanted to test this code, I have put the NET-API-* tests into
our test scripts, to ensure they pass and keep passing.  They are good
frontends onto the libnet system, and I see no reason not to test them.

In doing so the NET-API-RPCCONNECT test was simplified to take a
binding string on the command line, removing duplicate code, and
testing the combinations in the scripts instead.

(I have done a bit of work on the list shares code in libnet_share.c
to make it pass 'make test')

In the future, I would like to extend the libcli/findds.c code (based
off volker's winbind/wb_async_helpers.c, which is why it shows up a bit
odd in the patch) to handle getting multiple name replies, sending a
getdc request to each in turn.

(posted to samba-technical for review, and I'll happily update with
any comments)

Andrew Bartlett
(This used to be commit 7ccddfd351)
2007-10-10 13:50:54 -05:00
Rafal Szczesniak
2470034e54 r12835: RpcConnect test expansion to test connecting using ncacp_ip_tcp
as well as ncacn_np.

rafal
(This used to be commit 70cf8a4b67)
2007-10-10 13:50:04 -05:00
Jelmer Vernooij
63d718e243 r12696: Reduce the size of include/structs.h
(This used to be commit 6391761601)
2007-10-10 13:49:40 -05:00
Jelmer Vernooij
25bb00fbcd r12693: Move core data structures out of smb.h into core.h
torture prototypes in seperate header
(This used to be commit 73610639b2)
2007-10-10 13:49:39 -05:00
Jelmer Vernooij
d4de4c2d21 r12608: Remove some unused #include lines.
(This used to be commit 70e7449318)
2007-10-10 13:49:03 -05:00
Jelmer Vernooij
2cd5ca7d25 r12542: Move some more prototypes out to seperate headers
(This used to be commit 0aca5fd513)
2007-10-10 13:47:55 -05:00
Jelmer Vernooij
acd6a086b3 r12510: Change the DCE/RPC interfaces to take a pointer to a
dcerpc_interface_table struct rather then a tuple of interface
name, UUID and version.

This removes the requirement for having a global list of DCE/RPC interfaces,
except for these parts of the code that use that list explicitly
(ndrdump and the scanner torture test).

This should also allow us to remove the hack that put the authservice parameter
in the dcerpc_binding struct as it can now be read directly from
dcerpc_interface_table.

I will now modify some of these functions to take a dcerpc_syntax_id
structure rather then a full dcerpc_interface_table.
(This used to be commit 8aae0f168e)
2007-10-10 13:47:48 -05:00
Volker Lendecke
f792c4f8f2 r11527: Has this ever been run?
(This used to be commit 419b28d02d)
2007-10-10 13:45:49 -05:00
Stefan Metzmacher
ab4d635b92 r10504: - seperate implementation specific stuff, from the generic composite
stuff.
- don't use SMBCLI_REQUEST_* state's in the genreic composite stuff
- move monitor_fn to libnet.

NOTE: I have maybe found some bugs, in code that is dirrectly in DONE or ERROR
      state in the _send() function. I haven't fixed this bugs in this
      commit! We may need some composite_trigger_*() functions or so.
      And maybe some other generic helper functions...

metze
(This used to be commit 4527815a0a)
2007-10-10 13:38:57 -05:00
Tim Potter
6e17020de9 r9884: Fix compiler warning.
(This used to be commit 6e30dd8a50)
2007-10-10 13:36:20 -05:00
Rafal Szczesniak
6f6e42c856 r9090: Another field in usermod function - account flags.
rafal
(This used to be commit f0d51b78c0)
2007-10-10 13:31:15 -05:00
Rafal Szczesniak
9d7d5ea229 r9037: New fields in usermod function - allow_password_change and
force_password_change datetime.

rafal
(This used to be commit dfa2cc6c4e)
2007-10-10 13:31:10 -05:00
Stefan Metzmacher
94bc92b708 r9028: make some function static
metze
(This used to be commit 72643ac4c4)
2007-10-10 13:31:09 -05:00
Rafal Szczesniak
26daec8d09 r8977: Put my copyright in share torture test.
rafal
(This used to be commit 186bcabaa6)
2007-10-10 13:31:02 -05:00
Rafal Szczesniak
d1743c93df r8975: Very basic test for delshare function based on code submitted
by Gregory LEOCADIE <gleocadie@idealx.com>.

rafal
(This used to be commit 4d4d1ab37d)
2007-10-10 13:31:02 -05:00
Rafal Szczesniak
798fbb45e3 r8954: Use binding string to specify host rather than share path, as we use
rpc call here after all. Also, safely exit (freeing memory context) in
case of any error.

rafal
(This used to be commit be2584df1d)
2007-10-10 13:31:00 -05:00
Rafal Szczesniak
b0b881a792 r8944: Get more verbose output from NET-API-LISTSHARE test.
rafal
(This used to be commit b1ff59d80f)
2007-10-10 13:30:59 -05:00
Rafal Szczesniak
2a45ec2049 r8930: Add the libnet share tests based on code submitted by
Gregory Leocadie <gleocadie@idealx.com>. Listing shares passes,
deleting not yet - it's a work in progress.

rafal
(This used to be commit 5c53498a4a)
2007-10-10 13:30:58 -05:00
Rafal Szczesniak
2786f847b8 r8897: Add test for the comment field.
rafal
(This used to be commit 3cb517f7c1)
2007-10-10 13:30:16 -05:00
Rafal Szczesniak
5cc8a42a05 r8807: Modifying datetime field using struct timeval argument rather than
text-based, after recent discussion with both Andrews :)

Basic test seems to work (at least it doesn't fail now).

rafal
(This used to be commit 1bc3162e94)
2007-10-10 13:30:06 -05:00
Rafal Szczesniak
b2ed6343cb r8761: Propagate changes in monitor messaging code.
rafal
(This used to be commit 5be8479d5c)
2007-10-10 13:30:03 -05:00
Rafal Szczesniak
2440a008a8 r8759: Another couple of fields in usermod routine.
rafal
(This used to be commit 266aaacf0b)
2007-10-10 13:30:03 -05:00
Rafal Szczesniak
64f31e424b r8721: Further work on libnet_rpc_usermod function. Now it can change
both account name and full name.

rafal
(This used to be commit 1a779f8643)
2007-10-10 13:29:58 -05:00
Rafal Szczesniak
6366a8dc2d r8693: Test code for usermod routine.
rafal
(This used to be commit 19f5ea9c9c)
2007-10-10 13:29:54 -05:00
Stefan Metzmacher
0b92507760 r8232: remove samr_String and netr_String as they are the same as lsa_String
metze
(This used to be commit e601042c07)
2007-10-10 13:19:22 -05:00
Rafal Szczesniak
dd36f13320 r8094: Fix compiler warnings.
rafal
(This used to be commit cca6d79294)
2007-10-10 13:19:07 -05:00
Rafal Szczesniak
2e419725b0 r8081: Add simple test for RpcConnect function.
rafal
(This used to be commit 0209fc67ad)
2007-10-10 13:19:06 -05:00
Rafal Szczesniak
12d4893c28 r8080: Use libnet_context where using libnet_Lookup functions now.
rafal
(This used to be commit 1815a6af06)
2007-10-10 13:19:06 -05:00
Rafal Szczesniak
c2e76c4648 r8079: Dcerpc pipe in libnet_context is just pipe now, instead of explicit samr.
rafal
(This used to be commit e7870156da)
2007-10-10 13:19:06 -05:00
Andrew Tridgell
d60b11c1f0 r7864: fixed some const bugs
(This used to be commit 616f54015f)
2007-10-10 13:18:44 -05:00
Andrew Tridgell
3e47620776 r7858: removed some unused variables
(This used to be commit 8d43eb5b97)
2007-10-10 13:18:43 -05:00
Rafal Szczesniak
cc98a92bb0 r7816: Implementation of "shortcut" function for those (probably many) who
don't like to bother with netbios type names when looking for common
types: hosts (servers) and domain controllers. Also, apropriate tests

rafal
(This used to be commit 50cd94be0f)
2007-10-10 13:18:40 -05:00
Rafal Szczesniak
982b3d7412 r7737: Test for libnet_Lookup function.
rafal
(This used to be commit 4655881fac)
2007-10-10 13:18:28 -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 3a3025485b)
2007-10-10 13:18:15 -05:00
Tim Potter
fb201ec2af r7628: Unused variables.
(This used to be commit b2529307aa)
2007-10-10 13:18:15 -05:00
Rafal Szczesniak
1104ca3337 r7491: libnet functions used in tests have different names now.
rafal
(This used to be commit d54bf09701)
2007-10-10 13:17:59 -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 966d148eca)
2007-10-10 13:17:49 -05:00
Tim Potter
7d3d4d0f3b r7365: Remove unused variables.
(This used to be commit aa3dd5e8cf)
2007-10-10 13:17:47 -05:00
Rafal Szczesniak
adc603731e r7324: Torture test for composite domain open function.
rafal
(This used to be commit 482ff6a780)
2007-10-10 13:17:42 -05:00
Tim Potter
47823c1735 r6847: Fix some unused variable warnings in the libnet torture test.
(This used to be commit 448795607f)
2007-10-10 13:16:50 -05:00
Rafal Szczesniak
84f248ec84 r6717: - torture test of async useradd function and monitor messages.
- make message handling functions static.

rafal
(This used to be commit 96446e5e1e)
2007-10-10 13:16:37 -05:00
Tim Potter
1838812454 r6674: Fix some compiler warnings.
(This used to be commit c2c563bf98)
2007-10-10 13:16:33 -05:00
Rafal Szczesniak
e2cec76d85 r6637: Test for asynchronous function and monitor messages.
rafal
(This used to be commit 4ac3c145fc)
2007-10-10 13:16:32 -05:00
Rafal Szczesniak
9fd63bde85 r6432: Restorin previous construction of conditions after a little discussion
with Richard and Andrew.

rafal
(This used to be commit 400f6d5f87)
2007-10-10 13:11:36 -05:00
Rafal Szczesniak
03cae64229 r6430: Delete existing test account if, for some reason, it hasn't been
deleted last time running the test.

rafal
(This used to be commit 91df25a795)
2007-10-10 13:11:36 -05:00
Rafal Szczesniak
f531686dc4 r6426: DCE/RPC bind string parsing is not needed anymore, as we use
lp_workgroup parameter as domain name to operate on.

rafal
(This used to be commit ea251d4f79)
2007-10-10 13:11:36 -05:00
Rafal Szczesniak
f6e585d69b r6420: Close user account handle before calling tested function to better
simulate real conditions of calling the function.

rafal
(This used to be commit 2518122c9e)
2007-10-10 13:11:36 -05:00