summaryrefslogtreecommitdiffstats
path: root/source3/libsmb
Commit message (Collapse)AuthorAgeFilesLines
* s3: Fix a memleak in receive_getdc_responseVolker Lendecke2011-01-021-15/+22
| | | | | | | | It's the free_packet() that was missing. On the way, I've changed the "return false;" to a "goto fail;", which makes the patch a bit larger. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Jan 2 14:27:56 CET 2011 on sn-devel-104
* Fix memory leak I introduced when refactoring unexpected packet code.Jeremy Allison2011-01-021-0/+1
| | | | | | | | | Found by Volker. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sun Jan 2 06:11:13 CET 2011 on sn-devel-104
* s3: Remove unused mem_ctx arg from set_getdc_requestVolker Lendecke2011-01-013-5/+3
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat Jan 1 23:00:24 CET 2011 on sn-devel-104
* s3: Factor out prep_getdc_requestVolker Lendecke2011-01-011-31/+50
|
* s3: cli_send_mailslot -> cli_prep_mailslotVolker Lendecke2011-01-011-31/+28
|
* s3: Fix some nonempty blank linesVolker Lendecke2011-01-011-2/+2
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat Jan 1 16:03:23 CET 2011 on sn-devel-104
* s3: Add some const to receive_getdc_responseVolker Lendecke2010-12-312-2/+2
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Fri Dec 31 14:48:57 CET 2010 on sn-devel-104
* s3: Add some const to send_getdc_requestVolker Lendecke2010-12-312-2/+2
|
* s3: Fix some nonempty blank linesVolker Lendecke2010-12-312-77/+77
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Fri Dec 31 10:58:31 CET 2010 on sn-devel-104
* s3: Fix two uninitialized variablesVolker Lendecke2010-12-301-1/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Dec 30 12:52:47 CET 2010 on sn-devel-104
* s3: Allow more control over smbsock_[any_]connectVolker Lendecke2010-12-291-25/+88
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Dec 29 23:30:44 CET 2010 on sn-devel-104
* s3: Make name_query return NTSTATUSVolker Lendecke2010-12-281-20/+26
| | | | | | | Also use talloc for the result Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Dec 28 18:21:05 CET 2010 on sn-devel-104
* s3: Make node_status_query return NTSTATUSVolker Lendecke2010-12-281-20/+31
| | | | | | | Also make the result talloc'ed Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Dec 28 13:46:59 CET 2010 on sn-devel-104
* s3: Remove an ancient typedefVolker Lendecke2010-12-281-6/+6
|
* s3: Fix some typosVolker Lendecke2010-12-281-2/+3
|
* s3:libsmb: use 16 zero bytes as channel binding checksum in the gssapi ↵Stefan Metzmacher2010-12-231-20/+10
| | | | | | | | | | | | | | checksum (bug #7883) This fixes SMB session setups with kerberos against some closed source SMB servers. The new behavior matches heimdal and mit. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Dec 23 09:38:43 CET 2010 on sn-devel-104
* s3: Retry *SMBSERVER in nb_connectVolker Lendecke2010-12-221-2/+47
|
* s3: Add smbsock_any_connectVolker Lendecke2010-12-221-1/+221
|
* s3: Add an async smbsock_connectVolker Lendecke2010-12-221-0/+308
| | | | | | This connects to 445 and after 5 milliseconds also to 139. It treats a netbios session setup failure as equivalent as a TCP connect failure. So if 139 is faster but fails the nb session setup, the 445 still has the chance to succeed.
* s3: Add async cli_session_requestVolker Lendecke2010-12-221-0/+127
| | | | This does not do the redirects, but I think that might be obsolete anyway
* s3: Add some const to name_mangle()Volker Lendecke2010-12-221-1/+1
|
* s3:libsmb/namequery.c: don't leak 'pserver'Stefan Metzmacher2010-12-221-2/+2
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Dec 22 09:54:31 CET 2010 on sn-devel-104
* s3:cli_np_tstream: if SMBtrans is desired, the readv needs to wait for the ↵Stefan Metzmacher2010-12-211-23/+70
| | | | | | | | | last writev chunk. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Dec 21 17:43:06 CET 2010 on sn-devel-104
* s3/s4:auth SPNEGO - adaptions for the removed "const" from OIDsMatthias Dieter Wallnöfer2010-12-211-3/+1
| | | | This is needed in order to suppress warnings.
* s3: Remove unused "retry" from cli_start_connectionVolker Lendecke2010-12-201-11/+2
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Dec 20 17:58:33 CET 2010 on sn-devel-104
* s3: Remove unused "retry" from cli_full_connectionVolker Lendecke2010-12-203-8/+6
|
* s3: Remove some unused variablesVolker Lendecke2010-12-201-2/+1
|
* s3: netsamlogon_clear_cached_user only needs the SIDVolker Lendecke2010-12-191-8/+2
|
* s3: Remove two pointless slprintf callsVolker Lendecke2010-12-191-4/+4
|
* s3:libsmb: add tstream_cli_np_get_cli_state()Stefan Metzmacher2010-12-152-0/+10
| | | | metze
* s3:libsmb: add tstream_cli_np_set_timeout()Stefan Metzmacher2010-12-152-0/+18
| | | | metze
* s3:libsmb: add tstream_cli_np_use_trans() and the needed logicStefan Metzmacher2010-12-152-0/+183
| | | | | | | tstream_cli_np_use_trans() defers the next tstream_writev to the next tstream_readv and send both as an SMBtrans request. metze
* s3:libsmb: add tstream_is_cli_np()Stefan Metzmacher2010-12-152-0/+15
| | | | metze
* s3:libsmb: add cli_np_tstream.cStefan Metzmacher2010-12-152-0/+822
| | | | | | | | This abstracts a named pipe over smb as a tstream, which will make it easier to implement the dcerpc layer in a more generic way. metze
* s3-libsmb Improve error message when denying LM encryptionAndrew Bartlett2010-12-141-9/+9
| | | | | | | Now that 'client ntlmv2 auth = yes' is the default, make it more clear what options a user may need to enable to get this to work. Andrew Bartlett
* s3-libsmb Don't ever ask for machine$ principals as a target.Andrew Bartlett2010-12-101-30/+6
| | | | | | | | | | | | It is never correct to ask for a machine$ principal as the target of a kerberos connection. You should always connect via the servicePrincipalName. This current code appears to have built up from a series of minimal changes, as the codebase adapted the to lack of a SPNEGO principal from Windows 2008. Andrew Bartlett
* s3-libads Default to NOT using the server-supplied principal from SPNEGOAndrew Bartlett2010-12-101-3/+2
| | | | | | | | | | | | | | | | | This principal is not supplied by later versions of windows, and using it opens up some oportunities for man in the middle attacks. (Becuase it isn't the name being contacted that is verified with the KDC). This adds the option 'client use spnego principal' to the smb.conf (as used in Samba4) to control this behaivour. As in Samba4, this defaults to false. Against 2008 servers, this will not change behaviour. Against earlier servers, it may cause a downgrade to NTLMSSP more often, in environments where server names are not registered with the KDC as servicePrincipalName values. Andrew Bartlett
* s3: Add cli_shadow_copy_dataVolker Lendecke2010-11-301-0/+149
|
* s3: Remove a #define used just onceVolker Lendecke2010-11-201-2/+2
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat Nov 20 15:28:26 CET 2010 on sn-devel-104
* s3: Make winbind recover from a signing errorVolker Lendecke2010-11-181-0/+2
| | | | | | | | | When winbind sees a signing error on the smb connection to a DC (for whatever reason, our bug, network glitch, etc) it should recover properly. The "old" code in clientgen.c just closed the socket in this case. This is the right thing to do, this connection is spoiled anyway. The new, async code did not do this so far, which led to the code in winbindd_cm.c not detect that we need to reconnect.
* s3: Convert cli_get_posix_fs_info() to cli_trans()Volker Lendecke2010-11-142-55/+36
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Nov 14 10:24:02 UTC 2010 on sn-devel-104
* Fix the unexpected.tdb database problem. Change nmbd to store theJeremy Allison2010-11-145-15/+179
| | | | | | | | | | | | | | | | | | | | | transaction id of packets it was requested to send via a client, and only store replies that match these ids. On the client side change clients to always attempt to ask nmbd first for name_query and node_status calls, and then fall back to doing socket calls if we can't talk to nmbd (either nmbd is not running, or we're not root and cannot open the messaging tdb's). Fix readers of unexpected.tdb to delete packets they've successfully read. This should fix a long standing problem of unexpected.tdb growing out of control in noisy NetBIOS envioronments with lots of bradcasts, yet still allow unprivileged client apps to work mostly as well as they already did (nmblookup for example) in an environment when nmbd isn't running. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sun Nov 14 05:22:45 UTC 2010 on sn-devel-104
* s3: Well... Fix a stupid errorVolker Lendecke2010-11-111-1/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Nov 11 18:54:00 UTC 2010 on sn-devel-104
* s3: Make cli_set_ea_fnum return NTSTATUSVolker Lendecke2010-11-111-5/+5
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Nov 11 16:59:27 UTC 2010 on sn-devel-104
* s3: Make cli_set_ea_path return NTSTATUSVolker Lendecke2010-11-111-3/+5
|
* s3: Remove two pointless variablesVolker Lendecke2010-11-111-5/+4
|
* s3: Convert cli_set_ea() to cli_trans()Volker Lendecke2010-11-111-40/+35
|
* s3: Convert cli_dfs_get_referral to cli_transVolker Lendecke2010-11-111-31/+30
|
* s3: cli_dfs_check_error does not need to depend on cli->inbufVolker Lendecke2010-11-111-10/+13
|
* s3: Make split_dfs_path return boolVolker Lendecke2010-11-111-11/+27
|