Andrew Bartlett
2b511f0e92
s3-librpc: Use gensec_spnego for DCE/RPC authentication
...
This ensures that we use the same SPNEGO code on session setup and on
DCE/RPC binds, and simplfies the calling code as spnego is no longer
a special case in cli_pipe.c
A special case wrapper function remains to avoid changing the
application layer callers in this patch.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-02-16 15:18:42 +01:00
Andrew Bartlett
1d0684c845
s3-librpc: Remove unused bool gensec_hook
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-02-16 15:18:42 +01:00
Andrew Bartlett
1818612830
s3-librpc Remove special case for spnego dcerpc sign/seal
...
SPNEGO is implemented only in terms of gensec mechanisms now.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-18 16:23:23 +01:00
Andrew Bartlett
5ddec1182e
s3-librpc: Simplify SPNEGO code now that all mechs use a struct gensec_security
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-18 16:23:22 +01:00
Andrew Bartlett
0c1b4c2321
s3-librpc Call SPENGO/GSSAPI via the auth_generic layer and gensec
...
This simplifies a lot of code, as we know we are always dealing
with a struct gensec_security, and allows the gensec module being
used to implement GSSAPI to be swapped for AD-server operation.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-18 16:23:22 +01:00
Andrew Bartlett
e012ad9d8b
s3-librpc Call GSSAPI via the auth_generic layer and gensec
...
This simplifies a lot of code, as we know we are always dealing with a
struct gensec_security, and allows the gensec module being used to
implement GSSAPI to be swapped when required for AD-server operation.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-18 16:23:22 +01:00
Andrew Bartlett
e8cd972177
s3-librpc: rename get_ntlmssp_auth_footer to be more generic
...
This can handle any gensec auth type now.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-11 09:04:52 +01:00
Andrew Bartlett
4ac34f3288
s3-librpc remove unused headers
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-05 17:17:29 +01:00
Andrew Bartlett
21fb9a47ea
s3-librpc Use gensec_sig_size() instead of a fixed NTLMSSP_SIG_SIZE
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Dec 22 20:57:27 CET 2011 on sn-devel-104
2011-12-22 20:57:27 +01:00
Andrew Bartlett
321204eaeb
s3-ntlmssp Remove references to auth_ntlmssp_context from the rpc code
...
We always dereferenced auth_ntlmssp_state->gensec_security, so now we
do not bother passing around the whole auth_ntlmssp_state.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-10-21 08:50:55 +02:00
Andrew Bartlett
bd29f79463
s3-ntlmssp use gensec_{seal,unseal,sign,check}_packet
...
This avoids the indirection via the auth_ntlmsssp wrapper functions.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-10-21 08:43:23 +02:00
Andrew Bartlett
0c6e4adcb2
ntlmssp: Move ntlmssp code to auth/ntlmssp
...
This brings in the code from both libcli/auth and
source4/auth/ntlmssp.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-10-18 13:13:31 +11:00
Simo Sorce
d1bc22eeb3
s3-rpc_server: Use rpc_epmapper_mode() in ep_register()
...
Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Simo Sorce <idra@samba.org>
2011-08-21 09:05:03 -04:00
Andrew Bartlett
7b1d6a6a05
selftest: test plugin_s4_dc against all ncacn_np tests
...
Changes to the s3 epmapper behaviour seem to have fixed the rest of these
tests.
Andrew Bartlett
2011-08-03 18:48:05 +10:00
Andrew Bartlett
d3fe48ba48
gensec: Remove mem_ctx from calls that do not return memory
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-08-03 18:48:01 +10:00
Andreas Schneider
4b751b29e5
s3-librpc: Remove obsolete dcerpc_binding_vector_create().
2011-08-01 08:50:35 +02:00
Andreas Schneider
02cdb65fc6
s3-librpc: Add dcerpc_binding_vector_replace_iface().
2011-08-01 08:50:35 +02:00
Andreas Schneider
9cc6f90424
s3-librpc: Add dcerpc_binding_vector_dup().
2011-08-01 08:50:35 +02:00
Andreas Schneider
169d0c4312
s3-librpc: Add dcerpc_binding_vector_add_unix().
2011-08-01 08:50:35 +02:00
Andreas Schneider
eaced2e909
s3-librpc: Add dcerpc_binding_vector_add_port().
2011-08-01 08:50:35 +02:00
Andreas Schneider
c810e47519
s3-librpc: Add dcerpc_binding_vector_add_np_default().
2011-08-01 08:50:35 +02:00
Andreas Schneider
08523ed6b8
s3-librpc: Add dcerpc_binding_vector_new().
2011-08-01 08:50:34 +02:00
Andreas Schneider
c69f2c4de9
s3-librpc: Pass messaging context to dcerpc register functions.
2011-07-14 16:10:47 +02:00
Andreas Schneider
541f3cf639
s3-rpc_server: Migrate rpc function to tsocket_address.
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-07-04 18:27:58 +10:00
Andrew Bartlett
74eed8f3ed
s3-param Remove special case for global_myname(), rename to lp_netbios_name()
...
There is no reason this can't be a normal constant string in the
loadparm system, now that we have lp_set_cmdline() to handle overrides
correctly.
Andrew Bartlett
2011-06-09 12:40:09 +02:00
Andrew Bartlett
c615ebed6e
s3-lib Replace StrCaseCmp() with strcasecmp_m()
...
strcasecmp_m() never needs to call to talloc, and via next_codepoint()
still has an ASCII fast-path bypassing iconv() calls.
Andrew Bartlett
2011-05-18 16:12:08 +02:00
Günther Deschner
0bb4701a74
s3: remove various references to server side dcerpc structs (which are not needed).
...
Guenther
2011-05-02 15:03:44 +02:00
Günther Deschner
80fa624861
s3: move pipe_auth_data to dcerpc.h
...
Guenther
2011-05-02 15:03:44 +02:00
Günther Deschner
bc781bf7d9
s3-proto: remove duplicate prototypes.
...
Guenther
2011-04-29 21:01:05 +02:00
Günther Deschner
faf1175125
s3-proto: move more librpc prototypes to librpc/rpc/dcerpc.h
...
Guenther
2011-04-29 21:01:04 +02:00
Günther Deschner
bc6f24e89f
s3-build: remove some unused headers.
...
Guenther
2011-04-29 12:19:03 +02:00
Günther Deschner
f102748061
s3-librpc: let librpc/rpc/dcerpc.h include ndr and generated dcerpc headers.
...
Guenther
2011-04-12 12:20:43 +02:00
Günther Deschner
6e3f0d28a4
s3-includes: only include ntdomain.h where needed.
...
Guenther
2011-03-30 01:13:09 +02:00
Günther Deschner
146c1aac99
s3-auth: rpc_server needs auth.h
...
Guenther
2011-03-30 01:13:09 +02:00
Günther Deschner
b903c28939
librpc: bring more librpc prototypes in common.
...
Guenther
2011-03-23 23:59:11 +01:00
Andreas Schneider
73faa82bf9
s3-rpc_server: Implement an endpoint monitor loop.
2011-03-23 17:19:22 +01:00
Andreas Schneider
81a2046879
s3-librpc: Leave the epm registration connection open.
2011-03-23 17:19:22 +01:00
Stefan Metzmacher
72c1fe0081
librpc/rpc: move DCERPC_ flags to rpc_common.h
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sun Mar 13 20:45:53 CET 2011 on sn-devel-104
2011-03-13 20:45:53 +01:00
Stefan Metzmacher
f7840b3293
s3:librpc/rpc: add DCERPC_ANON_FALLBACK flag
...
With this they're in sync with source4.
metze
2011-03-13 19:24:57 +01:00
Stefan Metzmacher
08dca92499
librpc/rpc: move struct dcerpc_binding to rpc_common.h
...
metze
2011-03-13 16:53:05 +01:00
Stefan Metzmacher
7b7baecf1a
s3:librpc/rpc: add target_principal to struct dcerpc_binding
...
This brings the source3 copy in sync with the source4 copy
of struct dcerpc_binding.
metze
2011-03-13 16:52:59 +01:00
Stefan Metzmacher
83c55ac67e
librpc/rpc: move enum dcerpc_transport_t to rpc_common.h
...
metze
2011-03-13 16:33:06 +01:00
Stefan Metzmacher
b738e092a2
librpc/rpc: move dcerpc_binding_handle stuff to rpc_common.h
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Mar 11 12:28:08 CET 2011 on sn-devel-104
2011-03-11 12:28:08 +01:00
Stefan Metzmacher
5657c96714
s3:librpc/rpc: remove unused dcerpc_pipe define hack
...
metze
2011-03-11 11:02:24 +01:00
Günther Deschner
d92e060dd9
s3-epmap: fix uninitialized variable in ep_register()
...
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
2011-03-08 11:41:31 +01:00
Andreas Schneider
ce491edcad
s3-librpc: Register NCALRPC pipes.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2011-03-08 11:41:30 +01:00
Andreas Schneider
cc5b88545d
s3-rpc_server: Introduce transport in pipe_struct.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2011-03-08 11:41:30 +01:00
Andreas Schneider
148ed2c3f9
s3-librpc: Register endpoints using ncalrpc.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2011-03-08 11:41:29 +01:00
Andreas Schneider
d343409d6b
s3-rpc_client: Added DCERPC_AUTH_TYPE_NCALRPC bind.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2011-03-08 11:41:29 +01:00
Andreas Schneider
c80e519cdc
s3-librpc: Free memory we don't need.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2011-03-08 11:41:28 +01:00