Günther Deschner
bea8e5fa60
s3-rpc_client: add dcerpc_transport_t to cli_rpc_pipe_open_schannel().
...
Guenther
2009-09-11 09:59:04 +02:00
Günther Deschner
032e01e7c1
s3-rpc_client: add dcerpc_transport_t to cli_rpc_pipe_open_spnego_ntlmssp and cli_rpc_pipe_open_ntlmssp.
...
Guenther
2009-09-11 09:59:04 +02:00
Günther Deschner
87f61a144b
s3-rpc_client: add cli_rpc_pipe_open_noauth_transport.
...
Guenther
2009-09-11 09:59:03 +02:00
Günther Deschner
d258fb4d0d
s3-schannel: use NL_AUTH_SIGNATURE for schannel sign & seal (client & server).
...
Guenther
2009-09-11 03:00:35 +02:00
Günther Deschner
393a1f594d
s3-rpc_client: add enum dcerpc_transport_t to rpc_cli_transport struct.
...
Guenther
2009-09-11 00:26:24 +02:00
Günther Deschner
de0bf36493
s3-rpc_client: use NL_AUTH_MESSAGE in create_schannel_auth_rpc_bind_req().
...
Guenther
2009-09-08 17:07:02 +02:00
Günther Deschner
5b2b5abf4f
s3-schannel: Fix Bug #6697 . Interdomain trusts with Windows 2008 R2 DCs.
...
The Schannel verifier (aka NL_AUTH_SIGNATURE) structure (32 byte) sent from a
W2k8r2 DC is passed in a buffer with the size of a NL_AUTH_SHA2_SIGNATURE (56
byte). We should just ignore the remaining 12 zeroed bytes and proceed.
Guenther
2009-09-08 12:34:10 +02:00
Stefan Metzmacher
dcdefc17b9
s3:rpc_client: add dispatch_send/recv() to struct rpc_pipe_client
...
metze
2009-07-31 12:49:45 +02:00
Jeremy Allison
5d05d22999
Added prefer_ipv4 bool parameter to resolve_name().
...
W2K3 DC's can have IPv6 addresses but won't serve
krb5/ldap or cldap on those addresses. Make sure when
we're asking for DC's we prefer IPv4.
If you have an IPv6-only network this prioritizing code
will be a no-op. And if you have a mixed network then you
need to prioritize IPv4 due to W2K3 DC's.
Jeremy.
2009-07-28 11:51:58 -07:00
Volker Lendecke
3532882d02
Lift the event loop in rpc_api_pipe_req() one level into cli_do_rpc_ndr
2009-07-27 16:15:54 +02:00
Volker Lendecke
58fbf7420c
Remove "typedef struct ndr_syntax_id RPC_IFACE;"
2009-07-05 23:50:12 +02:00
Günther Deschner
1225d57abe
s3-spoolss: add rpccli_spoolss_getprinterdriver convenience wrapper.
...
Guenther
2009-07-03 22:05:46 +02:00
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