summaryrefslogtreecommitdiff
path: root/source3/libsmb
AgeCommit message (Collapse)AuthorFilesLines
2012-04-16s3:libsmb: fix anonymous session setups against windows serversStefan Metzmacher1-0/+16
Windows server doesn't set the SMB2_SESSION_FLAG_IS_GUEST nor SMB2_SESSION_FLAG_IS_NULL flag. This fix makes sure we don't try to verify a signature on the final session setup response. metze
2012-04-16s3:libsmb/ntlmssp: an empty string should mean no passwordStefan Metzmacher1-1/+1
metze
2012-04-16libcli/smb: move smb2cli_session_setup_*() prototypes to the code.Stefan Metzmacher1-15/+0
metze
2012-04-12clikrb5: Move pure krb wrapper functions from libads to clikrb5.Simo Sorce1-0/+142
Signed-off-by: Andreas Schneider <asn@samba.org>
2012-04-06build: Remove SMB_OFF_T, replace with off_tAndrew Bartlett9-47/+47
Now that we always require a 64 bit off_t, we no longer need SMB_OFF_T. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Apr 6 01:47:43 CEST 2012 on sn-devel-104
2012-04-03s3-krb5 Remove unused get_kvno_from_ap_req()Andrew Bartlett1-13/+0
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-04-03s3-krb5 Remove unused get_enctype_from_ap_reqAndrew Bartlett1-10/+0
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-04-03s3-krb5: Remove unused smb_krb5_get_keyinfo_from_ap_req()Andrew Bartlett1-26/+0
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-04-03s3-krb5: Remove unused get_key_from_keytabAndrew Bartlett1-59/+0
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-04-03s3-krb5: remove unused unwrap_pac()Andrew Bartlett1-48/+0
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-04-03s3-krb5: remove unused get_auth_data_from_tktAndrew Bartlett1-66/+0
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-04-03s3-krb5: Remove unused get_authtime_from_tktAndrew Bartlett1-9/+0
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-04-03s3-krb5: Remove unused krb5_rd_req_return_keyblock_from_keytabAndrew Bartlett1-55/+0
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-04-03s3-krb5: Remove unused get_principal_from_tktAndrew Bartlett1-9/+0
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-04-03s3-libsmb: Remove unused spnego_parse_krb5_wrap()Andrew Bartlett1-44/+0
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-04-03s3-auth: Order GENSEC mechs by priority, krb5 before NTLMSSPAndrew Bartlett1-2/+4
Otherwise, really simple clients (such as the current ntlm_auth gss-spnego client) will not select krb5. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-04-02s3: Notifies should never time outVolker Lendecke1-0/+8
Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Mon Apr 2 12:31:17 CEST 2012 on sn-devel-104
2012-03-31Make sure we claim that a DACL or SACL is present if the SD says soRichard Sharpe1-2/+2
Autobuild-User: Richard Sharpe <sharpe@samba.org> Autobuild-Date: Sat Mar 31 09:34:36 CEST 2012 on sn-devel-104
2012-03-25smb2: Move smb2cli session setup code to cli_smb_common.Jelmer Vernooij1-207/+0
2012-03-24lib/util: Remove obsolete sys_getpid() and sys_fork().Jelmer Vernooij2-2/+2
The performance of these is minimal (these days) and they can return invalid results when used as part of applications that do not use sys_fork(). Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Mar 24 21:55:41 CET 2012 on sn-devel-104
2012-03-22s3: Add sync cli_notifyVolker Lendecke2-0/+39
2012-03-22s3-libsmb: Fix parsing a notify responseVolker Lendecke1-1/+1
2012-03-22s3: rename "len"->"next", according to wiresharkVolker Lendecke1-3/+3
2012-03-15s3-krb5: Remove GSS_WRAP_IOV conditionalAndrew Bartlett1-1/+1
We already confirm that we have this functionality before we set HAVE_KRB5 at configure time. Andrew Bartlett
2012-03-09auth/ntlmssp: Remove gensec_security element from gensec_ntlmssp_stateAndrew Bartlett1-3/+3
This just means there is one less pointer to ensure we initialise. Andrew Bartlett
2012-03-03s3:libsmb: pass smb2 capabilities and client guid in cli_state_create()Stefan Metzmacher1-2/+7
metze Signed-off-by: Michael Adam <obnox@samba.org>
2012-03-03smbXcli: add the possiblilty to negotiate client capabilites in smb >= 2.2Michael Adam1-1/+2
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
2012-03-02s3-libsmb: Initialise ticket to ensure we do not invalid memoryAndrew Bartlett1-0/+1
The free is however a talloc_free(), which has additional protection against freeing the wrong thing. Andrew Bartlett Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Mar 2 01:45:19 CET 2012 on sn-devel-104
2012-03-01Move to talloc from malloc.Jeremy Allison1-3/+7
2012-03-01Fix mixup between talloc/malloc.Jeremy Allison1-1/+1
2012-02-28s3:libsmb:smb2: pass previous session ID to session setup, not previous sessionMichael Adam3-10/+4
We only need the session, and under some circumstances, it might complicate things for the caller to have to cope with the whole structure (talloc...).
2012-02-27libcli/smb/smbXcli: maintain smb2 channel_signing_key separate from the ↵Stefan Metzmacher1-2/+2
signing_key The signing_key is fix across all channels and is used for session setups on a channel binding. Note: - the last session setup response is signed with the new channel signing key. - the reauth session setups are signed with the channel signing key. It's also not needed to remember the main session key. metze
2012-02-26s3: Remove pointless parenthesesVolker Lendecke1-1/+1
Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Sun Feb 26 11:10:15 CET 2012 on sn-devel-104
2012-02-24s3-libsmb: Remove unused spnego_parse_auth_and_micAndrew Bartlett1-40/+0
2012-02-24s3-libsmb: Remove unused ntlmssp_server_start()Andrew Bartlett1-121/+0
2012-02-23s3-libsmb: Remove unused spnego functionsAndrew Bartlett1-109/+0
2012-02-18Fix a bunch of "unused variable" warnings.Jeremy Allison1-4/+3
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Feb 18 06:22:40 CET 2012 on sn-devel-104
2012-02-17auth: Make more of the ntlmssp code private or staticAndrew Bartlett1-0/+1
Now that there is only one gensec_ntlmssp server, some of these functions can be static For the rest, put the implemtnation of the gensec_ntlmssp code into ntlmssp_private.h Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-02-17auth: Move the rest of the source4 gensec_ntlmssp code to the top levelAndrew Bartlett1-6/+6
The ntlmssp_server code will be in common shortly, and aside from a symbol name or two, moving the client code causes no harm and makes less mess. We will also get the client code in common very soon. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-02-16Rename obscure defined constants.Christopher R. Hertel (crh)2-8/+8
Replaced the undescriptive SMB_PORT1 and SMB_PORT2 defined constants with the slightly more descriptive names NBT_SMB_PORT and TCP_SMB_PORT. Also replaced several hard-coded references to the well-known port numbers (139 and 445, respectively) as appropriate. Small changes to clarify some comments regarding the two transport types. Signed-off-by: Simo Sorce <idra@samba.org> Autobuild-User: Simo Sorce <idra@samba.org> Autobuild-Date: Thu Feb 16 08:29:41 CET 2012 on sn-devel-104
2012-02-10s3-libsmb: Remove unused kerberos_set_creds_enctype()Andrew Bartlett1-11/+0
Also remove the unused configure tests for krb5_c_enctype_compare. Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html Andrew Bartlett
2012-02-10s3-libsmb: Remove unused kerberos_compatible_enctypesAndrew Bartlett1-10/+0
Also remove the unused configure tests for krb5_c_enctype_compare. Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html Andrew Bartlett
2012-02-10s3-libsmb: Remove unused smb_krb5_mk_error()Andrew Bartlett1-37/+0
Also remove now-unused configure checks for krb5_mk_error(). Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html Andrew Bartlett
2012-02-09s3-libsmb: Remove obsolete smb_krb5_locate_kdc.Andreas Schneider1-89/+0
Signed-off-by: Günther Deschner <gd@samba.org> Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Thu Feb 9 14:58:57 CET 2012 on sn-devel-104
2012-02-02Allow a SACL to be sent in cli_set_secdesc().Jeremy Allison1-0/+2
2012-02-01s3-libsmb: Remove dead gssapi code.Andreas Schneider1-112/+0
Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Wed Feb 1 23:29:44 CET 2012 on sn-devel-104
2012-02-01s3-lib: Fix util_cmdline which doesn't use popt.Andreas Schneider3-2/+3
This creates its own header file for util_cmdline so it doesn't need to link against popt. This should fix linking on FreeBSD.
2012-01-31libcli/smb: Convert struct smb_trans_enc_state to tallocAndrew Bartlett1-25/+7
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-31s3-libsmb: Remove unused enum smb_trans_enc_typeAndrew Bartlett1-4/+3
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-31s3-libsmb: Use gensec_spnego in smb seal clientAndrew Bartlett1-41/+6
This is intead of the inline, manual spnego code currently in use. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>