summaryrefslogtreecommitdiffstats
path: root/source3/libsmb
Commit message (Collapse)AuthorAgeFilesLines
* r148: Ensure we do not dereference a null pointer when we return the userAndrew Bartlett2007-10-101-5/+17
| | | | | session key. (This used to be commit b09d333aed00a7ea599f45105e913d3a3ea25b31)
* r116: volker's patch for local group and group nestingGerald Carter2007-10-101-3/+1
| | | | (This used to be commit b393469d9581f20e4d4c52633b952ee984cca36f)
* r96: Stupid f&%'n UNIX extensions.... SETPATHINFOJeremy Allison2007-10-101-9/+10
| | | | | | | | | | | | | | | normally takes as it's param entry the filename to be acted upon.... Unless it's UNIX extensions create hardlink, or UNIX extensions create symlink. Then it's param -> newfile name data -> oldfile name. This caused me to stuff them up in 3.0.2 (and the client commands link and symlink). Fixed them, everything is now called oldname and newname - thus specifying which name should already exist (hint - the old one...) and which will be created (newname). Jeremy. (This used to be commit 21cc6ab7e8a41160a3e2970623ade7445b5214d6)
* r84: Implement --required-membership-of=, an ntlm_auth option that restrictsAndrew Bartlett2007-10-101-0/+28
| | | | | | | | | | all authentication to members of this particular group. Also implement an option to allow ntlm_auth to get 'squashed' error codes, which are safer to communicate to remote network clients. Andrew Bartlett (This used to be commit eb1c1b5eb086f49a230142ad2de45dc0e9691df3)
* r76: Fix smbfs problem with Tree Disconnect issued before smbfs starts its work.Alexander Bokovoy2007-10-101-1/+5
| | | | | | | | | | We use cli_state.smb_rw_error to pass this specific case into cli_close_connection() from smbmount as smb_rw_error can have only selected number of states and it is ignored in cli_close_connection(). Compiled and tested by Lars Mueller from SuSE on x86, x86_64, ppc, ppc64, s390 and s390x. (This used to be commit 738666ce0a310fae14476020fd6dac027b0e3ec5)
* r69: Global rename of 'nt_session_key' -> 'user_session_key'. The session ↵Andrew Bartlett2007-10-102-14/+14
| | | | | | | | key could be anything, and may not be based on anything 'NT'. This is also what microsoft calls it. (This used to be commit 724e8d3f33719543146280062435c69a835c491e)
* r39: * importing .cvsignore filesGerald Carter2007-10-101-3/+0
| | | | | * updateing WHATSNEW with vl's change (This used to be commit a7e2730ec4389e0c249886a8bfe1ee14c5abac41)
* Fix most of bug #169.Andrew Bartlett2004-04-031-0/+43
| | | | | | | | | | | | | | | | For a (very) long time, we have had a bug in Samba were an NTLMv2-only PDC would fail, because it converted the password into NTLM format for checking. This patch performs the direct comparison required for interactive logons to function in this situation. It also removes the 'auth flags', which simply where not ever used. Natrually, this plays with the size of structures, so rebuild, rebuild rebuild... Andrew Bartlett (This used to be commit 9598593bcf2d877b1d08cd6a7323ee0bc160d4ba)
* fix typoHerb Lewis2004-03-311-2/+2
| | | | (This used to be commit 4b737b51a5cf0a862f4c1bd67d9d3dd49cc81b65)
* Ensure we cope correctly with ea length of zero. Detect torture fail correctly.Jeremy Allison2004-03-301-0/+6
| | | | | Jeremy. (This used to be commit 43db249fb814cef99afecd22c20a824d2519faf9)
* Apply some constVolker Lendecke2004-03-301-2/+2
| | | | (This used to be commit 8037750df568e6b51b2b0cba9192468110470388)
* Fix get/set of EA's in client library. Added torture test for it.Jeremy Allison2004-03-291-74/+163
| | | | | Jeremy. (This used to be commit 0d239a9c070bdc1ce2d2806fc02549c4750597aa)
* Let the comment match the function...Andrew Bartlett2004-03-271-2/+1
| | | | | Andrew Bartlett (This used to be commit 43c71b3202e909cca7c41c54d0b340aea1323db6)
* Revert bogus part of smb signing commit - when Win2k supports singing/SPNEGO,Andrew Bartlett2004-03-271-1/+1
| | | | | | | it does sign the first packet. Andrew Bartlett (This used to be commit 4b9c50db853eaf9eb8c68b85760c40c1a8f9bd94)
* Add a few comments explaining KEY_EXCHAndrew Bartlett2004-03-271-4/+7
| | | | | Andrew Bartlett (This used to be commit e5422d7413e22775bc81e36559cb69254aedb102)
* Based on the detective work of Jianliang Lu <j.lu@tiesse.com>, allow yetAndrew Bartlett2004-03-274-10/+43
| | | | | | | | | | | | | | another NTLMv2 combination. We should allow the NTLMv2 response to be calculated with either the domain as supplied, or the domain in UPPER case (as we always did in the past). As a client, we always UPPER case it (as per the spec), but we also make sure to UPPER case the domain, when we send it. This should give us maximum compatability. Andrew Bartlett (This used to be commit 1e91cd0cf87b29899641585f46b0dcecaefd848e)
* Make it clearer that this error refers to the peer, as this code is in bothAndrew Bartlett2004-03-271-2/+2
| | | | | | | the client and server. Andrew Bartlett (This used to be commit 414d3fdc753b44262e9a281170d1058608d01bdf)
* Merge from HEAD the SMB signing patch that I developed a couple of weeksAndrew Bartlett2004-03-273-54/+91
| | | | | | | | | | | | | | ago. This patch re-adds support for 'optional' SMB signing. It also ensures that we are much more careful about when we enable signing, particularly with on-the-fly smb.conf reloads. The client code will now attempt to use smb signing by default, and disable it if the server doesn't correctly support it. Andrew Bartlett (This used to be commit e27b5cbe75d89ec839dafd52dd33101885a4c263)
* Working (tested) client code for setting EA's by filename and fnum.Jeremy Allison2004-03-271-5/+100
| | | | | | Now for parsing out the retrieved EA's. Jeremy. (This used to be commit 5eeeee302cec2cc1f6c130ed44be9df028f73cde)
* Fix bugzilla # 1208Jim McDonough2004-03-241-1/+1
| | | | | | | | | | | Winbind tickets expired. We now check the expiration time, and acquire new tickets. We couln't rely on renewing them, because if we didn't get a request before they expired, we wouldn't have renewed them. Also, there is a one-week limit in MS on renewal life, so new tickets would have been needed after a week anyway. Default is 10 hours, so we should only be acquiring them that often, unless the configuration on the DC is changed (and the minimum is 1 hour). (This used to be commit c2436c433afaab4006554a86307f76b6689d6929)
* Added cli_set_ea(), cli_get_ea next...Jeremy Allison2004-03-241-0/+64
| | | | | Jeremy. (This used to be commit b0c109c40335a2f59406e1d2845d676d211faf14)
* updating release notes & merging Derrel Lipman's libsmbclient patch from HEADGerald Carter2004-03-194-117/+546
| | | | (This used to be commit 5fbfaa687a3674287eeadd205f56b2b253a9e2a9)
* Ensure we don't truncate strcmps to nstring anymore...Jeremy Allison2004-03-131-1/+4
| | | | | Jeremy. (This used to be commit d7cf64b1e4e501bcd01ddc8279babc65d894a4b3)
* Modified fix for bugid #784. Based on a patch from moriyama@miraclelinux.com ↵Jeremy Allison2004-03-133-14/+20
| | | | | | | | | | | (MORIYAMA Masayuki). Don't use nstrings to hold workgroup and netbios names. The problem with them is that MB netbios and workgroup names in unix charset (particularly utf8) may be up to 3x bigger than the name when represented in dos charset (ie. cp932). So go back to using fstrings for these but translate into nstrings (ie. 16 byte length values) for transport on the wire. Jeremy. (This used to be commit b4ea493599ab414f7828b83f40a5a8b43479ff64)
* First part of patch from moriyama@miraclelinux.com (MORIYAMA Masayuki) toJeremy Allison2004-03-132-806/+855
| | | | | | | fix up netbios names with mb strings. Includes reformat of libsmb/nmblib.c so it's readable. Jeremy. (This used to be commit 966e49a48c352563cdd7f75fe2768f2d6612ec7e)
* if we are truncating to the . we need to start at the beginning in caseHerb Lewis2004-03-121-1/+1
| | | | | | | | there are multiple "."'s in the name. This code is protected with an #ifdef TRUNCATE_NETBIOS_NAME and this is #define'd to 1 directly above. Should we also get rid of the #ifdef? (This used to be commit 0375dace248eb3dc660fa2bca2808552e502b3f7)
* Restore the contract on all convert_stringXX() interfaces. Add a ↵Jeremy Allison2004-03-111-1/+1
| | | | | | | | | | "allow_bad_conv" boolean parameter that allows broken iconv conversions to work. Gets rid of the nasty errno checks in mangle_hash2 and check_path_syntax and allows correct return code checking. Jeremy. (This used to be commit 7b96765c23637613f079d37566d95d5edd511f05)
* Added client "hardlink" commant to test doing NT rename with hard links.Jeremy Allison2004-03-031-2/+42
| | | | | | Added hardlink_internals() code - UNIX extensions now use this too. Jeremy. (This used to be commit aad6eb2240393931940c982e25a981ce32264f38)
* Use a common function to parse all pathnames from the wire. This allowsJeremy Allison2004-03-031-0/+38
| | | | | | much closer emulation of Win2k3 error return codes. Jeremy. (This used to be commit c9f31fafeda6ad79e590276f36e03ecd2e93f818)
* Can't set allocation size on directories, return correct error code onJeremy Allison2004-02-281-0/+1
| | | | | | fail if file exists and target is a directory. gentest. Jeremy. (This used to be commit f4a7ea6dc2b9f379a9c735670a49ac63818754c7)
* That const was one too manyVolker Lendecke2004-02-261-3/+2
| | | | (This used to be commit 005d92d57ea912b68dd107152d478fae2162511a)
* Apply some constVolker Lendecke2004-02-261-2/+3
| | | | | Volker (This used to be commit 0b29d83d33153dc0e49406efa6735b6664d88ce7)
* Janitor for tpot...bugzilla #1098, msleep already exists on aixJim McDonough2004-02-232-3/+3
| | | | (This used to be commit 4319df7fdc2d878c509381923cc1db4d731620ba)
* Make SMB_FILE_ACCESS_INFORMATION call work correctly.Jeremy Allison2004-02-201-1/+1
| | | | | Jeremy. (This used to be commit 0ea0ada6c609e1bb0fb4aace24e1beb7197495b5)
* Make us bug-for-bug compatible with W2K3 - to get delete on close semanticsJeremy Allison2004-02-201-3/+8
| | | | | | | on an initial open the desired_access field *must* contain DELETE_ACCESS, simply having it map from a GENERIC_ALL won't do. Fixes delete on close test. Jeremy. (This used to be commit 5c6f8b1053fd1f170fbb76640649653f8aa80f18)
* More paranoia checks.Jeremy Allison2004-02-111-0/+5
| | | | | Jeremy. (This used to be commit adf8ee3df75b8336d14ad093ad2ebc3a480d0017)
* Paranoia fixes :-).Jeremy Allison2004-02-111-0/+8
| | | | | Jeremy. (This used to be commit 86b030197db63ac0a04b8ea877d80a3d74a7a187)
* Fix for possible crash bug from Sebastian Krahmer (SuSE).Jeremy Allison2004-02-101-2/+18
| | | | | Jeremy. (This used to be commit e275835b516ec2e319ad5a6943be007d34a55d75)
* Remove more unused portions of the 'password cache'.Andrew Bartlett2004-02-081-36/+6
| | | | | Andrew Bartlett (This used to be commit 318e11748a86d92bfc6ebf0e58f3c8360cbf4b69)
* Remove more unused functions - this time parts of the 'password cache'.Andrew Bartlett2004-02-081-45/+0
| | | | | Andrew Bartlett (This used to be commit 66569546e8cbb06b6de7e1ac5b2ebf662ea026de)
* Remove unused utility function.Andrew Bartlett2004-02-081-13/+0
| | | | | Andrew Bartlett (This used to be commit 4c4aa80177e05ed7900e9f24673a62064128c736)
* Make get_dc_list static - we only ask for a sorted list externally.Andrew Bartlett2004-02-081-23/+24
| | | | | Andrew Bartlett (This used to be commit e10e176c83da9eda0746e0bd108c72a01a0505e8)
* Fix up name canonicalization (needed for krb5 keytab support later).Jeremy Allison2004-01-301-3/+2
| | | | | | Remove source_env handler (no longer used in any codepath). Jeremy. (This used to be commit 3a3e33603084048e647af86a9badaaf49433c789)
* This adds client-side support for the unicode/SAMR password change scheme.Andrew Bartlett2004-01-263-55/+113
| | | | | | | | | | | As well as avoiding DOS charset issues, this scheme returns useful error codes, that we can map back via the pam interface. This patch also cleans up the interfaces used for password buffers, to avoid duplication of code. Andrew Bartlett (This used to be commit 2a2b1f0c872d154fbcce71a250e23dfad085ba1e)
* Fix the initialisation vectors for NTLM2, so that they at least make sense,Andrew Bartlett2004-01-251-2/+2
| | | | | | | even if they don't work yet. Andrew Bartlett (This used to be commit 636b98dab9bc27f55bdc65d7dedb58cdf8d8563b)
* Fix for a signing bug when the mid wraps.Jeremy Allison2004-01-171-3/+11
| | | | | | | | | | | | Found by Fran Fabrizio <fran@cis.uab.edu>. Add to the *start* of the list not the end of the list. This ensures that the *last* send sequence with this mid is returned by preference. This can happen if the mid wraps and one of the early mid numbers didn't get a reply and is still lurking on the list. Jeremy. (This used to be commit 25d739978fe9081ba0946c36901492127248e3e0)
* * BUG 446Gerald Carter2004-01-151-1/+1
| | | | | | | | | | - setup_logging() in smbclient to be interactive (remove the timestamps) - Fix bad return value in pull_ucs2( needs more testing to make sure this didn't break something else) that caused clistr_pull() to always read the same string from the buffer (pull_usc2() could return -1 if the original source length was given as -1) - increment some debugging messages to avoid printing them out so often (This used to be commit 79fe75dcdf6cc38e18ca1231e4357893db4d4a08)
* * allow dns lookups to be disabled for DOMAIN#1c (and #1b)Gerald Carter2004-01-131-7/+26
| | | | | | names * fix some a mispelled variable name (This used to be commit bca702c97620ad8f66015d6e4b41abd4adf22076)
* fix some warnings from the Sun compilerGerald Carter2004-01-091-1/+1
| | | | (This used to be commit ebabf72a78f0165521268b73e0fcabe1ea7834fd)
* Romve debugging assertions (oops...)Andrew Bartlett2004-01-091-6/+0
| | | | | Andrew Bartlett (This used to be commit 7e75a6d681fc63cacc7e5caa7a04568c6019367f)