1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
Commit Graph

1334 Commits

Author SHA1 Message Date
Günther Deschner
7450f3ad99 s3-netlogon: remove remaining netlogon init functions.
Guenther
2009-06-25 16:46:31 +02:00
Günther Deschner
313a2bfa52 s3-netlogon: remove init_netr_SamInfo functions.
Guenther
2009-06-25 12:19:17 +02:00
Volker Lendecke
f140bf2e65 Fix broken pipe handling
Metze is right: If we have *any* error at the socket level, we just can
not continue.

Also, apply some defensive programming: With this async stuff someone else
might already have closed the socket.
2009-05-18 07:13:04 +02:00
Volker Lendecke
795b896ab0 Fix a type-punned warning 2009-05-18 07:13:04 +02:00
Bo Yang
aa70e44cd0 s3: tevent_req_poll() loops forever when pipe is broken
Signed-off-by: Bo Yang <boyang@samba.org>
2009-05-19 01:13:36 +08:00
Jeremy Allison
f3af298e5b Cause cli_close to return an NTSTATUS.
Jeremy.
2009-04-30 16:57:42 -07:00
Bo Yang
f8cc0e88fb s3: fix crash in winbindd 2009-04-29 09:50:41 +08:00
Volker Lendecke
6af92c0228 Do not panic unnecessarily 2009-04-28 05:31:48 +02:00
Günther Deschner
8d3e61e5ce s3-netlogon: Start fixing rpccli_netlogon_setup_creds after auth merge.
Guenther
2009-04-24 09:52:00 +02:00
Volker Lendecke
8bc88aae5d Move serverinfo_to_SamInfo3() to rpc_server/
Normally I hate moving around stuff, but this function is only called from the
RPC server side and it pulls in passdb when trying to link in our rpc client
routines. That seems unnecessary to me.
2009-04-22 12:33:46 +02:00
Andrew Bartlett
53765c81f7 Remove use of talloc_reference in cli_rpc_pipe_open_schannel_with_key() 2009-04-20 16:50:49 +02:00
Andrew Bartlett
baf7274fed Make Samba3 use the new common libcli/auth code
This is particuarly in the netlogon client (but not server at this
stage)
2009-04-14 16:23:44 +10:00
Andrew Bartlett
f28f113d8e Rework Samba3 to use new libcli/auth code (partial)
This commit is mostly to cope with the removal of SamOemHash (replaced
by arcfour_crypt()) and other collisions (such as changed function
arguments compared to Samba3).

We still provide creds_hash3 until Samba3 uses the credentials code in
netlogon server

Andrew Bartlett
2009-04-14 16:23:35 +10:00
Volker Lendecke
a3f24d91c5 Convert rpc_transport_smbd_init to tevent_req 2009-04-08 22:17:04 +02:00
Volker Lendecke
8a2112c942 Convert rpc_cli_smbd_conn_init to tevent_req 2009-04-08 22:17:04 +02:00
Volker Lendecke
bfacecc17b Convert get_anon_ipc to tevent_req 2009-04-08 22:17:04 +02:00
Volker Lendecke
f3d33cd81d Convert rpc_transport_np_init to tevent_req 2009-04-08 22:17:03 +02:00
Volker Lendecke
1c4027678e Correct sync wrappers in cli_pipe.c 2009-04-06 21:32:08 +02:00
Volker Lendecke
097db28c5d Convert cli_write_andx to tevent_req 2009-04-06 21:32:07 +02:00
Volker Lendecke
c23ccff13a Convert cli_read_andx to tevent_req 2009-04-06 21:32:07 +02:00
Volker Lendecke
ca7cd350a6 Convert cli_ntcreate to tevent_req 2009-04-06 21:32:07 +02:00
Volker Lendecke
807328ce6d Convert cli_tcon_andx to tevent_req 2009-04-06 21:32:07 +02:00
Volker Lendecke
03becb5066 Convert cli_negprot to tevent_req 2009-04-06 21:32:06 +02:00
Volker Lendecke
95c792b6af Convert cli_session_setup_guest to tevent_req 2009-04-06 21:32:06 +02:00
Volker Lendecke
7ef78bd7b5 Convert cli_trans to tevent_req 2009-04-06 21:32:06 +02:00
Volker Lendecke
0421fa90ce Keep the forked-smbd stdout reader around longer 2009-04-05 13:52:46 +02:00
Volker Lendecke
6d760a4a9f Ensure 0-termination for the forked-smbd debug output 2009-04-05 13:52:46 +02:00
Volker Lendecke
ac4c319ed7 Pass the current debuglevel down to the forked smbd 2009-04-05 13:52:46 +02:00
Volker Lendecke
5f753e22f1 Convert rpc_pipe_bind to tevent_req 2009-03-24 13:23:41 +01:00
Volker Lendecke
fa62836839 Convert rpc_cli_transport->trans to tevent_req 2009-03-24 13:23:41 +01:00
Volker Lendecke
8e0d9d002a Convert rpc_cli_transport->write to tevent_req 2009-03-24 13:23:41 +01:00
Volker Lendecke
22badee4bf Convert rpc_cli_transport->read to tevent_req 2009-03-24 13:23:40 +01:00
Volker Lendecke
1724f2ff31 Convert rpc_api_pipe_req to tevent_req 2009-03-24 13:23:40 +01:00
Volker Lendecke
f88990ec7e Convert rpc_api_pipe to tevent_req 2009-03-24 13:23:40 +01:00
Volker Lendecke
545ed5b52e Convert cli_api_pipe to tevent_req 2009-03-24 13:23:40 +01:00
Volker Lendecke
7a429fb369 Convert get_complete_frag to tevent_req 2009-03-24 13:23:40 +01:00
Volker Lendecke
7573bb758e Convert rpc_write to tevent_req 2009-03-24 13:23:40 +01:00
Volker Lendecke
1dd0883458 Convert rpc_read to tevent_req 2009-03-24 13:23:40 +01:00
Günther Deschner
531af136f9 s3: remove POLICY_HND.
Guenther
2009-03-18 23:22:29 +01:00
Günther Deschner
9fdeb7f7b3 s3-spoolss: remove custom syntax_spoolss and use the syntax defined in IDL.
Guenther
2009-03-18 14:18:42 +01:00
Günther Deschner
9d024d1715 s3-spoolss: remove old rpccli_spoolss_enumprinterdataex.
Guenther
2009-03-18 01:30:41 +01:00
Günther Deschner
ab85fc78bd s3-spoolss: add rpccli_spoolss_enumprinterdataex convenience wrapper.
Guenther
2009-03-18 01:30:18 +01:00
Günther Deschner
846b93f54f s3-spoolss: remove old rpccli_spoolss_enumprinterkey wrapper.
Guenther
2009-03-17 12:18:50 +01:00
Günther Deschner
86c25b3533 s3-spoolss: add rpccli_spoolss_enumprinterkey convenience wrapper.
Guenther
2009-03-17 12:18:28 +01:00
Günther Deschner
57077f43a7 s3-spoolss: remove rpccli_spoolss_enumprinterdata.
Guenther
2009-03-17 12:07:50 +01:00
Günther Deschner
4234969df7 s3-spoolss: remove old rpccli_spoolss_setprinterdata wrapper.
Guenther
2009-03-17 11:57:17 +01:00
Günther Deschner
d77cc43784 s3-spoolss: remove old rpccli_spoolss_getprinterdata.
Guenther
2009-03-17 11:49:23 +01:00
Günther Deschner
08d170abc1 s3-spoolss: add rpccli_spoolss_getprinterdata convenience wrapper.
Guenther
2009-03-17 11:49:08 +01:00
Günther Deschner
6df9e1f7aa s3-spoolss: add push_spoolss_PrinterData().
Guenther
2009-03-17 10:53:43 +01:00
Günther Deschner
9a8f19672d s3-spoolss: add pull_spoolss_PrinterData().
Guenther
2009-03-17 10:53:24 +01:00
Jeremy Allison
f48a345e4a Remove pwd_cache.c, it was doing nothing. Make user_name, domain, and
password talloc'ed strings within the cli_struct.
Jeremy.
2009-03-13 17:49:24 -07:00
Günther Deschner
16438e3a93 s3-spoolss: remove old enumprinters wrapper.
Guenther
2009-03-13 09:25:24 +01:00
Günther Deschner
9397ae5114 s3-spoolss: add rpccli_spoolss_enumprinters convenience wrapper.
Guenther
2009-03-13 09:25:23 +01:00
Günther Deschner
6928c5ce47 s3-spoolss: remove old rpccli_spoolss_enumprinterdrivers wrapper.
Guenther
2009-03-13 09:25:22 +01:00
Günther Deschner
5f46554228 s3-spoolss: add rpccli_spoolss_enumprinterdrivers convenience wrapper.
Guenther
2009-03-13 09:25:22 +01:00
Günther Deschner
3bd1aabcfe s3-spoolss: remove old rpccli_spoolss_enumjobs wrapper.
Guenther
2009-03-13 09:25:21 +01:00
Günther Deschner
80284124ba s3-spoolss: add rpccli_spoolss_enumjobs convenience wrapper.
Guenther
2009-03-13 09:25:20 +01:00
Günther Deschner
33a441b0c2 s3-spoolss: add rpccli_spoolss_enummonitors convenience wrapper.
Guenther
2009-03-07 00:55:39 +01:00
Günther Deschner
c7e19c2627 s3-spoolss: add rpccli_spoolss_enumports convenience wrapper.
Guenther
2009-03-07 00:55:37 +01:00
Günther Deschner
631f277d1c s3-spoolss: remove old spoolss_EnumPorts.
Guenther
2009-03-07 00:55:36 +01:00
Günther Deschner
2d24d3a380 s3-spoolss: add rpccli_spoolss_enumprintprocessordatatypes convenience wrapper.
Guenther
2009-03-07 00:55:00 +01:00
Günther Deschner
b73411d650 s3-spoolss: add rpccli_spoolss_enumprintprocessors convenience wrapper.
Guenther
2009-03-07 00:43:13 +01:00
Günther Deschner
9bdca59fc5 s3-spoolss: remove old rpccli_spoolss_enumforms.
Guenther
2009-03-06 14:30:26 +01:00
Günther Deschner
c14a589a46 s3-spoolss: add convencience wrapper around rpccli_spoolss_EnumForms.
Guenther
2009-03-06 14:30:02 +01:00
Simo Sorce
67d41d0fc7 Make struct tevent_req opaque
Move struct tevent_req in tevent_internal, and ad getters and setters
for private data and the callback function.
This patch also renames 'private_state' into 'data'. What is held in this
pointer is in fact data and not a state like enum tevent_req_state.
Calling it 'state' is confusing.

The functions addedd are:
tevent_req_set_callback() - sets req->async.fn and req->async.private_data
tevent_req_set_print_fn() - sets req->private_print
tevent_req_callback_data() - gets req->async.private_data
tevent_req_data() - gets rea->data

This way it is much simpler to keep API/ABI compatibility in the future.
2009-03-02 11:02:09 -05:00
Günther Deschner
f343ed7319 s3-spoolss: remove old rpccli_spoolss_getjob.
Guenther
2009-02-26 22:02:19 +01:00
Günther Deschner
0445c554d1 s3-spoolss: add rpccli_spoolss_getjob convenience wrapper.
Guenther
2009-02-26 22:02:18 +01:00
Günther Deschner
b6457c78d6 s3-spoolss: remove unused decode_printer_info_7.
Guenther
2009-02-25 15:10:46 +01:00
Volker Lendecke
be4913fbe6 Convert rpc_sock_write to use tevent_req base async_send 2009-02-25 13:04:18 +01:00
Volker Lendecke
d1c7bbd893 Convert rpc_sock_read to use tevent_req base async_read 2009-02-25 13:04:18 +01:00
Günther Deschner
59e90d3715 s3-spoolss: remove rpccli_spoolss_getprinter.
Guenther
2009-02-25 11:16:30 +01:00
Günther Deschner
c03f207276 s3-spoolss: remove rpccli_spoolss_setprinter.
Guenther
2009-02-25 11:16:29 +01:00
Günther Deschner
c7ba20b465 s3-spoolss: remove rpccli_spoolss_addprinterex.
Guenther
2009-02-25 11:16:29 +01:00
Günther Deschner
6366084c4a s3-spoolss: add rpccli_spoolss_getprinter convenience wrapper.
Guenther
2009-02-25 11:16:28 +01:00
Günther Deschner
9d165fa5c6 s3-spoolss: add rpccli_spoolss_addprinterex convenience wrapper.
Guenther
2009-02-25 10:32:09 +01:00
Günther Deschner
b2e038ef8b s3-spoolss: remove rpccli_spoolss_addprinterdriver.
Guenther
2009-02-24 23:57:52 +01:00
Günther Deschner
5ffa03dcd8 s3-spoolss: remove old rpccli_spoolss_getprinterdriver wrapper.
Guenther
2009-02-24 22:40:51 +01:00
Günther Deschner
e4e1b1a0bb s3-spoolss: add rpccli_spoolss_getprinterdriver2 convenience wrapper.
Guenther
2009-02-24 22:40:51 +01:00
Günther Deschner
fda0158c14 s3-spoolss: remove cli_spoolss_notify.c completly.
All of the spoolss change notify code uses pidl generated functions now.

Guenther
2009-02-23 16:40:52 +01:00
Günther Deschner
2234984fd0 s3-spoolss: remove old spoolss_RemoteFindFirstPrinterChangeNotifyEx.
Guenther
2009-02-23 16:26:11 +01:00
Günther Deschner
0295008a87 s3-spoolss: remove old spoolss_RouterReplyPrinterEx.
Guenther
2009-02-23 16:26:00 +01:00
Günther Deschner
2ad2b6f723 s3-spoolss: fix client name in rpccli_spoolss_openprinter_ex.
Guenther
2009-02-21 21:14:37 +01:00
Günther Deschner
c71fa39c29 s3-spoolss: remove old spoolss_GetPrintProcessorDirectory.
Guenther
2009-02-19 19:23:51 +01:00
Günther Deschner
cdcd525a05 s3-spoolss: remove old spoolss_GetPrinterDriverDirectory.
Guenther
2009-02-19 02:07:58 +01:00
Volker Lendecke
0844cca1d5 Replace get_myname() with the talloc version from v3-3-test 2009-02-13 12:15:03 +01:00
Günther Deschner
feec49d5cd s3-spoolss: remove old spoolss_SetPrinterDataEx.
Guenther
2009-02-12 22:51:30 +01:00
Günther Deschner
41f17a1fc2 s3-spoolss: remove old spoolss_GetPrinterDataEx.
Guenther
2009-02-12 22:51:29 +01:00
Günther Deschner
75c6bbea3b s3-spoolss: add init_systemtime helper.
Guenther
2009-02-12 18:03:20 +01:00
Günther Deschner
fd8e8d5e58 s3-spoolss: remove old spoolss_ReplyOpenPrinter.
Guenther
2009-02-10 23:57:30 +01:00
Günther Deschner
3d4221a9cb s3-spoolss: remove old spoolss_OpenPrinterEx.
Guenther
2009-02-10 11:26:52 +01:00
Günther Deschner
0fc13e7e2c s3-spoolss: remove old spoolss_SetJob.
Guenther
2009-02-10 11:26:39 +01:00
Günther Deschner
2ede56f3c0 s3-spoolss: remove old spoolss_StartDocPrinter.
Guenther
2009-02-10 11:26:26 +01:00
Günther Deschner
b19b6aea12 s3-rpcclient: add rpccli_spoolss_openprinter_ex() convenience wrapper.
Guenther
2009-02-10 11:04:53 +01:00
Günther Deschner
a734c85c28 s3-spoolss: remove old rpccli_spoolss_routerreplyprinter.
Guenther
2009-02-09 19:12:27 +01:00
Günther Deschner
3b4bf2f8a9 s3-spoolss: remove old spoolss_ReplyClosePrinter.
Guenther
2009-02-09 19:10:37 +01:00
Günther Deschner
03ae7fc134 s3-spoolss: remove old _spoolss_DeletePrinterDriverEx.
Guenther
2009-02-09 12:34:04 +01:00
Günther Deschner
763fe063d2 s3-spoolss: remove old spoolss_DeletePrinterDriver.
Guenther
2009-02-09 12:34:03 +01:00
Günther Deschner
8b5729f31c s3-spoolss: remove old _spoolss_DeletePrinterKey.
Guenther
2009-02-09 12:34:02 +01:00
Günther Deschner
bed65d86ac s3-spoolss: remove old _spoolss_DeletePrinterData.
Guenther
2009-02-09 12:34:02 +01:00
Günther Deschner
fe6d62fb9f s3-spoolss: remove old _spoolss_DeletePrinterDataEx.
Guenther
2009-02-09 12:34:01 +01:00
Günther Deschner
8cc60bf978 s3-spoolss: remove old _spoolss_GetForm.
Guenther
2009-02-09 10:43:15 +01:00
Günther Deschner
c0e3b195c8 s3-spoolss: remove old _spoolss_SetForm.
Guenther
2009-02-09 10:42:39 +01:00
Günther Deschner
fac7ed3df1 s3-spoolss: remove old spoolss_AddForm.
Guenther
2009-02-09 10:42:19 +01:00
Günther Deschner
3d6860018f s3-spoolss: remove old _spoolss_WritePrinter.
Guenther
2009-02-07 10:20:56 +01:00
Günther Deschner
b8cd20cd5c s3-spoolss: use rpccli_spoolss_DeleteForm.
Guenther
2009-02-07 01:52:28 +01:00
Günther Deschner
100aad0ddf s3-spoolss: remove old _spoolss_EndDocPrinter.
Guenther
2009-02-06 21:41:23 +01:00
Günther Deschner
eb542ef630 s3-spoolss: remove old _spoolss_EndPagePrinter.
Guenther
2009-02-06 21:39:56 +01:00
Günther Deschner
f8582f18ec s3-spoolss: remove old _spoolss_StartPagePrinter.
Guenther
2009-02-06 21:39:08 +01:00
Günther Deschner
88f09a8353 s3-spoolss: remove old _spoolss_ClosePrinter.
Guenther
2009-02-06 18:59:06 +01:00
Günther Deschner
7c3ba34788 s3: use samr_RidWithAttribute instead of DOM_GID.
Guenther
2009-02-05 00:47:06 +01:00
Volker Lendecke
d3f9b0fab6 Next step disentangling async_req from NTSTATUS
Now I need to document this :-)
2009-02-02 20:15:03 +01:00
Volker Lendecke
c14b7e648b Split up async_req into a generic and a NTSTATUS specific part 2009-02-01 19:05:39 +01:00
Volker Lendecke
7967d8c779 Move rpc_pipe_open_internal to srv_pipe_hnd.c
This is a smbd-only function
2009-02-01 14:34:23 +01:00
Volker Lendecke
57de60a83f cli_get_pipe_name_from_interface does not really need a talloc_ctx 2009-02-01 14:34:22 +01:00
Volker Lendecke
f6d08849e1 Fix memleaks 2009-01-30 21:29:35 +01:00
Volker Lendecke
aef749b53f pass NULL to prs_give_memory, that is a pointer 2009-01-30 21:29:35 +01:00
Volker Lendecke
22e3004829 Add the "SMBD" rpc transport
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-30 12:48:00 +01:00
Volker Lendecke
b873ede89d Make rpc_transport_np_init async 2009-01-30 12:47:59 +01:00
Volker Lendecke
b7094c0b80 Abstract away the transport in cli_pipe.c
Sorry for the monster checkin, I could not really find a way to do this in
steps.
2009-01-22 22:59:54 +01:00
Volker Lendecke
b7bd71b349 Add the socket rpc client transport 2009-01-22 22:59:54 +01:00
Volker Lendecke
c5b4371054 Add the named pipe rpc client transport 2009-01-22 22:59:53 +01:00
Volker Lendecke
031f246941 Fix a segfault: rpccli_* expect the reply_pdu to always be initialized 2009-01-22 17:54:16 +01:00
Volker Lendecke
3662c2b0f6 cli_get_pipe_name_from_iface does not need the cli_state
I leave the TALLOC_CTX in, we might have to allocate it in the future
2009-01-22 11:38:00 +01:00
todd stecher
989ad44d32 Memory leaks and other fixes found by Coverity 2009-01-21 17:13:03 -08:00
Jelmer Vernooij
11a25f9050 Allow calling DCE/RPC server implementations directly using
rpc_pipe_client.
2009-01-21 14:05:51 +01:00
Volker Lendecke
0dbd396862 Add a macro async_req_setup()
This streamlines setting up a multi-step async request a bit
2009-01-18 16:45:07 +01:00
Volker Lendecke
c45b6ec29a Add code to torture the fragmentation code a bit 2009-01-18 15:40:45 +01:00
Volker Lendecke
a158ebbe49 Remove unused functions 2009-01-18 15:40:45 +01:00
Volker Lendecke
28c35b4c04 Make rpc_pipe_bind async 2009-01-18 15:40:45 +01:00
Volker Lendecke
ecb5184ce5 Fix an uninitialized variable 2009-01-18 15:40:45 +01:00
Volker Lendecke
3f9f188877 Remove sync rpc_api_pipe_req 2009-01-18 15:40:45 +01:00
Volker Lendecke
396ed3b363 Add async rpc_api_pipe_req 2009-01-18 15:40:45 +01:00
Volker Lendecke
c655f19e1f Add rpc_write_send/recv 2009-01-18 15:40:44 +01:00
Volker Lendecke
f96335afc0 Remove unused sync functions 2009-01-18 15:40:44 +01:00
Volker Lendecke
f6740aa7ad Make rpc_api_pipe async 2009-01-18 15:40:44 +01:00
Volker Lendecke
761d164420 Rename the async version of get_complete_pdu to get_complete_frag 2009-01-18 15:40:44 +01:00
Volker Lendecke
5e6f3eaae9 Move initialization of the reply prs_struct to rpc_api_pipe 2009-01-18 15:40:44 +01:00
Volker Lendecke
5987c82697 Always check the max send sizein rpc_api_pipe, not just with DEVELOPER 2009-01-18 15:40:44 +01:00
Volker Lendecke
6d47418bc1 Make cli_api_pipe async
Also move the transport switch to this routine
2009-01-18 15:40:43 +01:00
Volker Lendecke
173d6c84a6 Remove sync rpc_read wrapper 2009-01-18 15:40:43 +01:00
Volker Lendecke
5d71fe8043 Make cli_pipe_get_current_pdu async, rename it to get_current_pdu 2009-01-18 15:40:43 +01:00
Volker Lendecke
30413f12b9 Make rpc_read async 2009-01-18 15:40:43 +01:00
Volker Lendecke
9b3c38f4af Slightly simplify the paths after rpc_api_pipe() 2009-01-17 11:27:32 +01:00
Volker Lendecke
8c983af56d Make rpc_read look like a real read call
It doesn't really need to know about prs_structs
2009-01-14 17:08:40 +01:00
Volker Lendecke
e1aeb486e8 Make rpc_read() match the control flow normally used in Samba
Replace do { .. } while () with a while () { .. }
2009-01-14 17:08:40 +01:00
Volker Lendecke
11e3388083 Simplify rpc_read a bit
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-14 17:08:39 +01:00
Volker Lendecke
15dd11b31e Remove an unnecessary size check
rpc_read is only ever called with at most fraglen-RPC_HEADER_SIZE length
2009-01-14 17:08:39 +01:00
Volker Lendecke
274f575b24 Check the fragment size the server has sent us 2009-01-14 17:08:39 +01:00
Volker Lendecke
583d7913c8 Slightly simplify rpc_read: It should not do the resize 2009-01-14 17:08:39 +01:00
Volker Lendecke
87f9f0b01a Always read with offset 0 from a named pipe 2009-01-14 17:08:39 +01:00
Volker Lendecke
ce5eded7e0 Move cli_api_pipe() to its only user cli_pipe.c 2009-01-11 22:53:24 +01:00
Günther Deschner
22a96cbe31 s3-svcctl: remove last traces of hand-marshalled svcctl code.
Guenther
2009-01-09 17:08:19 +01:00
Günther Deschner
03611c6c9d s3-svcctl: remove old marshalling of svcctl_EnumServicesStatusW.
Guenther
2009-01-09 17:08:18 +01:00
Günther Deschner
f93b0fcd95 s3-lsa: remove all init_lsa* functions.
Guenther
2009-01-06 16:02:13 +01:00
Günther Deschner
e2fa47a04c s3-lsa: avoid all init_lsa* functions.
Guenther
2009-01-06 16:02:13 +01:00
Günther Deschner
b0f7137883 s3-srvsvc: remove all init_srvsvc* functions.
Guenther
2009-01-06 16:02:12 +01:00
Günther Deschner
be8c532352 s3-samr: remove all init_samr_alias* functions.
Guenther
2009-01-06 16:02:12 +01:00
Günther Deschner
0b26f84542 s3-samr: remove all init_samr_group* functions.
Guenther
2009-01-06 16:02:11 +01:00
Günther Deschner
15ec090299 s3-samr: remove all init_samr_dom* functions.
Guenther
2009-01-06 16:02:11 +01:00
Günther Deschner
52b250fe83 s3-samr: remove init_samr_user* functions.
Guenther
2009-01-06 16:02:10 +01:00
Volker Lendecke
19b783cce9 Async wrapper for open_socket_out_send/recv 2009-01-04 16:42:40 +01:00
Volker Lendecke
fafb9ecc61 open_socket_out is always used with SOCK_STREAM, remove argument "type" 2009-01-03 19:22:06 +01:00
Günther Deschner
b883bcd4ff s3: store user session key in cli_rpc_pipe_open_noauth().
Guenther
2008-12-05 14:27:03 +01:00
Günther Deschner
b8204ffd03 s3-samr: fix samr callers of samr_UserInfo18.
Guenther
2008-12-05 14:27:03 +01:00
Günther Deschner
eb906e1d2d s3-samr: fix init_samr_user_info2{1,3,5} callers.
Guenther
2008-12-05 14:27:02 +01:00
Günther Deschner
798c4b3e6a s3-samr: use samr_DomainServerState in client tools.
Guenther
2008-12-02 00:37:39 +01:00
Günther Deschner
143097d71c s3-samr: add init_samr_user_info25 and init_samr_user_info26.
Guenther
2008-11-28 14:16:51 +01:00
Günther Deschner
4d7485df96 s3-samr: fix init_samr_user_info{23,24} callers.
Guenther
2008-11-28 13:55:38 +01:00
Günther Deschner
e09f658be7 s3-samr: add init_samr_user_info5.
Guenther
2008-11-27 18:27:26 +01:00
Kai Blin
a36415a565 s3-rpcclient; Really fix compile warning.
Screwed up in 526c609d, now the real fix.
2008-11-23 23:54:27 +01:00
Kai Blin
526c609d5f s3-rpcclient: Fix a compile warning. 2008-11-23 22:21:31 +01:00
Günther Deschner
f9d691d9d8 s3-ntsvcs: remove old hand-marshalling for ntsvcs getdevregprop.
Guenther
2008-11-19 23:25:33 +01:00
Stefan Metzmacher
6815fd1730 s3: rpc: let serverinfo_to_SamInfo3() work with no pipe_session_key
metze
2008-11-06 21:39:14 +01:00
Günther Deschner
7f8bc6a2d9 errors: share dcerpc error function.
Guenther
2008-10-31 12:42:09 +01:00
Jelmer Vernooij
2d89b52be8 Use separate make variables for libutil and libcrypto. 2008-10-18 14:28:40 +02:00
Günther Deschner
d2b836e19a s3: remove rpccli_svcctl_query_config.
Guenther
2008-10-16 09:54:49 +02:00
Jeremy Allison
969a2fc4dd Don't use debug level 1 to log a trivial message.
Jeremy.
2008-10-15 18:07:15 -07:00
Günther Deschner
65dc1eeceb s3: fix various samr callers.
Guenther
2008-10-15 17:11:27 +02:00
Günther Deschner
3b9a03a7c3 s3: fix samlogon client and server calls.
Guenther
2008-10-15 16:14:20 +02:00
Jelmer Vernooij
9f2ed1e00f Share RPC binding string utility functions. 2008-10-12 19:05:46 +02:00
Günther Deschner
022947097f s3-ndr: add stub smb_iconv_convenience to some ndr_ functions.
Guenther
2008-09-23 23:35:14 +02:00
Günther Deschner
e194ded26e netlogon: move password change code out to rpccli_netlogon_set_trust_password.
Guenther
2008-09-21 22:30:39 +02:00
Günther Deschner
1f9624175a netlogon: add init_netr_CryptPassword.
Guenther
2008-09-21 22:30:10 +02:00
Volker Lendecke
29dd253e69 Tiny logic simplification: remove an else branch
(This used to be commit 9c4905ed67)
2008-09-03 13:52:13 +02:00
Volker Lendecke
767130ebec Fix some nonempty blank lines
(This used to be commit 9336cd1c5e)
2008-09-01 23:32:42 +02:00
Günther Deschner
a77c9285b7 fix another build warning.
Guenther
(This used to be commit 43693ce6c6)
2008-08-20 22:07:40 +02:00
Günther Deschner
84bc4ff546 rpc_client: Bug 5616 - fix session keys also in rpccli_netr_LogonSamLogonEx wrapper.
Guenther
(This used to be commit fef5809140)
2008-07-30 19:14:00 +02:00
Günther Deschner
21a8177ed2 rpc_client: add init_samr_CryptPasswordEx and init_samr_CryptPassword.
Guenther
(This used to be commit 87b6aac135)
2008-07-30 16:42:23 +02:00
Volker Lendecke
91df5551a4 Attempt to fix bug 5616
We were calculating the session key but did not return it to the caller...
(cherry picked from commit 8ab79b1d00)
(This used to be commit b63a6a1fd6)
2008-07-28 18:07:01 +02:00
Volker Lendecke
da6e4248ee Make idl: cli_do_rpc_ndr does not use pipe_idx anymore
(This used to be commit ffd2ff5325)
2008-07-21 14:36:31 +02:00
Volker Lendecke
a20c498310 Remove unused function rpccli_is_pipe_idx
(This used to be commit 287ffc17a0)
2008-07-21 14:36:31 +02:00
Volker Lendecke
86bb746406 Refactoring: CLI_DO_RPC_* uses interface instead of pipe_idx
(This used to be commit 6d2209ba5d)
2008-07-21 14:36:31 +02:00
Volker Lendecke
bd479ced46 Remove a reference to pipe_idx
(This used to be commit e949b9d11f)
2008-07-21 14:36:31 +02:00
Volker Lendecke
abce3cdf56 Remove some unused code
(This used to be commit b60a681dd0)
2008-07-21 14:36:31 +02:00
Volker Lendecke
d460ead468 Remove one reference to PI_NETLOGON
(This used to be commit e89bbab1b8)
2008-07-21 14:36:31 +02:00
Volker Lendecke
41525152f5 Remove some fully outdated sample code
(This used to be commit 0df0e81784)
2008-07-21 14:36:30 +02:00
Volker Lendecke
303f98af2f Remove now unused cli_get_pipe_name
(This used to be commit ed4a447103)
2008-07-21 14:36:30 +02:00
Volker Lendecke
346a8d1bdc Remove now unused cli_get_pipe_idx
(This used to be commit e02a550527)
2008-07-21 14:36:29 +02:00
Volker Lendecke
9664f24ecf Remove now unused cli_get_iface
(This used to be commit 2e60701e8d)
2008-07-21 14:36:28 +02:00
Volker Lendecke
798b56edae Refactoring: libnetapi_open_pipe takes an interface instead of pipe_idx
(This used to be commit 726e56c72f)
2008-07-21 14:36:27 +02:00
Volker Lendecke
55f84c05bd Refactoring: Change calling conventions for cli_rpc_pipe_open_krb5
Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS
(This used to be commit f2656e5c2e)
2008-07-20 17:37:14 +02:00
Volker Lendecke
99526d391d Refactoring: Change calling conventions for cli_rpc_pipe_open_schannel
Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS
(This used to be commit 1fcfca007f)
2008-07-20 17:37:14 +02:00
Volker Lendecke
52ff49600e Refactoring: Change calling conventions for cli_rpc_pipe_open_ntlmssp_auth_schannel
Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS
(This used to be commit ff87127baf)
2008-07-20 17:37:13 +02:00
Volker Lendecke
ba2cb35ca5 Refactoring: Change calling conventions for cli_rpc_pipe_open_schannel_with_key
Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS
(This used to be commit 78e9c937ff)
2008-07-20 17:37:13 +02:00
Volker Lendecke
44bdc98823 Refactoring: Make get_schannel_session_key_auth_ntlmssp return NTSTATUS
(This used to be commit ab3d80d476)
2008-07-20 17:37:12 +02:00
Volker Lendecke
b8fc15be95 Refactoring: Make get_schannel_session_key return NTSTATUS
(This used to be commit a0793cc853)
2008-07-20 17:37:12 +02:00
Volker Lendecke
1f854d1db7 Refactoring: Make get_schannel_session_key_common return NTSTATUS
(This used to be commit 513e695076)
2008-07-20 17:37:12 +02:00
Volker Lendecke
e0be03d8d5 Refactoring: Change calling conventions for cli_rpc_pipe_open_ntlmssp
Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS
(This used to be commit a13f059955)
2008-07-20 17:37:11 +02:00
Volker Lendecke
1335da2a7c Refactoring: Change calling conventions for cli_rpc_pipe_open_noauth
Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS
(This used to be commit 9abc9dc4dc)
2008-07-20 17:37:11 +02:00
Volker Lendecke
18fb7e0977 Refactoring: Change calling conventions for cli_rpc_pipe_open
Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS
(This used to be commit 6c122457ff)
2008-07-20 17:06:22 +02:00
Volker Lendecke
eb68e95d9a Refactoring: Change calling conventions for rpc_pipe_open_np
Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS
(This used to be commit 9249fe9e91)
2008-07-20 17:06:22 +02:00
Volker Lendecke
2e905d2cd1 Allocate rpc_cli->dc in rpccli_netlogon_setup_creds()
The general cli_pipe routines should not have to know about this NETLOGON
speciality.
(This used to be commit d30237598d)
2008-07-20 17:06:21 +02:00
Volker Lendecke
65dfc40a4a Store copies of the syntax ids in rpc_pipe_client
(This used to be commit 848a3497e3)
2008-07-20 17:06:21 +02:00
Volker Lendecke
66669bad43 Simplify pipe_names: we only do ndr_transfer_syntax anyway
(This used to be commit b808403af5)
2008-07-20 17:06:21 +02:00
Volker Lendecke
867b61d0a1 The PIPE_ pipename macros are only used in cli_pipe.c
(This used to be commit 03f7af26f2)
2008-07-19 21:07:14 +02:00
Volker Lendecke
bf6c11fea3 Make the pipe_names[] array static to cli_pipe.c
(This used to be commit ab7ab35059)
2008-07-19 20:40:27 +02:00
Volker Lendecke
ad91d960d0 Fix some uninitialized variable references via ndr_print
(This used to be commit 26fb3fea81)
2008-07-10 18:24:54 +02:00
Jeremy Allison
f083c1f57e Fix bug #5568 net rpc trustdom add broken !
net rpc trustdom add was broken. The default 10second timeout can be too short
to create an account on a Samba DC (calling out to a script), error message
reporting was poor, and more importantly the new marshalling code for
user_info23 was broken (maps onto a user_info21 but doesn't clear the
user_info23 struct before marshalling, leaving an uninitialized size field -
give "alloc failure").
Jeremy.
(This used to be commit e072b3667e)
2008-06-27 17:26:41 -07:00
Jeremy Allison
799252f635 Fix the non-LDAP, non-krb5 build, fix gcc -O3 warnings.
Jeremy.
(This used to be commit 9e2ab30d3c)
2008-06-26 19:46:18 -07:00
Günther Deschner
402733b518 rpc_client: add rpccli_samr_chgpasswd_user() call.
Guenther
(This used to be commit 10fd2baa83)
2008-06-25 23:58:50 +02:00
Günther Deschner
14d500c0e7 rename rpccli_samr_chgpasswd3 to rpccli_samr_chgpasswd_user3.
Guenther
(This used to be commit b1209a039b)
2008-06-25 23:58:50 +02:00
Günther Deschner
059293cbf4 rename rpccli_samr_chgpasswd_user to rpccli_samr_chgpasswd_user2.
Guenther
(This used to be commit 5b4650d56c)
2008-06-25 23:58:50 +02:00
Günther Deschner
92bd665aea rpc_client: let cli_get_session_key() return talloced session key.
Thanks, Volker, for pointing this out.

Guenther
(This used to be commit b47899195e)
2008-06-25 09:51:31 +02:00
Günther Deschner
07f06eec21 rpc_client: add cli_get_session_key().
Guenther
(This used to be commit 93b56755f7)
2008-06-24 23:47:58 +02:00
Karolin Seeger
1178287eeb rpc_client: Avoid warning in builds without krb5 headers.
warning: ‘cli_auth_kerberos_data_destructor’ defined but not used

Karolin
(This used to be commit b5f9176b6c)
2008-06-24 16:30:32 +02:00
Günther Deschner
95a1f88d93 rpc_client: fix some valgrind warnings.
Guenther
(This used to be commit 0352682a35)
2008-06-11 10:47:21 +02:00
Volker Lendecke
f1d160f333 Fix a const warning
Jelmer, would it be possible to make the rpc client functions take const
pointers for pure [in] arguments?
(This used to be commit d893b2ea13)
2008-05-25 13:53:44 +02:00
Günther Deschner
1a16a2cf97 drsuapi: always use tcp for drsuapi.
cli_rpc_pipe_open() now uses tcp transport for drsuapi and named pipe
transport for all other pipes.

This finally allows rpcclient to call dscracknames on windows
(don't forget to call "seal" in advance).

Guenther
(This used to be commit b243a03602)
2008-05-24 01:29:13 +02:00
Volker Lendecke
34104dfc21 Fix a (bogus) uninitialized variable warning
(This used to be commit 6106d48a5c)
2008-05-23 15:37:05 +02:00
Michael Adam
a8045b1339 rpc_client: make rpc_pipe_open_tcp_port and rpc_pipe_get_tcp_port static.
Slim the interface...

Michael
(This used to be commit 9971118c23)
2008-05-22 11:30:04 +02:00
Michael Adam
b398a96b09 rpc_client: use endpoint mapper to get the port for rpc_pipe_open_tcp().
Michael
(This used to be commit f7db445c82)
2008-05-22 11:29:57 +02:00
Volker Lendecke
36e94197d0 rpc_client: add a destructor to close the socket for pipes over tcp.
used in rpc_pipe_open_tcp() and rpc_pipe_open_ncalrpc().
(This used to be commit a0bdd56c75)
2008-05-21 23:35:26 +02:00
Volker Lendecke
e8d25443c1 Add client support for NCACN_UNIX_STREAM
(This used to be commit 24ac40518f)
2008-05-21 23:35:25 +02:00
Volker Lendecke
78022953e7 rpccli_schannel_bind_data only needs the schannel key
(This used to be commit be5d54a363)
2008-05-21 23:35:25 +02:00
Volker Lendecke
ec70996fc7 Rename rpc_pipe_client.tcp.sock to rpc_pipe_client.sock.fd
(This used to be commit 2ff908a902)
2008-05-21 23:35:24 +02:00
Volker Lendecke
9a6b1f4b5f Fix a comment
(This used to be commit 8ae39c1339)
2008-05-21 23:35:24 +02:00
Volker Lendecke
968a006555 Factor out generation of an info3 struct from a serversupplied_info
(This used to be commit e60faccc1b)
2008-05-17 23:17:40 +02:00
Volker Lendecke
2c00ff5407 Fix two uninitialized variable warnings
(This used to be commit 48fd7b3635)
2008-05-05 11:17:19 +02:00
Volker Lendecke
9de291e671 Attempt to fix the non-krb build
(This used to be commit 31d80a4767)
2008-04-25 12:36:39 +02:00
Volker Lendecke
79fae5082a Add basic ncacn_ip_tcp client infrastructure
(This used to be commit 11072ccc7a)
2008-04-25 11:12:52 +02:00
Volker Lendecke
63e0884df5 Introduce a redirection for ncacn_np and ncacn_ip_tcp in rpc_pipe_client
Should be no functional change, just a change in the data structure
(This used to be commit 3433f430b0)
2008-04-25 11:12:52 +02:00
Volker Lendecke
cf182c0a76 Introduce rpccli_pipe_txt(), describing a pipe for debug messages
(This used to be commit 83892d51de)
2008-04-25 11:12:52 +02:00
Volker Lendecke
eb5582d28a cli_rpc_pipe_open_noauth must take the user/domain from the smb session
(This used to be commit 6f08128cf2)
2008-04-25 11:12:52 +02:00
Volker Lendecke
324e92ea67 Make use of rpccli_xxx_bind_data
(This used to be commit f9bc336aff)
2008-04-25 11:12:51 +02:00
Volker Lendecke
253b0b8868 Create rpccli_xxx_bind_data functions
These functions create the auth data for the later bind
(This used to be commit 630b9c241c)
2008-04-25 11:12:51 +02:00
Volker Lendecke
862d7e32b9 Move user/domain from rpc_pipe_client to cli_pipe_auth_data
(This used to be commit 42de50d2cd)
2008-04-25 11:12:50 +02:00
Volker Lendecke
9e9d40d097 Refactoring: Make cli_pipe_auth_data a pointer off rpc_pipe_client
(This used to be commit f665afaaa3)
2008-04-25 11:12:50 +02:00
Volker Lendecke
b78453326b Remove the "pwd" struct from rpc_pipe_client
The only user of this was decrypt_trustdom_secret, and this only needs the NT
hash anyway.
(This used to be commit 3d8c2a47e6)
2008-04-21 23:36:05 +02:00
Volker Lendecke
712e40dad2 Fix some empty lines with just spaces
(This used to be commit f8fb9b7e37)
2008-04-20 16:23:48 +02:00
Volker Lendecke
b9cc055062 Introduce rpc_pipe_np_smb_conn()
This abstracts away all references to rpc_pipe_client->cli, the only reference
is now in cli_pipe.c.
(This used to be commit c56e1c08ce)
2008-04-20 14:08:16 +02:00