summaryrefslogtreecommitdiffstats
path: root/source3/libsmb
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug 5686 - libsmbclient segfaults with more than one SMBCCTX.Jeremy Allison2008-08-121-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. (This used to be commit 8c630efd25cf17aff59448ca05c1b44a41964b16)
* doserr: add WERR_MEMBER_IN_ALIAS.Günther Deschner2008-08-111-0/+1
| | | | | Guenther (This used to be commit b62de0d1944de3dba55e182e0d8eb7c6ca5ec045)
* fix build warning.Günther Deschner2008-08-111-1/+1
| | | | | Guenther (This used to be commit 85021d6a459c957cc276a93c3515029244f52677)
* One more build fix. Ensure we have KRB5_AUTH_CONTEXT_USE_SUBKEY defined ↵Jeremy Allison2008-08-081-3/+3
| | | | | | | before we compile the new code. Jeremy. (This used to be commit 7686752c5b015b15a6729631ba4aeedd25ebc659)
* Try and fix the build for systems that don't have ↵Jeremy Allison2008-08-081-3/+3
| | | | | | | krb5_auth_con_set_req_cksumtype(). Jeremy. (This used to be commit 8598e7b06ec57ca6fcde863270e6bb0e2de9993e)
* Add Derrick Schommer's <dschommer@F5.com> kerberos delegation patch. SomeJeremy Allison2008-08-082-3/+185
| | | | | | work by me and advice by Love. Jeremy. (This used to be commit ecc3838e4cb5d0c0769ec6d9a34a877ca584ffcc)
* Fix bug #5675 with a varient of Tim Waugh's patch,Jeremy Allison2008-08-071-3/+2
| | | | | | as proposed by James Peach. Jeremy. (This used to be commit 5c27ad75836136c39774c9456d63f46fa62e281f)
* clikrb5: don't use krb5_keyblock_init() when no salt is specifiedStefan Metzmacher2008-08-041-35/+30
| | | | | | | | | If the caller wants to create a key with no salt we should not use krb5_keyblock_init() (only used when using heimdal) because it does sanity checks on the key length. metze (This used to be commit c83de77b750837a110611d7023c4cf71d2d0bab1)
* cli_request_new() already gave use the req, remove a pointless function callVolker Lendecke2008-08-011-2/+0
| | | | (This used to be commit 08e97bd369ebe3ab1fd92433b168585faea92c68)
* Fix a typoVolker Lendecke2008-08-011-5/+5
| | | | (This used to be commit 37bd2815c70176046bbe0232222b9f59dfa159c4)
* Remove one reference to PI_LSARPCVolker Lendecke2008-07-211-1/+2
| | | | (This used to be commit 40247e8d3d53502fa8d7cc6b3eb9ed43f51142f3)
* Refactoring: Change calling conventions for cli_rpc_pipe_open_ntlmsspVolker Lendecke2008-07-201-7/+7
| | | | | Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS (This used to be commit a13f0599551609394904b99e4014d580ec65c506)
* Refactoring: Change calling conventions for cli_rpc_pipe_open_noauthVolker Lendecke2008-07-204-12/+15
| | | | | Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS (This used to be commit 9abc9dc4dc13bd3e42f98eff64eacf24b51f5779)
* Use the macro to call samba_version_string().Andreas Schneider2008-07-171-1/+1
| | | | | | Signed-off-by: Andreas Schneider <anschneider@suse.de> Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be commit d2682295f55a18d526434062834c033aa18e794b)
* The compatibility function also should have a const buffer pointerDerrell Lipman2008-07-161-1/+1
| | | | (This used to be commit b731447ec539d454002300fd755dddcad2351d6c)
* The buf in the smbclient write function should be const.Andreas Schneider2008-07-161-1/+1
| | | | | | | | | As we try to provide POSIX function, we should use const like all other POSIX function. Signed-off-by: Andreas Schneider <anschneider@suse.de> Signed-off-by: Derrell Lipman <derrell.lipman@unwireduniverse.com> (This used to be commit 36e5df59544de9df140ca40ad0efd77afd8e1468)
* Merge branch 'v3-3-test' of ssh://git.samba.org/data/git/samba into v3-3-testDerrell Lipman2008-07-162-2/+24
|\ | | | | | | (This used to be commit 11d74fc51c637b8129304b5de85bbe02a86a69ce)
| * Release still reachable memory if the smbclient context is freed.Andreas Schneider2008-07-151-0/+19
| | | | | | | | | | Signed-off-by: Andreas Schneider <anschneider@suse.de> (This used to be commit 7a65053bc8579b4f56045fb2c658a91a4af0dfea)
| * fix build warning.Günther Deschner2008-07-151-2/+5
| | | | | | | | | | Guenther (This used to be commit 507660706901a79544d436046127947e4baa7e52)
* | Fix typos.Derrell Lipman2008-07-161-1/+1
|/ | | | | | | libsmbclient doesn't have bool defined; rather it uses smbc_bool Derrell (This used to be commit e1ade80f468e8ed827f9d4fd035d79546fa0ee0a)
* Revert "Pass NULL to gencache_get when we are not interested in the timeout ↵Volker Lendecke2008-07-113-5/+10
| | | | | | | value" This reverts commit 16062dfc3dcc8f1ca0024a3ae21effb889c7ffc0. (This used to be commit 114ca8577568cdb5a81d8734f1d1d096f1b36c36)
* Revert "Remove gencache_[un]lock_entry"Volker Lendecke2008-07-111-2/+10
| | | | | This reverts commit 7a5a575ffe5196caecedc93970a25abfbe6f8059. (This used to be commit 62e444dd50ae974c2ab9a553cdf7f188a8f2c538)
* [BUG 5580] Allow access to DFS shares via libsmbclientDerrell Lipman2008-07-081-0/+20
| | | | | | | | | | Brian Sheehan provided a nice patch intended for the 3.0 code base. This commit applies a similar patch for the 3.3 code base. It adds a new public function to libsmbclient -- smbc_set_credentials() -- that may be called from the authentication callback when DFS referrals are in use. Derrell (This used to be commit 888f922bd0d1c84a687d404e95ae314a9dd0aee1)
* Remove gencache_[un]lock_entryVolker Lendecke2008-07-031-10/+2
| | | | | Günther agreed that it might be unnecessary in dsgetdcname_cache_store() :-) (This used to be commit 7a5a575ffe5196caecedc93970a25abfbe6f8059)
* Pass NULL to gencache_get when we are not interested in the timeout valueVolker Lendecke2008-07-033-10/+5
| | | | (This used to be commit 16062dfc3dcc8f1ca0024a3ae21effb889c7ffc0)
* Two more fixes from Jim Brown <jim.brown@miami.edu> for SGI compiler warnings.Jeremy Allison2008-07-011-1/+6
| | | | | Jeremy. (This used to be commit d85cbdbe296ec6de5bdbd66a90ca41345f55c837)
* Fix return of uninitialized variable.Jeremy Allison2008-06-261-1/+1
| | | | | Jeremy. (This used to be commit 384052f546af8c1c6848c03cad4f2ba618ba7209)
* errors: add WERR_DS_DRA_BAD_NC and WERR_DS_DRA_BAD_DN.Günther Deschner2008-06-261-0/+4
| | | | | Guenther (This used to be commit 2efe18f7c96d8d122943342b9af1db62a1432771)
* rename rpccli_samr_chgpasswd_user to rpccli_samr_chgpasswd_user2.Günther Deschner2008-06-251-3/+3
| | | | | Guenther (This used to be commit 5b4650d56c04be0c498413f17afb2cf6d0e7d548)
* crypto: add decrypt_drsuapi_blob from samba4.Günther Deschner2008-06-241-0/+114
| | | | | Guenther (This used to be commit 3b6352a60e6683963af1641786f9c230d49ebfb5)
* kerberos: add smb_krb5_keytab_name().Günther Deschner2008-06-241-0/+22
| | | | | Guenther (This used to be commit c273ce8798062d1b55100411f3e92a01bdbf611c)
* kerberos: make smb_krb5_kt_add_entry public, allow to pass keys without ↵Günther Deschner2008-06-241-18/+38
| | | | | | | salting them. Guenther (This used to be commit 7c4da23be1105dc224033b21eb486e7fcdc7d9c5)
* clikrb5: remove unrequired create_kerberos_key_from_string_direct() prototype.Günther Deschner2008-06-171-10/+10
| | | | | Guenther (This used to be commit ec86852fc6ce2d88ad5835c8fcb337c68fd6f6bc)
* dsgetdcname: allow to use NULL mem_ctx.Günther Deschner2008-06-171-1/+1
| | | | | Guenther (This used to be commit d20353d30c2e08a6c6d67ae8b8c2faa26004249c)
* Fix a crash in add_failed_connection_entryVolker Lendecke2008-06-071-1/+2
| | | | (This used to be commit 2a689aa66af1de3d2e0d08b51e33e9a7015d6cb7)
* Make the gencache based conncache use talloc_tos()Volker Lendecke2008-06-071-11/+15
| | | | (This used to be commit f7f912a478af64b07beeb58673b605da0c46db94)
* Negative conn cache uses gencacheMarc VanHeyningen2008-06-071-129/+189
| | | | (This used to be commit 8765eb8ad7bb978d3bb9c9ff8e557791fdc43009)
* More correct fix (hopefully :-) for any memory leaks.Jeremy Allison2008-06-051-1/+17
| | | | | | Jerry promised to check :-). Vl also please review. Jeremy. (This used to be commit 8abc6e742147486a62b4a3f9845e34062845d8ea)
* Fix bug reported by David Eisner <deisner@gmail.com>. When allocating cliJeremy Allison2008-06-021-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. (This used to be commit 19519bca9b64b736d2fe0447b7cd495f00dba60a)
* errors: add more WERRORs.Günther Deschner2008-06-031-0/+5
| | | | | Guenther (This used to be commit 973de861c98c62ba31ceb63b3434dc201ae8bf06)
* doserr: Add WERR_GROUP_EXISTS and WERR_SPECIAL_ACCOUNT.Günther Deschner2008-06-031-0/+3
| | | | | Guenther (This used to be commit 058cf7001e8a57ff0a1e19aadf3e0e068b7e69f4)
* minor memory leak fixChere Zhou2008-05-301-0/+1
| | | | (This used to be commit 0c61631f345436bf88e93219c139af8cfbeea18b)
* Security fix for CVE-2008-1105: Boundary failure when parsing SMB responsesJeremy Allison2008-05-282-191/+3
| | | | | | can result in a buffer overrun. Jeremy. (This used to be commit 23b825e9d2c74c5b940cf4d3aa56c18692259972)
* Memory leak fixes from Chere Zhou <czhou@isilon.com>.Jeremy Allison2008-05-271-0/+1
| | | | | Jeremy. (This used to be commit 201bcc8ed291b51be6f4508c6aa1cb17ce6dcbe3)
* dsgetdcname: use family (instead of sa_family).Günther Deschner2008-05-271-1/+1
| | | | | Guenther (This used to be commit 355fb81e9e42e507717f33a11793258db9169199)
* doserr: add WERR_REVISION_MISMATCH.Günther Deschner2008-05-271-0/+1
| | | | | Guenther (This used to be commit 017ad275e51ff2d9ddfb4390979f16868f3e6a3f)
* Fix two bogus uninitalized variable warningsVolker Lendecke2008-05-251-1/+2
| | | | (This used to be commit 194ea682d9a5c12a0125fecc20349ca9cc3d3ea1)
* drsuapi: add all code required for our drsuapi rpc client.Günther Deschner2008-05-231-0/+84
| | | | | Guenther (This used to be commit 7c93190843e77764be4d0f6d4f0b93061c192c98)
* Manually merge Steven Danneman's patch for SPNEGO auth to a trustedGerald W. Carter2008-05-231-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. (This used to be commit b78b14c88e8354aadf9ba7644bdb1c29245fe419)
* Fix bug #5479, print spool shares require max_xmit toJeremy Allison2008-05-211-1/+6
| | | | | | be adhered to. Jeremy. (This used to be commit 478a359edead0677281a3ca4e64db6521941b0f3)