summaryrefslogtreecommitdiff
path: root/source3/rpc_client/cli_pipe.c
AgeCommit message (Collapse)AuthorFilesLines
2009-02-13Replace get_myname() with the talloc version from v3-3-testVolker Lendecke1-1/+1
2009-02-02Next step disentangling async_req from NTSTATUSVolker Lendecke1-10/+10
Now I need to document this :-)
2009-02-01Split up async_req into a generic and a NTSTATUS specific partVolker Lendecke1-53/+53
2009-02-01Move rpc_pipe_open_internal to srv_pipe_hnd.cVolker Lendecke1-37/+0
This is a smbd-only function
2009-02-01cli_get_pipe_name_from_interface does not really need a talloc_ctxVolker Lendecke1-10/+20
2009-01-30Fix memleaksVolker Lendecke1-0/+7
2009-01-30pass NULL to prs_give_memory, that is a pointerVolker Lendecke1-1/+1
2009-01-30Add the "SMBD" rpc transportVolker Lendecke1-0/+55
The idea of this is that all client utils like smbpasswd and also for example "net join" do not access our internal databases like passdb and secrets.tdb directly anymore but pass everything throught the well-established RPC interfaces. The way you use this is the following: With rpc_cli_smbd_conn_init() or its async variant you initialize a "struct rpc_cli_smbd_conn". This structure is the link to a freshly forked smbd, ready to be used for RPC services. You should only ever have one such structure in your program. More don't hurt, but are plainly unnecessary. If you want to use the SAMR pipe to change a passwort, you connect to that pipe with rpc_pipe_open_local. Do you normal rpccli_samr calls on that and your locally forked smbd will connect to passdb for you. GD, this might make the distinction between the _l and _r calls in libnetapi mostly unnecessary. At least it is intended to do so... :-)
2009-01-22Abstract away the transport in cli_pipe.cVolker Lendecke1-304/+173
Sorry for the monster checkin, I could not really find a way to do this in steps.
2009-01-22Fix a segfault: rpccli_* expect the reply_pdu to always be initializedVolker Lendecke1-0/+5
2009-01-22cli_get_pipe_name_from_iface does not need the cli_stateVolker Lendecke1-3/+2
I leave the TALLOC_CTX in, we might have to allocate it in the future
2009-01-21Allow calling DCE/RPC server implementations directly usingJelmer Vernooij1-0/+42
rpc_pipe_client.
2009-01-18Add a macro async_req_setup()Volker Lendecke1-60/+14
This streamlines setting up a multi-step async request a bit
2009-01-18Add code to torture the fragmentation code a bitVolker Lendecke1-3/+15
2009-01-18Remove unused functionsVolker Lendecke1-401/+0
2009-01-18Make rpc_pipe_bind asyncVolker Lendecke1-0/+447
2009-01-18Fix an uninitialized variableVolker Lendecke1-0/+1
2009-01-18Remove sync rpc_api_pipe_reqVolker Lendecke1-170/+0
2009-01-18Add async rpc_api_pipe_reqVolker Lendecke1-0/+308
2009-01-18Add rpc_write_send/recvVolker Lendecke1-0/+131
2009-01-18Remove unused sync functionsVolker Lendecke1-196/+0
2009-01-18Make rpc_api_pipe asyncVolker Lendecke1-0/+284
2009-01-18Rename the async version of get_complete_pdu to get_complete_fragVolker Lendecke1-16/+16
2009-01-18Move initialization of the reply prs_struct to rpc_api_pipeVolker Lendecke1-13/+10
2009-01-18Always check the max send sizein rpc_api_pipe, not just with DEVELOPERVolker Lendecke1-8/+5
2009-01-18Make cli_api_pipe asyncVolker Lendecke1-99/+218
Also move the transport switch to this routine
2009-01-18Remove sync rpc_read wrapperVolker Lendecke1-28/+0
2009-01-18Make cli_pipe_get_current_pdu async, rename it to get_current_pduVolker Lendecke1-36/+190
2009-01-18Make rpc_read asyncVolker Lendecke1-87/+154
2009-01-17Slightly simplify the paths after rpc_api_pipe()Volker Lendecke1-6/+2
2009-01-14Make rpc_read look like a real read callVolker Lendecke1-18/+11
It doesn't really need to know about prs_structs
2009-01-14Make rpc_read() match the control flow normally used in SambaVolker Lendecke1-12/+19
Replace do { .. } while () with a while () { .. }
2009-01-14Simplify rpc_read a bitVolker Lendecke1-16/+11
rpc_read always reads the whole bytes it was asked to read. So it is not really necessary for it to update the current_pdu_offset, for clarity this can better be done in the caller.
2009-01-14Remove an unnecessary size checkVolker Lendecke1-10/+4
rpc_read is only ever called with at most fraglen-RPC_HEADER_SIZE length
2009-01-14Check the fragment size the server has sent usVolker Lendecke1-0/+10
2009-01-14Slightly simplify rpc_read: It should not do the resizeVolker Lendecke1-18/+34
2009-01-14Always read with offset 0 from a named pipeVolker Lendecke1-6/+5
2009-01-11Move cli_api_pipe() to its only user cli_pipe.cVolker Lendecke1-0/+26
2009-01-04Async wrapper for open_socket_out_send/recvVolker Lendecke1-3/+2
2009-01-03open_socket_out is always used with SOCK_STREAM, remove argument "type"Volker Lendecke1-1/+1
2008-12-05s3: store user session key in cli_rpc_pipe_open_noauth().Günther Deschner1-0/+7
Guenther
2008-10-31errors: share dcerpc error function.Günther Deschner1-1/+1
Guenther
2008-10-18Use separate make variables for libutil and libcrypto.Jelmer Vernooij1-1/+1
2008-10-15Don't use debug level 1 to log a trivial message.Jeremy Allison1-1/+1
Jeremy.
2008-09-03Tiny logic simplification: remove an else branchVolker Lendecke1-36/+33
(This used to be commit 9c4905ed6703a38ff72be5990a036d0a79aebb9f)
2008-08-20fix another build warning.Günther Deschner1-2/+2
Guenther (This used to be commit 43693ce6c678b961fa516bbf502af92f87cd5346)
2008-07-21Remove unused function rpccli_is_pipe_idxVolker Lendecke1-6/+0
(This used to be commit 287ffc17a072d5e1a5b0e1ecae089faf67b814b7)
2008-07-21Remove now unused cli_get_pipe_nameVolker Lendecke1-7/+2
(This used to be commit ed4a447103cd9ada59222d79f5784818fe033209)
2008-07-21Remove now unused cli_get_pipe_idxVolker Lendecke1-15/+0
(This used to be commit e02a550527307f7b300d3fe13631e2d29dbc5e06)
2008-07-21Remove now unused cli_get_ifaceVolker Lendecke1-9/+0
(This used to be commit 2e60701e8d41132f90e64a86bccd99cc188d38c9)