summaryrefslogtreecommitdiff
path: root/source4/torture/rpc/mgmt.c
Commit message (Collapse)AuthorAgeFilesLines
* s4-torture: fix invalid dereference of binding handle in mgmt test.Günther Deschner2015-04-221-1/+2
| | | | | | | Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s4-torture: do some additional length checks for the mgmt_inq_princ_name test.Günther Deschner2015-04-221-0/+57
| | | | | | | Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s4-torture: use torture_assert() macros in mgmt test.Günther Deschner2015-04-221-28/+15
| | | | | | | Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s4-torture: use torture_comment instead of printf in mgmt test.Günther Deschner2015-04-221-16/+16
| | | | | | | Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s4-torture: pass down struct torture_context to some more calls in mgmt test.Günther Deschner2015-04-221-8/+12
| | | | | | | Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s4-torture: use tctx torture_context argument consistently.Günther Deschner2015-04-221-6/+6
| | | | | | | Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s4-torture: strip trailing whitespace.Günther Deschner2015-04-221-11/+11
| | | | | | | Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s4:torture/rpc: test all auth_types (8bit) in rpc.mgmtStefan Metzmacher2014-02-111-1/+1
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
* s4:torture/rpc: fix rpc.mgmt testStefan Metzmacher2014-02-111-1/+2
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
* s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell2010-07-161-1/+1
| | | | | | | this converts all callers that use the Samba4 loadparm lp_ calling convention to use the lpcfg_ prefix. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4:torture/rpc: rename rpc.h => torture_rpc.hStefan Metzmacher2010-04-141-1/+1
| | | | | | | | | | | The reason for this is that some systems include <rpc/rpc.h> from within system headers. HP-UX 11.00 does so somewhere deep inside of <shadow.h>. For torture/winbind/struct_based.c <rpc/rpc.h> resolves to torture/rpc/rpc.h and breaks the build. metze
* s4:torture/rpc/mgmt.c: make use of dcerpc_binding_handle stubsStefan Metzmacher2010-03-161-15/+19
| | | | metze
* s4-torture: ran minimal_includes.pl over source4/tortureAndrew Tridgell2009-10-201-2/+0
| | | | This reduces compile time somewhat.
* Fix the build.Jelmer Vernooij2008-11-021-1/+1
|
* Install public header files again and include required prototypes.Jelmer Vernooij2008-04-021-0/+1
| | | | (This used to be commit 47ffbbf67435904754469544390b67d34c958343)
* r26327: Explicit loadparm_context for RPC client functions.Jelmer Vernooij2007-12-211-1/+1
| | | | (This used to be commit eeb2251d22b3d6e0379444a73af69d1014692b07)
* r26238: Add a loadparm context parameter to torture_context, remove more ↵Jelmer Vernooij2007-12-211-1/+1
| | | | | | uses of global_loadparm. (This used to be commit a33a5530545086b81a3b205aa109dff11c546926)
* r25554: Convert last instances of BOOL, True and False to the standard types.Jelmer Vernooij2007-10-101-30/+30
| | | | (This used to be commit 566aa14139510788548a874e9213d91317f83ca9)
* r25392: Add loadparm context as argument in a couple more places.Jelmer Vernooij2007-10-101-1/+1
| | | | (This used to be commit c62f51cc28a37959128e78a1f34cfd4c6d3ba069)
* r25026: Move param/param.h out of includes.hJelmer Vernooij2007-10-101-0/+1
| | | | (This used to be commit abe8349f9b4387961ff3665d8c589d61cd2edf31)
* r24755: Use common code for finding the RPC binding in the torture tests.Jelmer Vernooij2007-10-101-8/+1
| | | | (This used to be commit e3310e773924ddd2129e8ca1a86e23d0f713c19c)
* r24735: Use torture API in more places.Jelmer Vernooij2007-10-101-5/+7
| | | | (This used to be commit 1319d88c099496be29dd9214fa2492c81e848369)
* r24606: move librpc/rpc/table.c -> librpc/ndr/ndr_table.cStefan Metzmacher2007-10-101-3/+4
| | | | | | | | and rename the containing functions to have a ndr_ prefix metze (This used to be commit cb234d43ae693af5d8a921a15c9bcac3c6f0359a)
* r24557: rename 'dcerpc_table_' -> 'ndr_table_'Stefan Metzmacher2007-10-101-1/+1
| | | | | metze (This used to be commit 84651aee81aaabbebf52ffc3fbcbabb2eec6eed5)
* r24551: rename dcerpc_interface_table -> ndr_interface_tableStefan Metzmacher2007-10-101-2/+2
| | | | | | | | | rename dcerpc_interface_list -> ndr_interface_list and move them to libndr.h metze (This used to be commit 4adbebef5df2f833d2d4bfcdda72a34179d52f5c)
* r24532: rename struct dcerpc_syntax_id into struct ndr_syntax_idStefan Metzmacher2007-10-101-2/+2
| | | | | | | | | | and move it into misc.idl The goal is to get rid a all dcerpc specific stuff in the generated ndr layer. metze (This used to be commit 2ed014cfb894cccab1654e3f7d5876393e2b52d7)
* r23792: convert Samba4 to GPLv3Andrew Tridgell2007-10-101-3/+2
| | | | | | There are still a few tidyups of old FSF addresses to come (in both s3 and s4). More commits soon. (This used to be commit fcf38a38ac691abd0fa51b89dc951a08e89fdafa)
* r21693: Fix the RPC-SCANNER test. Share some code with the RPC-MGMT test toAndrew Bartlett2007-10-101-2/+10
| | | | | | | make things easier to keep working. Andrew Bartlett (This used to be commit 16db4c1436725e41ea05628f20fc9396d7bd7eaa)
* r20830: merge mgmt workJelmer Vernooij2007-10-101-22/+30
| | | | (This used to be commit 3cc299dbbe278936281f8e7071e6de8ec1bb219c)
* r20784: Add ref pointerJelmer Vernooij2007-10-101-7/+7
| | | | (This used to be commit 2ba225ee12180d40a957e4e9a824a544c803a265)
* r19392: Use torture_setting_* rather than lp_parm_* where possible.Jelmer Vernooij2007-10-101-1/+1
| | | | (This used to be commit b28860978fe29c5b10abfb8c59d7182864e21dd6)
* r14735: Use dcerpc_syntax_id rather then seperate GUID + if_version everywhereJelmer Vernooij2007-10-101-1/+1
| | | | (This used to be commit a316b33057f3ec8532677980e093cd327d33f257)
* r14720: Add torture_context argument to all torture testsJelmer Vernooij2007-10-101-1/+1
| | | | (This used to be commit 3c7a5ce29108dd82210dc3e1f00414f545949e1d)
* r14470: Remove some unnecessary headers.Jelmer Vernooij2007-10-101-1/+0
| | | | (This used to be commit f7312dab3b9aba2b2b82e8a6e0c483a32a03a63a)
* r14402: Generate seperate headers for RPC client functions.Jelmer Vernooij2007-10-101-0/+1
| | | | (This used to be commit 7054ebf0249930843a2baf4d023ae8f62cedb109)
* r14379: Build torture/rpc/ as a seperate smbtorture module. Move helperJelmer Vernooij2007-10-101-0/+1
| | | | | functions for rpc out of torture/torture.c (This used to be commit 1d2d970f3b8aef3f36c2befb94b5dd72c0086639)
* r12693: Move core data structures out of smb.h into core.hJelmer Vernooij2007-10-101-0/+1
| | | | | torture prototypes in seperate header (This used to be commit 73610639b23ca3743077193fa0b1de7c7f65944d)
* r12622: Move table.c prototypes to seperate header to prevent circular ↵Jelmer Vernooij2007-10-101-0/+1
| | | | | | | dependencies with proto.h (This used to be commit 9e0ba380374db028358158b9e4457dd930b5ab13)
* r12542: Move some more prototypes out to seperate headersJelmer Vernooij2007-10-101-0/+1
| | | | (This used to be commit 0aca5fd5130d980d07398f3291d294202aefe3c2)
* r12512: Use GUID structs in API functions everywhere rather then converting ↵Jelmer Vernooij2007-10-101-6/+4
| | | | | | | back and forth between GUID structs and strings in several places. (This used to be commit 3564e2f967ef72d6301b4f7e9a311cebcded4d75)
* r12510: Change the DCE/RPC interfaces to take a pointer to aJelmer Vernooij2007-10-101-8/+2
| | | | | | | | | | | | | | | | | 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 8aae0f168e54c01d0866ad6e0da141dbd828574f)
* r7633: this patch started as an attempt to make the dcerpc code use a givenAndrew Tridgell2007-10-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* r5941: Commit this patch much earlier than I would normally prefer, but ↵Andrew Bartlett2007-10-101-12/+18
| | | | | | | | | | | | | | | | | | | | | | metze needs a working tree... The main volume of this patch was what I started working on today: - Cleans up memory handling around DCE/RPC pipes, to have a parent talloc context. - Uses sepereate inner loops for some of the DCE/RPC tests The other and more important part of this patch fixes issues surrounding the new credentials framwork: This makes the struct cli_credentials always a talloc() structure, rather than on the stack. Parts of the cli_credentials code already assumed this. There were other issues, particularly in the DCERPC over SMB handling, as well as little things that had to be tidied up before test_w2k3.sh would start to pass. Andrew Bartlett (This used to be commit 0453f9d05d2e336fba1f85dbf2718d01fa2bf778)
* r5902: A rather large change...Andrew Bartlett2007-10-101-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I wanted to add a simple 'workstation' argument to the DCERPC authenticated binding calls, but this patch kind of grew from there. With SCHANNEL, the 'workstation' name (the netbios name of the client) matters, as this is what ties the session between the NETLOGON ops and the SCHANNEL bind. This changes a lot of files, and these will again be changed when jelmer does the credentials work. I also correct some schannel IDL to distinguish between workstation names and account names. The distinction matters for domain trust accounts. Issues in handling this (issues with lifetime of talloc pointers) caused me to change the 'creds_CredentialsState' and 'struct dcerpc_binding' pointers to always be talloc()ed pointers. In the schannel DB, we now store both the domain and computername, and query on both. This should ensure we fault correctly when the domain is specified incorrectly in the SCHANNEL bind. In the RPC-SCHANNEL test, I finally fixed a bug that vl pointed out, where the comment claimed we re-used a connection, but in fact we made a new connection. This was achived by breaking apart some of the dcerpc_secondary_connection() logic. The addition of workstation handling was also propogated to NTLMSSP and GENSEC, for completeness. The RPC-SAMSYNC test has been cleaned up a little, using a loop over usernames/passwords rather than manually expanded tests. This will be expanded further (the code in #if 0 in this patch) to use a newly created user account for testing. In making this test pass test_rpc.sh, I found a bug in the RPC-ECHO server, caused by the removal of [ref] and the assoicated pointer from the IDL. This has been re-added, until the underlying pidl issues are solved. (This used to be commit 824289dcc20908ddec957a4a892a103eec2da9b9)
* r4616: the first phase in the addition of proper support forAndrew Tridgell2007-10-101-2/+2
| | | | | | | | | | | | | | | | | | | dcerpc_alter_context and multiple context_ids in the dcerpc client library. This stage does the following: - split "struct dcerpc_pipe" into two parts, the main part being "struct dcerpc_connection", which contains all the parts not dependent on the context, and "struct dcerpc_pipe" which has the context dependent part. This is similar to the layering in libcli_*() for SMB - disable the current dcerpc_alter code. I've used a #warning until i get the 2nd phase finished. I don't know how portable #warning is, but it won't be long before I add full alter context support anyway, so it won't last long - cleanup the allocation of dcerpc_pipe structures. The previous code was quite awkward. (This used to be commit 4004c69937be7e5dae56f9567ca607f982d395d3)
* r3790: use a registration function that is called from dcerpc_*_init functionsJelmer Vernooij2007-10-101-11/+10
| | | | | | | | | | | | rather then a large table in librpc/gen_ndr/tables.c. This will allow us to only link in only the required gen_ndr files (speeds up linking quite a bit, makes binaries smaller). Each gen_ndr_* file now has a init function that calls the init functions of the interfaces it contains. I did it this way to keep pidl's code simple, though it might hurt startup time a bit. I'd be happy to change it if people like one function better. (This used to be commit 3c436590ae95b58ad6d00e72d6fdd08a4d80f208)
* r3497: removed some include cruft, and split out librpc/gen_ndr/tables.hAndrew Tridgell2007-10-101-0/+1
| | | | (This used to be commit 7dd3a5a6dadb0edc4fad56deba84f24b1e6dd2bc)
* r3428: switched to using minimal includes for the auto-generated RPC code.Andrew Tridgell2007-10-101-0/+1
| | | | | | | | | | | | | | | The thing that finally convinced me that minimal includes was worth pursuing for rpc was a compiler (tcc) that failed to build Samba due to reaching internal limits of the size of include files. Also the fact that includes.h.gch was 16MB, which really seems excessive. This patch brings it back to 12M, which is still too large, but better. Note that this patch speeds up compile times for both the pch and non-pch case. This change also includes the addition iof a "depends()" option in our IDL files, allowing you to specify that one IDL file depends on another. This capability was needed for the auto-includes generation. (This used to be commit b8f5fa8ac8e8725f3d321004f0aedf4246fc6b49)
* r3324: made the smbtorture code completely warning freeAndrew Tridgell2007-10-101-1/+1
| | | | (This used to be commit 7067bb9b52223cafa28470f264f0b60646a07a01)
* r3168: Use generic function for looking up endpointsJelmer Vernooij2007-10-101-1/+1
| | | | (This used to be commit 45a3e2a9815058a3a828c573573c5eee605f9129)