summaryrefslogtreecommitdiff
path: root/source3/libsmb
AgeCommit message (Collapse)AuthorFilesLines
2008-02-02Convert receive_smb_raw to NTSTATUSVolker Lendecke1-4/+25
(This used to be commit ba771bd858602452a9e58c3aab1336f2ac8a25ef)
2008-02-02read_socket_with_timeout_ntstatus->read_socket_with_timeoutVolker Lendecke1-1/+1
(This used to be commit 90554799afa42855c3e7b87dc632e67f0952f988)
2008-02-02Get rid of read_socket_with_timeoutVolker Lendecke1-2/+22
(This used to be commit f9c8ac83ff42137d2101d3bb17e5dcc3c3d70a8f)
2008-01-29Eliminate remote tree of dsgetdcname (which will happen in libnetapi then).Günther Deschner1-100/+14
Guenther (This used to be commit fd490d236b1fb73a75c457b75128c9b98719418f)
2008-01-27Adding missing calls to va_end().Tim Potter1-4/+19
Just a small commit to get a handle on this git thingy. This patch fixes some missing calls to va_end() to match various calls to va_start() and VA_COPY(). Tim. (This used to be commit ec367f307dff7948722b9ac97beb960efd91991f)
2008-01-24Add WERR_INVALID_COMPUTER_NAME.Günther Deschner1-0/+1
Guenther (This used to be commit cb1ff32eff06031150a6821658152e02a4077bbd)
2008-01-23Merge branch 'setxattr-dos-mode' into v3-2-testDerrell Lipman1-1/+9
(This used to be commit 4c08725a42a8babf0f078fb4b221a96f58deeb50)
2008-01-23Allow clearing all settable DOS mode bits. A mode value of zero is ignored byDerrell Lipman1-1/+9
Windows. If the requested mode is zero, we instead send the appropriate one of 0x80 (NORMAL) or 0x10 (DIRECTORY). Thanks Jeremy! Derrell (This used to be commit 54abf7d0e595e9cbeea115a40d4f7b995252a150)
2008-01-23Don't leak memory in error path.Jeremy Allison1-0/+1
Jeremy. (This used to be commit 2df0cdaafdced798f81e30d34371aa1d8e963208)
2008-01-23Use strchr_m in seaching for '.' in the hostname to make sure we're mb safe.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 090061b73a1c086ff8a7797e1a63532eacd91148)
2008-01-23Fix Windows 2008 (Longhorn) join.Andreas Schneider1-1/+15
During 'net ads join' the cli->desthost is a hostname (e.g. rupert.galaxy.site). Check if we have a hostname and use only the first part, the machine name, of the string. (This used to be commit 5f60ed4af680ba2811db8d9f8267348ce05f26d2)
2008-01-23Windows 2008 (Longhorn) auth2 flag fixes.Andreas Schneider1-1/+1
Interop fixes for AD specific flags. Original patch from Todd Stetcher. (This used to be commit 5aadfcdaacd6f136eab9e107a88b8544e6d2105f)
2008-01-23read_socket_with_timeout has timeout=0 handlingVolker Lendecke1-6/+2
(This used to be commit 7101026061c470ed962267b43ac0aa67cc761a64)
2008-01-18Fix typo that disabled setting group id. Thanks, Henrik.Derrell Lipman1-1/+1
(This used to be commit 843e1694cfe4a999ed14a9c215b8e77723d0fe79)
2008-01-18Add the "allinfo" command to smbclientVolker Lendecke1-0/+131
Modeled after the Samba4 allinfo command (This used to be commit 3fa0cf3fe5f819f6e76df6f7cef3bb4e1c307a52)
2008-01-18Add and correct some WERROR codes.Michael Adam1-1/+7
Michael (This used to be commit 7aec862ddc2aa2b5152c3a452971e55ba43646a5)
2008-01-17Fix bug 5185: repeated calls to smbc_getxattr() lose sid-name mappingDerrell Lipman1-46/+37
If we're going to cache connections to IPC$, we'd better also cache the policy handle and not use a stack-based handle that's invalid on subsequent calls. Derrell (This used to be commit 67c415661f6466c21cd0eaafabe58cba049d2af3)
2008-01-17Fix stat results to be consistent between smbc_stat and smbc_fstat.Derrell Lipman1-1/+4
We create a kludged inode based on the checksum of the path. We therefore need to use the same (full) path when calculating it in both smbc_stat() and smbc_fstat(). If struct stat has an rdev field, set it to zero. Derrell (This used to be commit b4282fbd6d27d868b2d5c04bb72d2d7421822da1)
2008-01-16Fix bug found by Derrell - windows returns an read returnJeremy Allison1-21/+28
offset of zero if return size is zero. Should fix testread libsmbclient code. Jeremy. (This used to be commit df3c4648399f8d62ff6fe0013be8b89abc18f0f0)
2008-01-16Make resolve_ads() static.Günther Deschner1-5/+5
Guenther (This used to be commit 57dc747136e880a25c03bdc4a1431fc41afd93a1)
2008-01-16Merge branch 'v3-2-test' of git://git.samba.org/samba into v3-2-testDerrell Lipman2-273/+311
(This used to be commit f963d57096184dd9381fcc5f175150d27460ea7a)
2008-01-15Fix the API exported for auth_functions. Ensure we callJeremy Allison1-272/+310
passing 3 fstrings/sizeof(fstrings) as 3.0.x did. Found by Derrell. Derrell please test ! Thanks, Jeremy. (This used to be commit 5467db388355a4769e48fed7eb80920d1820f727)
2008-01-15libsmb: Do not upper-case target name on NTLMv2 hash generationKai Blin1-1/+1
This makes our NTLMv2 hash generation compatible to the Davenport example and fixes a bug when ntlm_auth is called with a non-upper-case --domain parameter and client ntlmv2 auth = yes Jerry, please consider for 3.2.0 (This used to be commit ecbe08897c9cc47790f3d4f5680d25202bc0f6c3)
2008-01-15Merge branch 'v3-2-test' of git://git.samba.org/samba into v3-2-testDerrell Lipman2-13/+9
(This used to be commit 3a61e663e51fe620225691bc8673bf8800a36f47)
2008-01-14Windows insists on write sizes < max_xmit on signed connections.Jeremy Allison1-3/+6
Jeremy. (This used to be commit ef9b278b6289a9ecdd6b103927058f64fbb7eb97)
2008-01-13Fix smbc_listxattr() and friends (bug #5189)Derrell Lipman1-4/+7
When the capability of using full names for DOS attributes was added, a bug was introduced which caused the wrong number of bytes to be returned. This patch to smbc_listxattr_ctx() fixes the problem. Thanks to Jack Schmidt for this patch. Derrell (This used to be commit 913c335d21c503d32b35bf65da7b2bddf0473875)
2008-01-12Fix CID 470. resolve_order can't be NULL here so simplify code.Jeremy Allison1-10/+3
Jeremy. (This used to be commit 2e75f3ecdf9890b9d7d4bd03f3fa15ef74816d5d)
2008-01-11As long as DsGetDcName is not part of libnetapi, lowercase the fn name.Günther Deschner1-38/+38
Guenther (This used to be commit 19a980f52044a170618629e5b0484c1f6b586e5f)
2008-01-09Fix a memleak found by the IBM checker.Michael Adam1-0/+1
Michael (This used to be commit b4a37a66bbd8f5346de743d4ab427d6671e29075)
2008-01-08Fix CID 461 - resource leak on error.Jeremy Allison1-0/+4
Jeremy. (This used to be commit eea07b0c83985af60395f8a31de5bac4e5398cff)
2008-01-07Refactor our DsGetDcName call a bit (before it will move into libnetapi).Günther Deschner1-16/+101
Guenther (This used to be commit 41c129da3d33f9fc2864d360e4b6ec5a72caf2a3)
2008-01-05Add the options smb_encrypt_level to set the requestedJeremy Allison1-0/+98
encrypt level and smb_encrypt_on to query it. Jeremy. (This used to be commit 07d47996f9535731ccdc1792c405c8bee1a082ae)
2008-01-05Add general '-e' option to enable smb encryptionJeremy Allison2-35/+56
on tools. Jeremy. (This used to be commit 757653966fc1384159bd2d57c5670cd8af0cae96)
2008-01-04Do not pass emtpy wkssvc_PasswordBuffers to rpc functions.Günther Deschner1-6/+14
Guenther (This used to be commit fe75e5ccdfc2609380367e59215637b0de1ef241)
2008-01-04Refactor the crypto code after a very helpful conversationJeremy Allison2-16/+17
with Volker. Mostly making sure we have data on the incoming packet type, not stored in the smb header. Jeremy. (This used to be commit c4e5a505043965eec77b5bb9bc60957e8f3b97c8)
2008-01-04Map WERR_NO_SUCH_SERVICE with dos_errstr().Michael Adam1-0/+1
Michael (This used to be commit df5839b5376e903486982ddc7c4f4fbd4550c60a)
2008-01-03Add some more join related werror codes.Günther Deschner1-0/+3
Guenther (This used to be commit 62e7d467ab1b2f98327960eec3a3a925b2f04bda)
2007-12-29Added -e, --encrypt option to smbclient that immediatelyJeremy Allison1-11/+110
forces encrypted smb after initial connect. Will document for 3.2 official release. Jeremy. (This used to be commit f02bf419282419950471deae74c4a6fe1543ed26)
2007-12-29Make use of [un]marshall_sec_descVolker Lendecke1-28/+17
(This used to be commit 54576733d6c0511dc7379f964b1cb035913b7c8d)
2007-12-29Remove tiny code duplicationVolker Lendecke1-2/+2
sid_size did the same as ndr_size_dom_sid (This used to be commit 8aec5d09ba023413bd8ecbdfbc7d23904df94389)
2007-12-28Remove static zerosVolker Lendecke2-3/+9
(This used to be commit dbcc213710a9af31b6094d4741a6f68f573dcdad)
2007-12-26Encryption works better when you add the client decrypt code :-).Jeremy Allison1-0/+11
Jeremy. (This used to be commit d67b2634068be9c69082a2b8c22c831aba371cd9)
2007-12-26Add SMB encryption. Still fixing client decrypt butJeremy Allison13-95/+1070
negotiation works. Jeremy. (This used to be commit d78045601af787731f0737b8627450018902b104)
2007-12-21Add get_friendly_werror_msg().Günther Deschner1-7/+45
Guenther (This used to be commit b1ad3def98911c91ed55a3b7aec7d0894b2dd8fd)
2007-12-21Use ADS_IGNORE_PRINCIPAL define.Günther Deschner1-2/+1
Guenther (This used to be commit 763e13315fc71237b14a186810bc201e725648f5)
2007-12-21Some C++ warningsVolker Lendecke1-2/+2
(This used to be commit 5ab82d4f574f2a2e2761e9e414c66a70aeffb05d)
2007-12-19Fix debug messagesVolker Lendecke1-8/+9
When warning that "client plaintext auth" is not enabled where the server requested them we should not talk about "client use plaintext auth" (This used to be commit 7799e18994354b2705ee8c64ae8c75e062ace460)
2007-12-19packet_struct is used in several places as raw memoryVolker Lendecke1-0/+2
-> Fix more uninitialized variable warnings (This used to be commit 0af02db6f2f84a8ce5d614e5baec27f20b413c26)
2007-12-19Some paranoia checksVolker Lendecke1-0/+8
(This used to be commit ff644cfa1b123e9d0f8f4817504e5b209b85dedd)
2007-12-19Zero the tdb key, there might be paddingVolker Lendecke1-0/+2
This leads to uninitialized variable warnings if nmbd is run under valgrind. (This used to be commit 9ec4f91f35696e5a00e24fe9ae2dd06119482c80)