summaryrefslogtreecommitdiffstats
path: root/source/libsmb
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Fix an uninitialized variable warning"Karolin Seeger2008-11-171-2/+0
| | | | This reverts commit 2e65d8bce755ddfa35bae5ad4c5107db7e18515a.
* Fix an uninitialized variable warningVolker Lendecke2008-10-061-0/+2
| | | | | Not sure if we can ever not get domain and dns_domain, but gcc complained (cherry picked from commit e56b0b947a5c357c4e84b330c38d7a7f569be201)
* Fix bug #5751 cannot show ACLs on DFS reported by SATOH Fumiyasu ↵Jeremy Allison2008-09-151-34/+55
| | | | | | | | <fumiyas@osstech.co.jp>. Fix for smbclient and libsmbclient. Jeremy. (cherry picked from commit 71d00ef2888834ebed2a387a111a95bac1d227ad)
* Fix blocker bug 5745 kerberos authentication with (lib)smbclient is broken.Jeremy Allison2008-09-111-8/+13
| | | | | Jeremy. (cherry picked from commit 738729cad0b88a2f453d61d38e1088003afd0a9e)
* Do proper error handling if the socket is closedVolker Lendecke2008-09-081-2/+8
| | | | | | | | | This is a step in fixing bug 5707. Thanks to Igor Galić <i.galic@brainsware.org> for reporting! Volker (cherry picked from commit 1558a5c1977b1f87600ec487238fa8db009f41fd)
* Correct the netsamlogon_clear_cached_user function.Ephi Dror2008-08-281-36/+18
| | | | (cherry picked from commit 85dd9c64ca2ffa31d02ee10a3745fd596e80786e)
* Fix Bug #5710 and make machine account password changing work again.Günther Deschner2008-08-281-23/+52
| | | | | | | | | | When we negotiated NETLOGON_NEG_PASSWORD_SET2 we need to use NetrServerPasswordSet2 to change the machine password. Tested with NT4, W2k, W2k3 and W2k8. Guenther (cherry picked from commit 8ae7040a5e64f1a1d2088aeca1dab90470455d8a)
* Revert "Fix Bug #5710 and make machine account password changing work again."Karolin Seeger2008-08-271-52/+23
| | | | This reverts commit 6d42b1e372b67eba83dbd5200bfb131b74cac180.
* Fix Bug #5710 and make machine account password changing work again.Günther Deschner2008-08-221-23/+52
| | | | | | | | | | When we negotiated NETLOGON_NEG_PASSWORD_SET2 we need to use NetrServerPasswordSet2 to change the machine password. Tested with NT4, W2k, W2k3 and W2k8. Guenther (cherry picked from commit 8ae7040a5e64f1a1d2088aeca1dab90470455d8a)
* Fix length error in wrapping spnego blob. Karoling this needs to be in 3.2.2 ↵samba-3.2.2Igor Mammedov2008-08-191-1/+1
| | | | | | (sorry). (cherry picked from commit e2caa65a698ca7109aa44656ff9399104cf0663b)
* Prevent NT_STATUS 0xF1000000 errors from appearing whenJim McDonough2008-08-141-0/+6
| | | | | | | dos errors are used and there is no error. It should be mapped directly to NT_STATUS_OK. smbclient to older servers didn't work. (cherry picked from commit 43054b199cb2a5f12c8e0c2bb14cf2328a945152)
* Fix bug 5686 - libsmbclient segfaults with more than one SMBCCTX.Jeremy Allison2008-08-131-22/+16
| | | | | | | | | | Here is a patch to allow many subsystems to be re-initialized. The only functional change I made was to remove the null context tracking, as the memory allocated here is designed to be left for the complete lifetime of the program. Freeing this early (when all smb contexts are destroyed) could crash other users of talloc. Jeremy. (cherry picked from commit 4779f1efccc8364fd8b3ba446aa96ba0bddec689)
* fix build warning.Günther Deschner2008-08-121-1/+1
| | | | | Guenther (cherry picked from commit eb7c3dc2ca92ef7885eef8f89e4397b5df486b65)
* One more build fix. Ensure we have KRB5_AUTH_CONTEXT_USE_SUBKEY defined ↵Jeremy Allison2008-08-111-3/+3
| | | | | | | before we compile the new code. Jeremy. (cherry picked from commit fc309e41a45079d58c03dc6fb0c35ceb4517f0ae)
* Try and fix the build for systems that don't have ↵Jeremy Allison2008-08-111-3/+3
| | | | | | | krb5_auth_con_set_req_cksumtype(). Jeremy. (cherry picked from commit 02862653724355b32e0c6e38e0ebcbb1a9954759)
* Add Derrick Schommer's <dschommer@F5.com> kerberos delegation patch. SomeJeremy Allison2008-08-112-3/+185
| | | | | | work by me and advice by Love. Jeremy. (cherry picked from commit 5f419135ba1acae6bc37692fa77ae1162b62e0e3)
* Fix bug #5675 with a varient of Tim Waugh's patch,Jeremy Allison2008-08-111-3/+2
| | | | | | as proposed by James Peach. Jeremy. (cherry picked from commit 1ee1e8306f3578c19fe015145eb8da1013f7b820)
* Release still reachable memory if the smbclient context is freed.Andreas Schneider2008-07-161-0/+19
| | | | | Signed-off-by: Andreas Schneider <anschneider@suse.de> (cherry picked from commit 88c9cf2fdc8f3d704f7f27c25ef6dc6940d451d3)
* Two more fixes from Jim Brown <jim.brown@miami.edu> for SGI compiler warnings.Jeremy Allison2008-07-061-1/+6
| | | | | Jeremy. (cherry picked from commit 8dd833b908cc8d4c0aa34cdece014d0e160aaf9e)
* Fix gcc warnings at -O3.Jeremy Allison2008-06-271-1/+2
| | | | | Jeremy. (cherry picked from commit 096ff390a24ce971c9a207493dc1b5d9f88518b6)
* More correct fix (hopefully :-) for any memory leaks.Jeremy Allison2008-06-171-1/+17
| | | | | | | | | | | Jerry promised to check :-). Vl also please review. Jeremy. Okay -- I have to admit that this is the better fix. With my fixes I got a double-free when using security=domain. Sorry... Volker (cherry picked from commit 3b0d688b1b16c9054340d08986d0fa91f7fff9ad)
* Manually merge Steven Danneman's patch for SPNEGO auth to a trustedGerald W. Carter2008-06-091-20/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Win2008 domain (merged from v3-0-test). commit 8dc4e979776aae0ecaa74b51dc1eac78a7631405 Author: Steven Danneman <sdanneman@isilon.com> Date: Wed May 7 13:34:26 2008 -0700 spnego SPN fix when contacting trusted domains cli_session_setup_spnego() was not taking into consideration the situation where we're connecting to a trusted domain, specifically one (like W2K8) which doesn't return a SPN in the NegTokenInit. This caused two problems: 1) When guessing the SPN using kerberos_get_default_realm_from_ccache() we were always using our default realm, not the realm of the domain we're connecting to. 2) When falling back on NTLMSSP for authentication we were passing the name of the domain we're connecting to for use in our credentials when we should be passing our own workgroup name. The fix for both was to split the single "domain" parameter into "user_domain" and "dest_realm" parameters. We use the "user_domain" parameter to pass into the NTLM call, and we used "dest_realm" to create an SPN if none was returned in the NegTokenInit2 packet. If no "dest_realm" is provided we assume we're connecting to our own domain and use the credentials cache to build the SPN. Since we have a reasonable guess at the SPN, I removed the check that defaults us directly to NTLM when negHint is empty. (cherry picked from b78b14c88e8354aadf9ba7644bdb1c29245fe419) (cherry picked from commit f1e6b40bbc8ce249e2f2a85a1d57ed6b8141e3bb)
* Fix bug reported by David Eisner <deisner@gmail.com>. When allocating cliJeremy Allison2008-06-031-3/+3
| | | | | | | buffers for large read/write - make sure we take account of the large read/write SMB headers as well as the buffer space. Jeremy. (cherry picked from commit 220bb029a9f32a011c59013076eaeb3a86dc8843)
* Memory leak fixes from Chere Zhou <czhou@isilon.com>.Jeremy Allison2008-05-311-0/+1
| | | | | Jeremy. (cherry picked from commit a48df9ce84d7b365465e70d8ec27d9b5fcf59b45)
* minor memory leak fixChere Zhou2008-05-311-0/+1
| | | | (cherry picked from commit e7a295fa27f4bc7c0661873ef0d9661cfa9b14d0)
* Security fix for CVE-2008-1105: Boundary failure when parsing SMB responsesJeremy Allison2008-05-302-191/+3
| | | | | | can result in a buffer overrun. Jeremy. (cherry picked from commit 353d9cb0fdd941781698c6b334db5f2997eef991)
* dsgetdcname: use family (instead of sa_family).Günther Deschner2008-05-291-1/+1
| | | | | | Guenther (cherry picked from commit 355fb81e9e42e507717f33a11793258db9169199) (cherry picked from commit bcf721770d2a76df85737596d6b73e9e6d982c32)
* Eliminate global variable in_client.Karolin Seeger2008-05-261-2/+0
| | | | | | | Should have been removed with b7f34e7ef2907b498a0645ce68f2773ed7d60cdc. Maybe lost because of picking cherries in the wrong order. Karolin
* dsgetdcname: store client sitename for mailslot and cldap replies.Günther Deschner2008-05-221-0/+6
| | | | | Guenther (cherry picked from commit a01ed719c31998620927dc9b1664ba8e36bd9b21)
* dsgetdcname: add site support.Günther Deschner2008-05-221-4/+14
| | | | | Guenther (cherry picked from commit e305368538eaa72e3008a5517db3708936924297)
* dsgetdcname: check for invalid sitename/flag combinations.Günther Deschner2008-05-221-2/+7
| | | | | Guenther (cherry picked from commit 255e509474cae92802e90613ccaddb6627ee77cd)
* dsgetdcname: In case we didn't get a mailslot reply, don't cache the nodestatus.Günther Deschner2008-05-221-1/+3
| | | | | Guenther (cherry picked from commit 12e47be02f93e2f41af5772f6a83568b3574d032)
* mailslot: Also pick domain name and pdc name from type 15 cldap reply.Günther Deschner2008-05-221-1/+22
| | | | | Guenther (cherry picked from commit 836877c4005ba081c0a4cc97726830d6dbd62d34)
* dsgetdcname: add reminder that we need to support ipv6 here once we know how.Günther Deschner2008-05-221-2/+4
| | | | | Guenther (cherry picked from commit 4b3617bf505a835a6d4bb9b80c4ad837a2082dea)
* dsgetdcname: make use of nbt_cldap_netlogon_15.Günther Deschner2008-05-221-8/+91
| | | | | Guenther (cherry picked from commit 5b0eda98f3d127399770f7a037ad3277dbe23393)
* dsgetdcname: use existing messaging_context if possible.Günther Deschner2008-05-221-6/+16
| | | | | Guenther (cherry picked from commit 7889516a384c155a9045aad4409c041fddd0d98d)
* dsgetdcname: the forest name should never be empty.Günther Deschner2008-05-221-1/+1
| | | | | Guenther (cherry picked from commit 2c0a96f1e5fc065fdbeb5671cfa693009321dde8)
* dsgetdcname: add map_dc_and_domain_names() for consolidating returned names.Günther Deschner2008-05-221-50/+79
| | | | | Guenther (cherry picked from commit eb7fee6e2a00326c03aa013058247e06279a4930)
* cldap: move out cldap object to fix the build.Günther Deschner2008-05-221-84/+0
| | | | | Guenther (cherry picked from commit 56be9c98d24e64bf855439df21766d30f448f407)
* dsgetdcname: fix gencache store for dsgetdcname().Günther Deschner2008-05-221-20/+184
| | | | | | | | | While storing always a type 29 reply structure in gencache, we are now able to deliver correct data according to return flags such as DS_RETURN_FLAT_NAME and DS_RETURN_DNS_NAME out of the cached data from gencache. Guenther (cherry picked from commit c67b6dc0ca866781043e443177d550e23b83ae36)
* dsgetdcname: pure cosmetics.Günther Deschner2008-05-221-6/+6
| | | | | Guenther (cherry picked from commit 4b56c294e8ba045c84cab538b3d286e433d292ed)
* dsgetdcname: simply call ourself with DS_FORCE_REDISCOVERY after cache expiry.Günther Deschner2008-05-221-16/+8
| | | | | Guenther (cherry picked from commit 847f258632f6d49a3fd45f466c5d3d8c6222ff85)
* dsgetdcname: be more paranoid about the existance of an ip_address.Günther Deschner2008-05-221-6/+36
| | | | | Guenther (cherry picked from commit d13fe66f3d9ba152e3e8197ee6682e175163a6cd)
* dsgetdcname: remove invalid assumption in discover_dc_dns().Günther Deschner2008-05-221-5/+0
| | | | | Guenther (cherry picked from commit f48b2e844b673e99c84cb24f3c3718352ab93ce5)
* dsgetdcname: mailslot replies are identical to the cldap ones, use cldap ↵Günther Deschner2008-05-222-81/+60
| | | | | | | everywhere. Guenther (cherry picked from commit fe904ee77a7fec1674e9db660978c40c17897f77)
* Fix a C++ warningVolker Lendecke2008-05-221-2/+2
| | | | (cherry picked from commit e7a4027acf38bf5800d9d8ba477afb5daaf517ce)
* dsgetdcname: wait a little longer for mailslot replies.Günther Deschner2008-05-221-2/+2
| | | | | Guenther (cherry picked from commit bc0d7a90dcc7bf702b24feb16abf4634ff178671)
* dsgetdcname: map additional flags to nt_version.Günther Deschner2008-05-221-0/+2
| | | | | Guenther (cherry picked from commit 1009123b8600e6ccebe180f4a2f87c217638fef8)
* dsgetdcname: use make_dc_info_from_cldap_reply() for cldap replies.Günther Deschner2008-05-221-63/+21
| | | | | Guenther (cherry picked from commit a3e5b073f0474543ca74b40775ce1d7f80719c96)
* dsgetdcname: add make_dc_info_from_cldap_reply().Günther Deschner2008-05-221-0/+146
| | | | | Guenther (cherry picked from commit 9db2e50a20caabaf90ce03203a066ddd7820d33a)