Stefan Metzmacher
68b8149d1f
s3:rpc_client: don't randomly fragment rpc pdu's in developer mode
...
This is really confusing and also breaks against windows,
as it doesn't accept fragmented bind requests.
metze
2009-09-25 05:20:16 +02:00
Günther Deschner
a4b5c792c5
s3-rpc_client: fix non initialized structure in rpccli_lsa_lookup_sids_noalloc.
...
Guenther
2009-09-18 21:32:45 +02:00
Günther Deschner
503d035814
spnego: share spnego_parse.
...
Guenther
2009-09-17 01:12:20 +02:00
Stefan Metzmacher
033ced60ac
libcli/auth: rewrite schannel sign/seal code to be more generic
...
This prepares support for HMAC-SHA256/AES.
metze
2009-09-16 12:29:06 +02:00
Günther Deschner
37bc806453
s3-dcerpc: remove more obsolete or duplicate headers.
...
Guenther
2009-09-16 08:55:51 +02:00
Günther Deschner
c5c04fcf90
s3-schannel: add dump_NL_AUTH_SIGNATURE.
...
Guenther
2009-09-16 07:54:02 +02:00
Günther Deschner
799f8d7e13
schannel: fully share schannel sign/seal between s3 and 4.
...
Guenther
2009-09-16 01:55:06 +02:00
Günther Deschner
f8014d30e7
s3-schannel: fix blob length when pulling off a NL_AUTH_SIGNATURE in
...
cli_pipe_verify_schannel().
Guenther
2009-09-16 00:11:23 +02:00
Günther Deschner
c2d7c7a9dd
s3-dcerpc: fix remaining old auth level constants.
...
Guenther
2009-09-15 18:30:44 +02:00
Günther Deschner
fdf3bd6203
s3-dcerpc: remove unsed auth type defines as seen on the wire.
...
Guenther
2009-09-15 17:50:00 +02:00
Günther Deschner
d3af0346c8
s3-dcerpc: use dcerpc_AuthLevel and remove duplicate set of flags.
...
Guenther
2009-09-15 17:49:34 +02:00
Günther Deschner
2f9adf04e4
s3-rpc_client: add rpccli_lsa_lookup_sids3 wrapper.
...
Guenther
2009-09-14 06:49:58 +02:00
Günther Deschner
ff968712ba
s3-rpc_client: add rpccli_lsa_lookup_names4 wrapper.
...
Guenther
2009-09-14 06:49:58 +02:00
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