summaryrefslogtreecommitdiff
path: root/source3/libsmb
AgeCommit message (Collapse)AuthorFilesLines
2012-01-27s3-libsmb Do not limit read replies to NBT packet sizesAndrew Bartlett1-1/+1
With the posix extensions, we can read 16MB at a time, so we need to check the full size of the packet, not the size rounded down to the old NBT limit. Andrew Bartlett Signed-off-by: Jeremy Allison <jra@samba.org>
2012-01-20s3-libsmb: use struct gensec_security directlyAndrew Bartlett1-4/+4
This is rather than via a now one-element union. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-20s3-libcli Change krb5 smb sealing to call via gensec and gensec_gseAndrew Bartlett1-96/+50
This also fixes the support for smb sealing with krb5 in make test, as this now relies on secrets.tdb rather than /etc/krb5.keytab. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-18s3-librpc: pass struct ndr_interface_table down to ↵Andrew Bartlett1-1/+1
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-18s3-libsmb Use the gse_krb5 gensec module as clientAndrew Bartlett1-1/+6
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-11s3-libsmb: split out auth_generic client functions into auth_generic.cAndrew Bartlett2-128/+155
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-11s3-librpc Rename and rework cli_rpc_pipe_open_ntlmssp() to be genericAndrew Bartlett1-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>
2012-01-10krb5: Require krb5_set_real_time is available to build with krb5Andrew Bartlett1-20/+0
2012-01-10krb5: Require krb5_get_renewed_creds be available to build with krb5Andrew Bartlett1-49/+4
2012-01-10krb5: Require krb5_get_init_creds_opt_alloc/free for build with krb5Andrew Bartlett1-29/+0
This also assumes the modern API with a krb5_context argument. Andrew Bartlett
2012-01-10krb5: Require krb5_fwd_tgt_creds to be available to build with krb5Andrew Bartlett1-3/+3
2012-01-10krb5: Require krb5_c_enctype_compare is available to build with krb5Andrew Bartlett1-4/+0
2012-01-09s3: Remove an unused labelVolker Lendecke1-3/+0
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Jan 9 23:07:32 CET 2012 on sn-devel-104
2012-01-09s3-libsmb: Do not look up FQDN or use host/ for krb5 encrypted CIFSAndrew Bartlett1-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
2012-01-09s3-libsmb: match the rest of Samba3 in kerberos name selection in smb sealingAndrew Bartlett1-17/+16
This mirrors 860ad734ba77238d187520f72afcbdc1c73d94ef which in turn mirrors the behaviour of the libsmb client code at session setup time. Andrew Bartlett
2012-01-06s3-ntlmssp Remove unused ntlmssp_set_hashes() and do not set an invalid LM hashAndrew Bartlett1-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
2012-01-06ntlmssp: merge initial packet implementationsAndrew Bartlett1-8/+21
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-06s3-libsmb Make auth_ntlmssp client more genericAndrew Bartlett2-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>
2012-01-06s3-libsmb Use gensec_settings to set s3 ntlmssp client backendAndrew Bartlett1-2/+10
This prepares us for making the code generic to multiple mechansims Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-05s3-libads Factor out a new routine ↵Andrew Bartlett1-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>
2011-12-22s3-auth rename auth_ntlmssp_state -> auth_generic_stateAndrew Bartlett2-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>
2011-12-20s3: Fix some False/NULL hickupsVolker Lendecke2-2/+2
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Dec 20 13:13:17 CET 2011 on sn-devel-104
2011-12-15s3-libsmb: Don't duplicate kerberos service tickets.Andreas Schneider1-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
2011-12-04Revert fac5c654e2fe17c2c11d150b16088e8a51f6be20Jeremy Allison1-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
2011-12-03Move the callers that need to use the new cli_open() back to callingJeremy Allison1-2/+2
it from cli_openx().
2011-12-03Add cli_open() back as a synchronous wrapper function the callsJeremy Allison2-0/+116
NtCreateX followed by openX() if NtCreateX is unsupported.
2011-12-03Rename cli_open -> cli_openx. Prelude to replacing generic cli_open()Jeremy Allison3-25/+25
with a call that uses NTCreateX in preference to OpenAndX.
2011-12-02s3: Use autogenerated open_files.idlVolker Lendecke1-0/+30
2011-12-02Ensure we map our own Samba return of ERRSRV, ERRunknownsmbJeremy Allison1-0/+1
on an unknown SMB request to NT_STATUS_NOT_IMPLEMENTED.
2011-12-01After a discussion with Volker, sdd a backup_intent state to the client struct.Jeremy Allison4-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.
2011-11-25s3: Add some constVolker Lendecke1-2/+2
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Fri Nov 25 10:21:07 CET 2011 on sn-devel-104
2011-11-24s3:smb2cli: zero tid in smb2cli_tdis*Stefan Metzmacher1-0/+6
metze
2011-11-24s3:smb2cli: free session in smb2cli_logoff*Stefan Metzmacher1-1/+7
metze
2011-11-24s3:libsmb: make use of cli_tree_connect()Stefan Metzmacher3-9/+11
metze
2011-11-24s3:libsmb: add cli_tree_connect() for a generic tree connectStefan Metzmacher2-0/+17
metze
2011-11-24s3:smb2cli: remove unused smb2cli_sesssetup_ntlmssp*Stefan Metzmacher2-213/+0
metze
2011-11-24s3:libsmb: add SMB2 support to cli_session_setup()Stefan Metzmacher1-20/+122
metze
2011-11-24s3:libsmb: implement cli_trans* on top of smb1cli_trans*Stefan Metzmacher1-687/+120
metze
2011-11-24s3:smb2cli: remove unused smb2cli_negprot()Stefan Metzmacher2-32/+0
metze
2011-11-24s3:smb2cli: pass struct smbXcli_conn directly to smb2cli_req_create/_send()Stefan Metzmacher8-75/+15
metze
2011-11-24s3:libsmb: implement cli_state based functions on top of ↵Stefan Metzmacher10-1633/+243
smbXcli_conn/smbXcli_req metze
2011-11-24s3:smb2cli: add forward declaration for struct cli_stateStefan Metzmacher1-0/+1
metze
2011-11-24s3:smb2cli: make smb2cli_session_setup_send/recv non-staticStefan Metzmacher2-5/+23
metze
2011-11-24s3:smb2cli: make use of smbXcli_session and setup the session key for SMB2 ↵Stefan Metzmacher9-65/+176
signing metze
2011-11-24s3:smb2cli: implement smb2cli_negprot() on top of smbXcli_negprot()Stefan Metzmacher2-151/+15
metze
2011-11-24smbXcli: pass client_guid to smbXcli_conn_create()Stefan Metzmacher1-1/+2
metze
2011-11-24s3:smb2cli: replace smb2cli_base.c code with the more generic smbXcli_base.c ↵Stefan Metzmacher2-780/+35
code metze
2011-11-21s3:libsmb: close fd on error in cli_connect_nb()Stefan Metzmacher1-0/+2
metze
2011-11-18s3:libsmb: verify num_setup for SMBnttrans in cli_pull_trans()Stefan Metzmacher1-0/+4
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Nov 18 15:13:52 CET 2011 on sn-devel-104
2011-11-18s3:libsmb: fix compiler warning in cli_pull_trans()Stefan Metzmacher1-1/+3
metze