Stefan Metzmacher
8e1c6d4232
s3:rpc_client: rename pipe_auth_data->user_session_key to transport_session_key
...
metze
2012-08-01 14:17:15 +02:00
Stefan Metzmacher
8b42f526f4
s3:rpc_client: make use of smbXcli_session_application_key()
...
metze
2012-08-01 14:17:14 +02:00
Andreas Schneider
33206b1e24
s3-rpc_client: Fix updating netlogon credentials.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2012-07-17 13:53:37 +02:00
Andreas Schneider
572b549063
s3-rpc_client: Add capabilities check for AES encrypted connections.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2012-07-17 13:53:37 +02:00
Andreas Schneider
a866dcc4f6
s3-rpc: Return the correct ntstatus depending on the transport.
2012-07-06 10:00:57 +02:00
Volker Lendecke
b9a15f1bfa
s3: Give machine password changes 10 minutes of time
...
This is what we do at domain join time as well, see
lib/netapi/joindomain.c:141
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-06-22 17:28:20 +02:00
Stefan Metzmacher
1e5010fd99
s3:rpc_client: tstream_cli_np_open_send() doesn't expect a leading backslash
...
This fixes winbindd against a windows server using SMB2.
metze
2012-05-28 19:51:46 +02:00
Luk Claes
4f6f4ea93c
s3:libsmb: get rid of cli_state_remote_name
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-28 14:49:45 +02:00
Volker Lendecke
9b0b60c67e
s3: Fix Coverity ID 242715 Uninitialized scalar variable
...
In an error path we are closing hive_hnd without opening it
2012-05-10 09:11:58 +02:00
Volker Lendecke
6d5bbb9a4b
s3: Fix Coverity ID 242716 Uninitialized scalar variable
...
In an error path we are closing key_hnd without opening it
2012-05-10 09:11:57 +02:00
Volker Lendecke
05e59739b3
s3: Fix Coverity ID 242691 Dereference before null check
...
winreg_printer_openkey above already dereferences winreg_handle
2012-05-10 09:11:57 +02:00
Volker Lendecke
8c2f826553
s3: Fix Coverity ID 242692 Dereference before null check
...
winreg_printer_openkey above already dereferences winreg_handle
2012-05-10 09:11:56 +02:00
Volker Lendecke
318cf16f7b
s3: Fix Coverity ID 242693 Dereference before null check
...
winreg_printer_openkey above already dereferences winreg_handle
2012-05-10 09:11:56 +02:00
Volker Lendecke
c0471d1d96
s3: Fix Coverity ID 242694 Dereference before null check
...
winreg_printer_openkey above already dereferences winreg_handle
2012-05-10 09:11:56 +02:00
Volker Lendecke
39577f1e99
s3: Fix Coverity ID 242695 Dereference before null check
...
winreg_printer_openkey above already dereferences winreg_handle
2012-05-10 09:11:56 +02:00
Volker Lendecke
600c4c9c45
s3: Fix Coverity ID 242696 Dereference before null check
...
winreg_printer_openkey above already dereferences winreg_handle
2012-05-10 09:11:56 +02:00
Volker Lendecke
995ea20fa2
s3: Fix Coverity ID 242697 Dereference before null check
...
winreg_printer_openkey above already dereferences winreg_handle
2012-05-10 09:11:56 +02:00
Volker Lendecke
3a8c4ab2ad
s3: Fix Coverity ID 242698 Dereference before null check
...
winreg_printer_openkey above already dereferences winreg_handle
2012-05-10 09:11:56 +02:00
Volker Lendecke
75271528f3
s3: Fix Coverity ID 242699 Dereference before null check
...
winreg_printer_openkey above already dereferences winreg_handle
2012-05-10 09:11:56 +02:00
Volker Lendecke
f9f4d705c2
s3: Fix Coverity ID 242700 Dereference before null check
...
winreg_printer_openkey above already dereferences winreg_handle
2012-05-10 09:11:56 +02:00
Volker Lendecke
a7b23cec6d
s3: Fix Coverity ID 242701 Dereference before null check
...
winreg_printer_openkey above already dereferences winreg_handle
2012-05-10 09:11:56 +02:00
Volker Lendecke
e0bc3767e3
s3: Fix Coverity ID 242702 Dereference before null check
...
winreg_printer_openkey above already dereferences winreg_handle
2012-05-10 09:11:56 +02:00
Volker Lendecke
11085bd93a
s3: Fix Coverity ID 242703 Dereference before null check
...
winreg_printer_openkey above already dereferences winreg_handle
2012-05-10 09:11:56 +02:00
Volker Lendecke
6c34e1a015
s3: Fix Coverity ID 242704 Dereference before null check
...
winreg_printer_openkey above already dereferences winreg_handle
2012-05-10 09:11:56 +02:00
Volker Lendecke
37b7095c8a
s3: Fix Coverity ID 242705 Dereference before null check
...
winreg_printer_openkey above already dereferences winreg_handle
2012-05-10 09:11:56 +02:00
Volker Lendecke
67e306703b
s3: Fix Coverity ID 242706 Dereference before null check
...
winreg_printer_openkey above already dereferences winreg_handle
2012-05-10 09:11:56 +02:00
Jelmer Vernooij
2c9444685d
cli_pipe: Avoid sys_connect.
2012-03-24 14:57:47 +01:00
Jelmer Vernooij
95ca5fbadd
libndr: Rename ndr64_transfer_syntax and null_ndr_syntax_id so they have a ndr_ prefix.
...
This makes the NDR namespace a bit clearer, in preparation of ABI checking.
2012-03-20 13:54:07 +01:00
Andreas Schneider
034489718c
s3-rpc_client: Add debug message for printer dataex errors.
2012-03-14 17:56:14 +01:00
Christian Ambach
7936fb0ab8
Fix bug #8807 - dcerpc_lsa_lookup_sids_noalloc() crashes when groups has more than 1000 groups
...
Use correct talloc heirarchy.
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-03-13 12:17:31 -07:00
Volker Lendecke
1bf126c0b3
s3: Remove some superfluous ()
2012-03-09 17:21:11 +01:00
Stefan Metzmacher
083d80c502
s3:rpc_client: initialize struct schannel_state to zero
...
metze
2012-03-02 07:07:10 +01:00
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
Stefan Metzmacher
0c5cbb557b
s3:rpc_client: fix comment
...
metze
2012-02-16 15:18:41 +01:00
Andrew Bartlett
bd2a7aac2c
s3-librpc: make gensec result handling more generic
...
This prepares us for handling SPNEGO via gensec
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-02-16 15:18:41 +01:00
David Disseldorp
ec094bf9ac
WERROR type variable being incorrectly checked with a NT_STATUS_IS_X
...
type macro.
2012-01-23 12:18:01 -08:00
Andrew Bartlett
40715e1251
s3-librpc: pass struct ndr_interface_table down to cli_pipe_open_generic/spnego()
...
This allows the target service (as determined from the IDL) to be
passed to GSSAPI (rather than the current, incorrect, "cifs").
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-18 16:23:24 +01:00
Andrew Bartlett
c62af4f652
s3-librpc Make cli_rpc_pipe_open_spnego_ntlmssp() generic
...
This also avoids passing NULL as the server to
gensec_set_target_hostname() in spnego_generic_init_client().
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-18 16:23:23 +01:00
Andrew Bartlett
f2efb0f6a3
s3-librpc Remove special case for spnego session key
...
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
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
49bafcfa48
s3-librpc Supply target service and server to spnego_generic_init_client()
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-11 09:09:43 +01:00
Andrew Bartlett
50a939ad85
s3-librpc: Rename spnego_ntlmssp_init_client and make generic
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-11 09:05:01 +01:00
Andrew Bartlett
e574489be4
s3-librpc Set target service and server into gensec
...
This will allow cli_rpc_pipe_open_generic_auth() to handle kerberos mechanisms.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-11 09:04:48 +01:00
Andrew Bartlett
b89a0439b3
s3-librpc Rename and rework cli_rpc_pipe_open_ntlmssp() to be generic
...
This also includes renaming the helper function
rpccli_ntlmssp_bind_data, and allows this function to operate on any
gensec-supplied auth type.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-11 09:04:41 +01:00
Andrew Bartlett
1e5e219a4b
s3-librpc Rename create_ntlmssp_auth_rpc_bind_req() to be more generic
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-11 09:04:24 +01:00
Andrew Bartlett
a00032a92d
s3-libsmb Make auth_ntlmssp client more generic
...
As well as renaming, this allows us to start the mech by DCE/RPC auth
type or OID.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-06 08:12:49 +01:00
Andrew Bartlett
6391fff9da
s3-auth rename auth_ntlmssp_state -> auth_generic_state
...
This structure handles more than NTLMSSP now, at least when we are an AD DC
and so changing the name may avoid some confusion in the future.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-12-22 19:25:10 +01:00
Andrew Bartlett
c9d929af8b
s4-lsarpc handle more info levels in SetInfoTrustedDomain calls
...
This uses the very helpful conversion functions written for the s3 lsa server
and places these in common.
Andrew Bartlett
2011-12-12 12:57:07 +01:00
Stefan Metzmacher
790c6b4027
s3:rpc_client: remove references to auth_ntlmssp_state
...
metze
Signed-off-by: Günther Deschner <gd@samba.org>
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Oct 27 16:40:15 CEST 2011 on sn-devel-104
2011-10-27 16:40:15 +02:00