summaryrefslogtreecommitdiffstats
path: root/source3/libsmb
Commit message (Collapse)AuthorAgeFilesLines
...
* s3-libsmb Use the gse_krb5 gensec module as clientAndrew Bartlett2012-01-181-1/+6
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-libsmb: split out auth_generic client functions into auth_generic.cAndrew Bartlett2012-01-112-128/+155
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-librpc Rename and rework cli_rpc_pipe_open_ntlmssp() to be genericAndrew Bartlett2012-01-111-7/+9
| | | | | | | | | | 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>
* krb5: Require krb5_set_real_time is available to build with krb5Andrew Bartlett2012-01-101-20/+0
|
* krb5: Require krb5_get_renewed_creds be available to build with krb5Andrew Bartlett2012-01-101-49/+4
|
* krb5: Require krb5_get_init_creds_opt_alloc/free for build with krb5Andrew Bartlett2012-01-101-29/+0
| | | | | | This also assumes the modern API with a krb5_context argument. Andrew Bartlett
* krb5: Require krb5_fwd_tgt_creds to be available to build with krb5Andrew Bartlett2012-01-101-3/+3
|
* krb5: Require krb5_c_enctype_compare is available to build with krb5Andrew Bartlett2012-01-101-4/+0
|
* s3: Remove an unused labelVolker Lendecke2012-01-091-3/+0
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Jan 9 23:07:32 CET 2012 on sn-devel-104
* s3-libsmb: Do not look up FQDN or use host/ for krb5 encrypted CIFSAndrew Bartlett2012-01-091-12/+1
| | | | | | | | | | | | This is important, as we want to use exactly the same name and ticket that the libsmb session setup code used, so we do not hit the KDC twice. For the session setup to have succeded using the default 'client use spnego principal = no', the cifs/ principal must exist anyway, so looking for host/ is pointless. The case of 'client use spnego principal = yes' was never supported here. Andrew Bartlett
* s3-libsmb: match the rest of Samba3 in kerberos name selection in smb sealingAndrew Bartlett2012-01-091-17/+16
| | | | | | | This mirrors 860ad734ba77238d187520f72afcbdc1c73d94ef which in turn mirrors the behaviour of the libsmb client code at session setup time. Andrew Bartlett
* s3-ntlmssp Remove unused ntlmssp_set_hashes() and do not set an invalid LM hashAndrew Bartlett2012-01-061-27/+21
| | | | | | | | | | | | | | When E_deshash() returns false, it indicates that the password is either > 14 chars in length, or could not be represented as an LM hash value for some other reason. In this case, we should not regard the LM hash being missing as an error or a no-password situation. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Jan 6 14:59:13 CET 2012 on sn-devel-104
* ntlmssp: merge initial packet implementationsAndrew Bartlett2012-01-061-8/+21
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-libsmb Make auth_ntlmssp client more genericAndrew Bartlett2012-01-062-22/+48
| | | | | | | | | 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>
* s3-libsmb Use gensec_settings to set s3 ntlmssp client backendAndrew Bartlett2012-01-061-2/+10
| | | | | | This prepares us for making the code generic to multiple mechansims Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-libads Factor out a new routine ↵Andrew Bartlett2012-01-051-36/+10
| | | | | | | | | | | | kerberos_get_principal_from_service_hostname() This is now used in the GSE GSSAPI client, so that when we connect to a target server at the CIFS level, we use the same name to connect at the DCE/RPC level. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-auth rename auth_ntlmssp_state -> auth_generic_stateAndrew Bartlett2011-12-222-8/+8
| | | | | | | | | 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>
* s3: Fix some False/NULL hickupsVolker Lendecke2011-12-202-2/+2
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Dec 20 13:13:17 CET 2011 on sn-devel-104
* s3-libsmb: Don't duplicate kerberos service tickets.Andreas Schneider2011-12-151-5/+0
| | | | | | | | | | | This fixes bug #8628. Each time we do a client connection. Each time we call to function to get the service ticket from the cache we duplicate it. So with each connection we end up with one or three duplicated tickets. Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Thu Dec 15 19:30:42 CET 2011 on sn-devel-104
* Revert fac5c654e2fe17c2c11d150b16088e8a51f6be20Jeremy Allison2011-12-041-68/+19
| | | | | | | | | | s3: Add a fallback for missing open&x support in OS/X Lion This is now done inside the synchronous cli_open() wrapper function. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sun Dec 4 08:19:31 CET 2011 on sn-devel-104
* Move the callers that need to use the new cli_open() back to callingJeremy Allison2011-12-031-2/+2
| | | | it from cli_openx().
* Add cli_open() back as a synchronous wrapper function the callsJeremy Allison2011-12-032-0/+116
| | | | NtCreateX followed by openX() if NtCreateX is unsupported.
* Rename cli_open -> cli_openx. Prelude to replacing generic cli_open()Jeremy Allison2011-12-033-25/+25
| | | | with a call that uses NTCreateX in preference to OpenAndX.
* s3: Use autogenerated open_files.idlVolker Lendecke2011-12-021-0/+30
|
* Ensure we map our own Samba return of ERRSRV, ERRunknownsmbJeremy Allison2011-12-021-0/+1
| | | | on an unknown SMB request to NT_STATUS_NOT_IMPLEMENTED.
* After a discussion with Volker, sdd a backup_intent state to the client struct.Jeremy Allison2011-12-014-4/+20
| | | | | | | | This causes the backup_intent flags to be added to findfirst/findnext and ntcreate/nttrans_create calls. cli_set_backup_intent() sets the flag and returns the old value of its state.
* s3: Add some constVolker Lendecke2011-11-251-2/+2
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Fri Nov 25 10:21:07 CET 2011 on sn-devel-104
* s3:smb2cli: zero tid in smb2cli_tdis*Stefan Metzmacher2011-11-241-0/+6
| | | | metze
* s3:smb2cli: free session in smb2cli_logoff*Stefan Metzmacher2011-11-241-1/+7
| | | | metze
* s3:libsmb: make use of cli_tree_connect()Stefan Metzmacher2011-11-243-9/+11
| | | | metze
* s3:libsmb: add cli_tree_connect() for a generic tree connectStefan Metzmacher2011-11-242-0/+17
| | | | metze
* s3:smb2cli: remove unused smb2cli_sesssetup_ntlmssp*Stefan Metzmacher2011-11-242-213/+0
| | | | metze
* s3:libsmb: add SMB2 support to cli_session_setup()Stefan Metzmacher2011-11-241-20/+122
| | | | metze
* s3:libsmb: implement cli_trans* on top of smb1cli_trans*Stefan Metzmacher2011-11-241-687/+120
| | | | metze
* s3:smb2cli: remove unused smb2cli_negprot()Stefan Metzmacher2011-11-242-32/+0
| | | | metze
* s3:smb2cli: pass struct smbXcli_conn directly to smb2cli_req_create/_send()Stefan Metzmacher2011-11-248-75/+15
| | | | metze
* s3:libsmb: implement cli_state based functions on top of ↵Stefan Metzmacher2011-11-2410-1633/+243
| | | | | | smbXcli_conn/smbXcli_req metze
* s3:smb2cli: add forward declaration for struct cli_stateStefan Metzmacher2011-11-241-0/+1
| | | | metze
* s3:smb2cli: make smb2cli_session_setup_send/recv non-staticStefan Metzmacher2011-11-242-5/+23
| | | | metze
* s3:smb2cli: make use of smbXcli_session and setup the session key for SMB2 ↵Stefan Metzmacher2011-11-249-65/+176
| | | | | | signing metze
* s3:smb2cli: implement smb2cli_negprot() on top of smbXcli_negprot()Stefan Metzmacher2011-11-242-151/+15
| | | | metze
* smbXcli: pass client_guid to smbXcli_conn_create()Stefan Metzmacher2011-11-241-1/+2
| | | | metze
* s3:smb2cli: replace smb2cli_base.c code with the more generic smbXcli_base.c ↵Stefan Metzmacher2011-11-242-780/+35
| | | | | | code metze
* s3:libsmb: close fd on error in cli_connect_nb()Stefan Metzmacher2011-11-211-0/+2
| | | | metze
* s3:libsmb: verify num_setup for SMBnttrans in cli_pull_trans()Stefan Metzmacher2011-11-181-0/+4
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Nov 18 15:13:52 CET 2011 on sn-devel-104
* s3:libsmb: fix compiler warning in cli_pull_trans()Stefan Metzmacher2011-11-181-1/+3
| | | | metze
* s3:libsmb: only align unicode pipe_name (bug #8586)Stefan Metzmacher2011-11-181-7/+11
| | | | metze
* s3-libsmb/passchange.c: remove some cli_nt_error() callsBjörn Baumbach2011-11-161-2/+0
| | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Nov 16 20:36:11 CET 2011 on sn-devel-104
* s3-libsmb/clidfs.c: remove cli_nt_error()Björn Baumbach2011-11-161-2/+2
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-libsmb: introduce option to disable dos error mappingBjörn Baumbach2011-11-162-1/+3
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>