1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-29 21:47:30 +03:00

2184 Commits

Author SHA1 Message Date
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
Volker Lendecke
14ef4cdec1 Replace sid_string_static with sid_to_string
This adds 28 fstrings on the stack, but I think an fstring on the stack is
still far better than a static one.
(This used to be commit c7c885078be8fd3024c186044ac28275d7609679)
2007-12-15 22:09:37 +01:00
Volker Lendecke
d899b8c56a Use sid_to_string directly
It seems a bit pointless to do a fstrcpy(dst, sid_string_static(src))
(This used to be commit c221c246b10e2dbbd54a9af2dc45de2eae237380)
2007-12-15 22:09:36 +01:00
Volker Lendecke
900288a2b8 Replace sid_string_static by sid_string_dbg in DEBUGs
(This used to be commit bb35e794ec129805e874ceba882bcc1e84791a09)
2007-12-15 22:09:36 +01:00
Jeremy Allison
9e733924d9 Arg. The fix for CVE-2007-6015 hadn't been merged into 3.2.
Do so now....
Jeremy.
(This used to be commit 6b1246c29a0241c8e4bb98d659d847d010826b36)
2007-12-13 16:44:24 -08:00
Günther Deschner
022014dba2 Make heimdal and MIT happy when iterating through auth data.
Guenther
(This used to be commit 507247dcbf0ef02825a6c5c5f313813714df2d99)
2007-12-12 18:58:26 +01:00
Guenther Deschner
1acd160800 Vista SP1-rc1 appears to break against Samba-3.0.27a
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Jason,

Jason Haar wrote:
> Patched 3.0.28, compiled, installed and here's the log file.
>
> Hope it helps. BTW I don't think it matters, but this is on 32bit
> CentOS4.5 systems.

yes, it helps. Thanks for that.

Very interesting, there are two auth data structures where the first one
is a PAC and the second something unknown (yet).

Can you please try the attached fix ? It should make it work again.

Guenther
- --
Günther Deschner                    GPG-ID: 8EE11688
Red Hat                         gdeschner@redhat.com
Samba Team                              gd@samba.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFHX9ZESOk3aI7hFogRAivSAJ9bMcD+PcsIzjYYLtAUoLNfVVEl1QCfV/Qd
MPsZW4G31VOVu64SPjgnJiI=
=Co+H
-----END PGP SIGNATURE-----
(This used to be commit c9adc07ca2a3bb1e0ea98e3b4f68e1a87e5c0196)
2007-12-12 09:52:51 -08:00
Jeremy Allison
e3e16928c0 Allow cliconnect to loop through multiple ip addresses
for a server. We should have been doing this for a while,
but it's more critical with IPv6.
Original patch fixed up by James.
Jeremy.
(This used to be commit 5c7f7629a97ef0929e00e52f1fae4386c984000b)
2007-12-12 09:42:58 -08:00
Günther Deschner
f0d2edb9a0 Make decode_wkssvc_join_password_buffer() return WERRORs.
Guenther
(This used to be commit 88e9da2f14b41a62bdb478f9ffc2de66643bbf14)
2007-12-12 00:58:58 +01:00
Jeremy Allison
8596a1b609 Ensure we have a non-null flags. Pointed out by Andreas Schneider <anschneider@suse.de>.
Jeremy.
(This used to be commit cafde6c37259de587d3775a2d229abd253d2376d)
2007-12-10 15:06:31 -08:00
Jeremy Allison
921bbc1331 Fix errors from next_token conversion. Spotted by
Andreas Schneider <anschneider@suse.de>.
Jeremy.
(This used to be commit b40efc2fe63a3420b62fbf1ea8936112c5a24bdc)
2007-12-10 14:21:28 -08:00
Jeremy Allison
7faee02d0d Remove the char[1024] strings from dynconfig. Replace
them with malloc'ing accessor functions. Should save a
lot of static space :-).
Jeremy.
(This used to be commit 52dc5eaef2106015b3a8b659e818bdb15ad94b05)
2007-12-10 11:30:37 -08:00
James Peach
f78ce189c2 Support fetching very long server lists with RAP_NetServerEnum3.
Use the RAP_NetServerEnum3 server list continuation API for retrieving
server lists that are too long to fit in a single reply.

Patch from George Colley <gcolley@apple.com>.
(This used to be commit 40c26d55736ae08934e18c27168fff10dd15442f)
2007-12-09 14:18:54 -08:00
James Peach
39f0e6d22c Specifically ask for IP4 addresses if we don't have IP6 support.
(This used to be commit 4786654992e3cb2280b77406f9217fcec981602c)
2007-12-09 14:01:57 -08:00
Volker Lendecke
1e26ecf666 Fix C++ warnings
(This used to be commit 01a5c3ea4bf18d99ca1c35e8c38367046e4c867b)
2007-12-08 09:39:36 -08:00
Jeremy Allison
42cfffae80 Remove next_token - all uses must now be next_token_talloc.
No more temptations to use static length strings.
Jeremy.
(This used to be commit ec003f39369910dee852b7cafb883ddaa321c2de)
2007-12-07 17:32:32 -08:00
Jeremy Allison
acf15ae730 Don't build rpctorture anymore - not maintained. Just remove.
Remove all vestiges of pstring (except for smbctool as noted
in previous commit).
Jeremy
(This used to be commit 4c32a22ac50ada3275d2ffba3c1aa08bee7d1549)
2007-12-07 12:26:32 -08:00
Jeremy Allison
590da03ba3 Fix call to clistr_pull_talloc.
Jeremy.
(This used to be commit 86700b7e2e79e634b41c272632e42b2e64f58ba3)
2007-12-07 12:08:55 -08:00
Jeremy Allison
9e8180b983 Remove pstrings completely except for smbctool (what does this do ?).
Don't build this for now.
Jeremy.
(This used to be commit 46b67fd82c795d1a34a1efca9e409c0f3fa4f3a2)
2007-12-07 12:02:44 -08:00
Jeremy Allison
5b3459e340 Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
(This used to be commit 0c21c5fa84e18d78801ab79abd726e5588902476)
2007-12-07 09:57:19 -08:00
Günther Deschner
d3b4b69a27 Add NT_STATUS_DOWNGRADE_DETECTED (thanks to Magnus Mertens).
Guenther
(This used to be commit 970daaa0a620d8e47475909cd7b5e54869602530)
2007-12-07 16:20:22 +01:00
Jeremy Allison
364b00295f Fix clidfs.c compile.
Jeremy.
(This used to be commit 76034d1529a594837725cf599d97019eed7226b4)
2007-12-06 17:17:03 -08:00
Jeremy Allison
1b92ea5559 Remove pstrings from client/client.c by doing a large rewrite.
Mostly compiles....
Jeremy.
(This used to be commit c87f3eba9aa52f4ab25d77e2167262bf5c43b1a6)
2007-12-06 17:16:33 -08:00
Jeremy Allison
4acfce6b03 Don't understand this. I have no changes here....
Jeremy.
(This used to be commit 49534432d4c63d0dfd7bf080c30adecef06deade)
2007-12-06 10:10:16 -08:00
Jeremy Allison
8ab33fc335 Fix path length limits on cli_list (outgoing. Incoming
will be fixed with pstring elimination).
Jeremy.
(This used to be commit cd43b93d405bf892d1d8941b2d1e64d7d53adf69)
2007-12-05 16:56:19 -08:00
Jeremy Allison
1938e861d0 Remove arbitrary 1k limit on pathnames. Malloc them.
Jeremy.
(This used to be commit 71770b4c1d021d829deeb53a6ea3b747fce55c84)
2007-12-05 13:31:24 -08:00
Volker Lendecke
195d6be38d remove some statics
(This used to be commit 97c9a4042d36178a728b5e0f8923091c7069366d)
2007-12-05 14:39:07 +01:00
Volker Lendecke
78c6ee0090 Remove some globals
(This used to be commit 31d0a846db08d845e6cdfd85def4ac1c34031e02)
2007-12-05 14:39:07 +01:00
Jeremy Allison
774a30989a Fix signing bug found by Volker. That one was *subtle*.
Jeremy
(This used to be commit 816aea6c1a426eb2450061b847729e22bdac33a0)
2007-12-04 13:30:22 -08:00
Jeremy Allison
d3609c4c89 Don't forget to delete the stackframe.
Jeremy.
(This used to be commit 0551ee3402daebe5b96a66162d7702ca5a31da52)
2007-12-03 18:56:54 -08:00
Jeremy Allison
fe1a12b22f Remove pstring from clirap2 by completely rewriting the damn
thing :-). Now with added paranoia.
Jeremy.
(This used to be commit b6b5f92bc9457220df384bdb13530c393d294ce7)
2007-12-03 14:09:48 -08:00
Günther Deschner
41418ed682 Add decode_wkssvc_join_password_buffer().
Guenther
(This used to be commit ba2a544baf1e1cc3652512ed5df2bb408fa8bdfd)
2007-12-03 14:06:52 +01:00
Volker Lendecke
bbf2cb6da9 Fix some C++ warnings
(This used to be commit 156c7f10bb63a610f85b52242cfd1b67bfa73c29)
2007-12-01 10:43:35 -08:00
Volker Lendecke
4a3ee48de5 Fix an uninitialized variable
(This used to be commit edce7bd7a9dd1064ba8aec34b334c7395228f40b)
2007-12-01 10:43:23 -08:00
Jeremy Allison
a17a13f7ce Fix missing error cleanup noticed by Derrell.
Jeremy.
(This used to be commit 37f00926c29c22f27e7192c1fff0a08ce136cb86)
2007-11-30 21:57:43 -08:00
Jeremy Allison
d19861e29d Ensure we have 2 bytes of zeros as a pad-buffer at the
end of all returned trans/trans2/nttrans client replies.
Not included in a count - for safety purposes.
Jeremy.
(This used to be commit 3e65fa5bcf5d1af3983f2e576698eccaad79fcda)
2007-11-30 18:02:19 -08:00
Jeremy Allison
e23fea9201 Whitespace cleanup.
Jeremy.
(This used to be commit 4dfe19be1c3a63b8517c6580c9cd363c7271693d)
2007-11-30 16:45:44 -08:00
Jeremy Allison
4e266bd60f Remove pstring from clirap.c.
Jeremy.
(This used to be commit 6e27663cb44a79f729fa4366e000c43383f6d1b7)
2007-11-30 16:13:35 -08:00
Jeremy Allison
b37ae99c35 Removed all pstrings from libsmbclient. Derryl please
check. Passes valgrind tests I've run in examples/libsmbclient.
Jeremy.
(This used to be commit 9d0034faed939a4534637696f1631ac2da60e4a3)
2007-11-30 14:19:55 -08:00
Günther Deschner
22cf7f5ffa Merge join error codes from Samba 4.
Guenther
(This used to be commit 88a01bd810c36631272c5db727334bdc6f12f07d)
2007-11-30 22:25:01 +01:00
Günther Deschner
c224118ffe Make encode_wkssvc_join_password_buffer() non-static.
Guenther
(This used to be commit 258ef17a266548bc02bed1870fd4ef5a272300b3)
2007-11-30 22:25:01 +01:00
Günther Deschner
5886f7c9f6 Merge encode_wkssvc_join_password_buffer() from samba4.
Guenther
(This used to be commit b1d36cdb86978cb31d470fccf2dc24d366835c36)
2007-11-30 22:25:00 +01:00
Jeremy Allison
810f760afd Add talloc versions of all the next_token() functions.
Now I can really start removing fixed length strings...
Jeremy.
(This used to be commit 0ae61e26547e594e94037d4474a008221e5df8cf)
2007-11-30 13:09:04 -08:00
Jeremy Allison
5b184c3525 Remove pstrings from clifile.c.
Jeremy.
(This used to be commit d5658914c2d6ec878d9a11f8a1fa57f1697362e3)
2007-11-29 17:47:31 -08:00