1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-25 06:04:04 +03:00

2127 Commits

Author SHA1 Message Date
Günther Deschner
5ab43ae0d8 Eliminate remote tree of dsgetdcname (which will happen in libnetapi then).
Guenther
(This used to be commit fd490d236b1fb73a75c457b75128c9b98719418f)
2008-01-29 15:09:56 +01:00
Tim Potter
54db183987 Adding missing calls to va_end().
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-27 09:33:42 +01:00
Günther Deschner
372f74bba2 Add WERR_INVALID_COMPUTER_NAME.
Guenther
(This used to be commit cb1ff32eff06031150a6821658152e02a4077bbd)
2008-01-24 23:41:59 +01:00
Derrell Lipman
2e7e3095a6 Merge branch 'setxattr-dos-mode' into v3-2-test
(This used to be commit 4c08725a42a8babf0f078fb4b221a96f58deeb50)
2008-01-23 20:50:24 -05:00
Derrell Lipman
e0021b586d Allow clearing all settable DOS mode bits. A mode value of zero is ignored by
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-23 20:44:54 -05:00
Jeremy Allison
ffc84a1044 Don't leak memory in error path.
Jeremy.
(This used to be commit 2df0cdaafdced798f81e30d34371aa1d8e963208)
2008-01-23 15:23:16 -08:00
Jeremy Allison
fe8a8f47e0 Use strchr_m in seaching for '.' in the hostname to make sure we're mb safe.
Jeremy.
(This used to be commit 090061b73a1c086ff8a7797e1a63532eacd91148)
2008-01-23 15:00:40 -08:00
Andreas Schneider
cfe7b54e96 Fix Windows 2008 (Longhorn) join.
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-23 14:57:45 -08:00
Andreas Schneider
691c4b1a41 Windows 2008 (Longhorn) auth2 flag fixes.
Interop fixes for AD specific flags. Original patch from Todd Stetcher.
(This used to be commit 5aadfcdaacd6f136eab9e107a88b8544e6d2105f)
2008-01-23 14:55:22 -08:00
Volker Lendecke
a925a53f61 read_socket_with_timeout has timeout=0 handling
(This used to be commit 7101026061c470ed962267b43ac0aa67cc761a64)
2008-01-23 17:09:10 +01:00
Derrell Lipman
bb707b1db6 Fix typo that disabled setting group id. Thanks, Henrik.
(This used to be commit 843e1694cfe4a999ed14a9c215b8e77723d0fe79)
2008-01-18 14:22:49 -05:00
Volker Lendecke
3d3d6e7020 Add the "allinfo" command to smbclient
Modeled after the Samba4 allinfo command
(This used to be commit 3fa0cf3fe5f819f6e76df6f7cef3bb4e1c307a52)
2008-01-18 11:08:17 +01:00
Michael Adam
80d7cccfe7 Add and correct some WERROR codes.
Michael
(This used to be commit 7aec862ddc2aa2b5152c3a452971e55ba43646a5)
2008-01-18 01:10:55 +01:00
Derrell Lipman
4f09727df8 Fix bug 5185: repeated calls to smbc_getxattr() lose sid-name mapping
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-17 11:49:17 -05:00
Derrell Lipman
096e40c916 Fix stat results to be consistent between smbc_stat and smbc_fstat.
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-17 09:29:13 -05:00
Jeremy Allison
f44713df4d Fix bug found by Derrell - windows returns an read return
offset of zero if return size is zero. Should fix testread
libsmbclient code.
Jeremy.
(This used to be commit df3c4648399f8d62ff6fe0013be8b89abc18f0f0)
2008-01-16 17:33:19 -08:00
Günther Deschner
d06559c1e6 Make resolve_ads() static.
Guenther
(This used to be commit 57dc747136e880a25c03bdc4a1431fc41afd93a1)
2008-01-16 16:06:15 +01:00
Derrell Lipman
6e94cbdc30 Merge branch 'v3-2-test' of git://git.samba.org/samba into v3-2-test
(This used to be commit f963d57096184dd9381fcc5f175150d27460ea7a)
2008-01-16 00:45:06 +00:00
Jeremy Allison
9a6a5fff9c Fix the API exported for auth_functions. Ensure we call
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-15 16:13:11 -08:00
Kai Blin
ce9e918c95 libsmb: Do not upper-case target name on NTLMv2 hash generation
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-15 19:29:08 +01:00
Derrell Lipman
9788383a6c Merge branch 'v3-2-test' of git://git.samba.org/samba into v3-2-test
(This used to be commit 3a61e663e51fe620225691bc8673bf8800a36f47)
2008-01-15 13:58:47 +00:00
Jeremy Allison
d7582b5186 Windows insists on write sizes < max_xmit on signed connections.
Jeremy.
(This used to be commit ef9b278b6289a9ecdd6b103927058f64fbb7eb97)
2008-01-14 13:46:06 -08:00
Derrell Lipman
011e89c858 Fix smbc_listxattr() and friends (bug #5189)
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-13 17:10:06 -05:00
Jeremy Allison
76d904e6d8 Fix CID 470. resolve_order can't be NULL here so simplify code.
Jeremy.
(This used to be commit 2e75f3ecdf9890b9d7d4bd03f3fa15ef74816d5d)
2008-01-12 00:05:07 -08:00
Günther Deschner
c79ce2ffa3 As long as DsGetDcName is not part of libnetapi, lowercase the fn name.
Guenther
(This used to be commit 19a980f52044a170618629e5b0484c1f6b586e5f)
2008-01-11 15:32:20 +01:00
Michael Adam
c0c299cb26 Fix a memleak found by the IBM checker.
Michael
(This used to be commit b4a37a66bbd8f5346de743d4ab427d6671e29075)
2008-01-09 22:25:52 +01:00
Jeremy Allison
3eb2cfc1ad Fix CID 461 - resource leak on error.
Jeremy.
(This used to be commit eea07b0c83985af60395f8a31de5bac4e5398cff)
2008-01-08 18:51:55 -08:00
Günther Deschner
a8d200893a Refactor our DsGetDcName call a bit (before it will move into libnetapi).
Guenther
(This used to be commit 41c129da3d33f9fc2864d360e4b6ec5a72caf2a3)
2008-01-07 23:06:12 +01:00
Jeremy Allison
1be3fcbf2f Add the options smb_encrypt_level to set the requested
encrypt level and smb_encrypt_on to query it.
Jeremy.
(This used to be commit 07d47996f9535731ccdc1792c405c8bee1a082ae)
2008-01-05 00:51:18 -08:00
Jeremy Allison
9baa97a46e Add general '-e' option to enable smb encryption
on tools.
Jeremy.
(This used to be commit 757653966fc1384159bd2d57c5670cd8af0cae96)
2008-01-05 00:23:35 -08:00
Günther Deschner
395c366237 Do not pass emtpy wkssvc_PasswordBuffers to rpc functions.
Guenther
(This used to be commit fe75e5ccdfc2609380367e59215637b0de1ef241)
2008-01-04 23:03:55 +01:00
Jeremy Allison
9254bb4ef1 Refactor the crypto code after a very helpful conversation
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-04 12:56:23 -08:00
Michael Adam
f215dec831 Map WERR_NO_SUCH_SERVICE with dos_errstr().
Michael
(This used to be commit df5839b5376e903486982ddc7c4f4fbd4550c60a)
2008-01-04 19:58:19 +01:00
Günther Deschner
f8dacb9860 Add some more join related werror codes.
Guenther
(This used to be commit 62e7d467ab1b2f98327960eec3a3a925b2f04bda)
2008-01-03 18:15:14 +01:00
Jeremy Allison
6d9b2439d2 Added -e, --encrypt option to smbclient that immediately
forces encrypted smb after initial connect. Will document
for 3.2 official release.
Jeremy.
(This used to be commit f02bf419282419950471deae74c4a6fe1543ed26)
2007-12-29 22:39:52 -08:00
Volker Lendecke
240391be53 Make use of [un]marshall_sec_desc
(This used to be commit 54576733d6c0511dc7379f964b1cb035913b7c8d)
2007-12-29 23:13:03 +01:00
Volker Lendecke
a59280792c Remove tiny code duplication
sid_size did the same as ndr_size_dom_sid
(This used to be commit 8aec5d09ba023413bd8ecbdfbc7d23904df94389)
2007-12-29 23:12:51 +01:00
Volker Lendecke
533d6f617e Remove static zeros
(This used to be commit dbcc213710a9af31b6094d4741a6f68f573dcdad)
2007-12-28 17:02:34 +01:00
Jeremy Allison
3a52874815 Encryption works better when you add the client decrypt code :-).
Jeremy.
(This used to be commit d67b2634068be9c69082a2b8c22c831aba371cd9)
2007-12-26 17:17:36 -08:00
Jeremy Allison
afc93255d1 Add SMB encryption. Still fixing client decrypt but
negotiation works.
Jeremy.
(This used to be commit d78045601af787731f0737b8627450018902b104)
2007-12-26 17:12:36 -08:00
Günther Deschner
c000a16645 Add get_friendly_werror_msg().
Guenther
(This used to be commit b1ad3def98911c91ed55a3b7aec7d0894b2dd8fd)
2007-12-21 15:28:21 +01:00
Günther Deschner
574354a7ec Use ADS_IGNORE_PRINCIPAL define.
Guenther
(This used to be commit 763e13315fc71237b14a186810bc201e725648f5)
2007-12-21 14:13:55 +01:00
Volker Lendecke
addf598cde Some C++ warnings
(This used to be commit 5ab82d4f574f2a2e2761e9e414c66a70aeffb05d)
2007-12-21 09:58:20 +01:00
Volker Lendecke
5f1d36ce9a Fix debug messages
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-19 20:48:45 +01:00
Volker Lendecke
a37873490f packet_struct is used in several places as raw memory
-> Fix more uninitialized variable warnings
(This used to be commit 0af02db6f2f84a8ce5d614e5baec27f20b413c26)
2007-12-19 17:15:45 +01:00
Volker Lendecke
0743d384a6 Some paranoia checks
(This used to be commit ff644cfa1b123e9d0f8f4817504e5b209b85dedd)
2007-12-19 16:57:48 +01:00
Volker Lendecke
2197801ef1 Zero the tdb key, there might be padding
This leads to uninitialized variable warnings if nmbd is run under valgrind.
(This used to be commit 9ec4f91f35696e5a00e24fe9ae2dd06119482c80)
2007-12-19 16:57:40 +01:00
Günther Deschner
713e1536fe Merge WERR_NO_SUCH_LOGON_SESSION from Samba4.
Guenther
(This used to be commit 7b528647879bb55c9c85243a3e2906c09490edc9)
2007-12-19 11:15:29 +01:00
Jeremy Allison
5dbc4a23bc Added patch originally by Andreas Schneider <anschneider@suse.de>
to cause us to behave like Vista when looking for remote
machine principal. Modified by me.
Jeremy.
(This used to be commit d0e33840fb4cfc85990d3ee327428b0854a22722)
2007-12-15 23:22:25 -08:00
Volker Lendecke
2e07c2ade8 s/sid_to_string/sid_to_fstring/
least surprise for callers
(This used to be commit eb523ba77697346a365589101aac379febecd546)
2007-12-15 22:47:30 +01:00