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

9853 Commits

Author SHA1 Message Date
Martin Pool
bc7f13cdb3 Add examples of ComfyChair
(This used to be commit dfee0a6ad5d203df04df8a54da87ff5e493a33ca)
2003-03-14 04:54:10 +00:00
Martin Pool
f764518bd1 Merge from Subversion
* Better report formatting
(This used to be commit e7eafa10da828b4dc46a05a99164eb8ac37563df)
2003-03-14 04:50:17 +00:00
Martin Pool
593ed8d1d9 Add bin/libbigballofmud.a non-shared library. A bit easier to link to
for testing than the .so.  (http://www.laputan.org/mud/mud.html)
(This used to be commit 386087d77f836b8133afc977c9c3e8e7845125dc)
2003-03-13 07:05:10 +00:00
Martin Pool
197f98aede In Valgrind 1.9.4, the headers have moved to <valgrind/valgrind.h>,
etc.  So check for that as well as the old names when including macros
and conditionally defining -DVALGRIND.
(This used to be commit c9151c7b1113e2f01bd33d4dd301a2e7e2040b35)
2003-03-13 06:18:18 +00:00
Martin Pool
9951cca72f In Valgrind 1.9.4, the headers have moved to <valgrind/valgrind.h>,
etc.  So check for that as well as the old names.
(This used to be commit 1ffa4d75b75979b8abb409634212ce43a0826467)
2003-03-13 06:16:51 +00:00
Tim Potter
6d0a1eaaaa Added chainlock, chainunlock, lock_bystring and unlock_bystring methods.
(This used to be commit cd5c47f47379a8c4021771ec28a9da0085f80d98)
2003-03-13 06:09:18 +00:00
Tim Potter
5e7f809f8f Fixed crash bug when calling tdb_unlockkeys() with no locked keys.
woot!
(This used to be commit eb432700c0010e536be3a0703f152c533357b851)
2003-03-13 05:52:49 +00:00
Andrew Tridgell
d2a85e5185 show which files we fail to create in the casetable test
(This used to be commit d40e3747cfa2994349aa84568f7b79457341a058)
2003-03-13 04:36:32 +00:00
Andrew Tridgell
537e4d5565 fixed the unmarshalling of the queryaliasmem SAMR call
(This used to be commit 80c45434092a881fe2c9ae7f90856deea4722cb0)
2003-03-13 04:35:15 +00:00
Andrew Tridgell
3b104f6e2d win2000 can take much longer than the specified time to respond to a
lock - so to make the torture tests valid I give it a grace time of 10
seconds instead of 2
(This used to be commit c9c9e9eb26ec3042395637d14a6661d04a629ccc)
2003-03-13 04:34:31 +00:00
Jeremy Allison
ddfed383a0 Change size parameters from signed to unsigned to fix up warnings.
Jeremy.
(This used to be commit 2e9880ef7c259b67eb75edc8098b734c3b7b22c1)
2003-03-12 22:24:12 +00:00
Andrew Tridgell
00d89c3f7c fixed a strcat noticed by metze
(This used to be commit db3ad0dbe0bca729f98ca5d5a698388fe086daf2)
2003-03-12 21:01:25 +00:00
Jeremy Allison
15ae0c4ded Ensure we count the length correctly in mangle_map.
Jeremy.
(This used to be commit 596705198c555568da208f59008ab87c5164bfb4)
2003-03-12 19:08:01 +00:00
Gerald Carter
c992f66d73 adding some initiaial code to sert %a to Win2K3 (using Native LanMan string from .NET RC2)
(This used to be commit 4c823e61d14a33344deb887043b60b2e3c83416f)
2003-03-12 15:40:43 +00:00
Andrew Bartlett
f4a8417d6f Add const
(This used to be commit 147a0c8b13d20e06c557fb817a36fddf9a920d65)
2003-03-12 11:00:02 +00:00
Andrew Bartlett
02abe94f81 - Fix a double-free (I can't say I understand the code, but it matches the other
cases and keeps valgrind quiet).

 - Add static

Andrew Bartlett
(This used to be commit e9da9c500b96a828d744e7a1c64427fc01153310)
2003-03-12 10:56:55 +00:00
Andrew Bartlett
a6c6800746 Patch from Ken Cross <kcross@nssolutions.com> to take a username in the form
of user@realm for kerberos logins.

Andrew Bartlett
(This used to be commit ce013dc13e9e77b5cb9b2d5a4b76d54f91614e6c)
2003-03-12 10:36:14 +00:00
Martin Pool
52fbbf051b Update for new version of ComfyChair: some methods are renamed to be
more consistent, and it now looks at command-line arguments to work
out what to do.

Run this program to get a quick demonstration of what ComfyChair does.
(This used to be commit 9b0c59a10707b2bbe3837d718e5030a6cdf19bfa)
2003-03-12 07:17:39 +00:00
Martin Pool
62ead1b8be New import of ComfyChair, many changes
(This used to be commit e84046e769a518fa1970827f4dcb8284ba9b9952)
2003-03-12 07:14:03 +00:00
Martin Pool
eb4ea93ac3 Import Samba Testing Framework code from private CVS module.
(This used to be commit 0effe832a48f0c51d50675558cc2744e815d68c7)
2003-03-12 03:08:28 +00:00
Martin Pool
053435a8fe Import design notes by martin and tpot from ComfyChair and stf modules.
(This used to be commit f923729ca37c18fd58943015a530607c05e96659)
2003-03-12 03:07:46 +00:00
Martin Pool
57b68013e1 Import ComfyChair framework from trunk.
(This used to be commit a7fb1fcc72ffe3cc2aa9c5abfcbd8197e7610167)
2003-03-12 03:06:42 +00:00
Martin Pool
ffd5eae60e Start importing the Python testing framework that Tim and I have been
working on into the main Samba tree.
(This used to be commit f3b77aae13df2559a81db6453d04e0fe8004cd52)
2003-03-12 03:04:37 +00:00
Martin Pool
9a63d8bc2a Update usage message.
(This used to be commit 17f01f6959fb79ba11a56d6869ec9789e3ee2f74)
2003-03-12 02:58:45 +00:00
Martin Pool
a16b155fc9 Add example of string overflow which is now caught in developer mode.
(This used to be commit dcf1705782f5d589120624c90b695b81a0332e6b)
2003-03-12 02:57:48 +00:00
Jeremy Allison
0a2d131a35 We use unsigned now, so use %u.
Jeremy.
(This used to be commit 01727b0296ee407e49444b9d9c4e7993892cb537)
2003-03-11 20:57:41 +00:00
Jeremy Allison
77916f652f Fix up zero termination. Spotted by Sebastian Krahmer <krahmer@suse.de>.
Jeremy.
(This used to be commit 69becdb563b2620513931811a6695481bebcceed)
2003-03-11 18:10:36 +00:00
Andrew Bartlett
3b580ff000 This patch attemptes to clean up winbindd's mutex locking.
The current locking scheme in winbind is a complete mess - indeed, the
next step should be to push the locking into cli_full_connection(), but
I'll leave it for now.

This patch works on the noted behaviour that 2 parts of the connection
process need protection - and independent protection.  Tim Potter did
some work on this a little while back, verifying the second case.

The two cases are:
 - between connect() and first session setup
 - during the auth2 phase of the netlogon pipe setup.

I've removed the counter on the lock, as I fail to see what it gains us.

This patch also adds 'anonymous fallback' to our winbindd -> DC connection.

If the authenticated connection fails (wbinfo -A specifed) - say that
account isn't trusted by a trusted DC - then we try an anonymous.

Both tpot and mbp like the patch.

Andrew Bartlett
(This used to be commit 0620320002082298a15cbba72bd79aecfc607947)
2003-03-11 11:28:59 +00:00
Andrew Bartlett
17030fc403 security=domain and domain logons = yes should be a BDC (of sorts).
Matches 2.2

Andrew Bartlett
(This used to be commit f6497fd639c5bb7d61eda0286c4c3c38609933b0)
2003-03-11 10:53:46 +00:00
Andrew Bartlett
60a8e3c20c Some further tought on the server role issue - try not to break it compeatly.
Andrew Bartlett
(This used to be commit 4c6a2d8d28d1752d7fee52d253ce2829bd0a0671)
2003-03-11 10:13:57 +00:00
Andrew Bartlett
da6266f4f1 After 'consultation' with idra, this is how I think the server roles should work...
Andrew Bartlett
(This used to be commit 5c1f1005907bf50b809dfae1f8251c7122103098)
2003-03-11 10:06:34 +00:00
Simo Sorce
d40890e6a0 This is how combination of domain logons and security parameter best combine.
Comments wellcome.


Simo.
(This used to be commit e1431424e7603d946f63cfe7fe669b0b32ac8095)
2003-03-11 09:16:37 +00:00
Martin Pool
2e01ef5957 Remove valgrind_strlen function, hopefully no longer needed with
recent Valgrind relases and clashing with -DVALGRIND.
(This used to be commit 98479f1315cf8968152e1566966ac57e171008c3)
2003-03-11 07:25:48 +00:00
Martin Pool
6f7ac2dcab Note about using Valgrind with tdbs.
(This used to be commit 36c6f67d4af50d8fc4c8bd54486df315861d55c2)
2003-03-11 07:23:43 +00:00
Andrew Tridgell
538c832ba1 having sticky create times is not a bug
(This used to be commit f283f71104319fa9f1e7d22fc91b8d7224ae157a)
2003-03-11 06:53:44 +00:00
Andrew Tridgell
191b44b91c fixed the MANGLE smbtorture test with the new paranoid string code
(This used to be commit 7be44dbe009a8d831c0720a2649fc871b067beef)
2003-03-11 06:53:10 +00:00
Andrew Tridgell
c13990277f make sure we have an empty directory when we start the utable test
(This used to be commit af415842b80f024ca26b4e3bc52fd73fce0a28f3)
2003-03-11 06:31:23 +00:00
Martin Pool
cca61adcd2 If using --enable-developer and valgrind.h is present, define VALGRIND.
(This used to be commit 71c8e90117f00f168416f2f35a1c25755e2d0ed4)
2003-03-11 05:57:53 +00:00
Martin Pool
ee28d38fbc When opening an existing DB, don't require the hash_size specified to
the open call to be the same as that of the existing tdb.  The
specified hash_size is only used if the tdb needs to be (re)created.

With this patch in place, tdbtool can open the printing tdbs, which
are created with a hash_size of 5000.  Before it would fail with EIO.
(This used to be commit e412dd6d7e5a41de94c07c64b186390ccce104cc)
2003-03-11 04:21:14 +00:00
Tim Potter
dcf7cad4bf Remove obsolete file.
(This used to be commit c5c1a7979385778c08d6dd7796cfe8be1815992f)
2003-03-11 02:30:17 +00:00
Martin Pool
2e3f9c35d5 Patch from Ronan Waide:
> when doing "enumdomusers", rpcclient prints each one preceded by the
> word "group" instead of "user"
(This used to be commit 17567dd1d510d4cf1dffa67be78510ae51571ec6)
2003-03-11 00:14:55 +00:00
Volker Lendecke
06c4d9a8ff Some conversion to pstrcpy_base.
Volker
(This used to be commit 329911e43681b724cb0579aad77b4a658759d7ba)
2003-03-10 16:59:29 +00:00
Gerald Carter
683c17ac0d check a pointer before dereferencing it; not sure why userdata == NULL though
(This used to be commit 6fca29ddcdb111af24ee051b555ab4eec8cadd1d)
2003-03-10 15:05:06 +00:00
Andrew Bartlett
8cad904f38 Don't segfault on make_server_info_guest() failure - instead return the
error code.

make_server_info_guest() requires an entry in the SAM at the moment, but
this will change before release.

Andrew Bartlett
(This used to be commit 6a956390fa253e87e38b3f1909f13595fbf2767a)
2003-03-10 12:08:32 +00:00
Martin Pool
fba0a72035 Use "$@" to preserve shell quoting in case somebody passes an escaped
string as a configure parameter.
(This used to be commit 3285c80cb0e41d6736b4f74b01a65d55753a7920)
2003-03-10 03:04:47 +00:00
Andrew Tridgell
8dd9e99f37 fixed use_oplocks and the timeout in smbtorture startup
(This used to be commit cec1ef09e5009cdac22e6c9ca101a49c5ef36b1a)
2003-03-10 02:51:30 +00:00
Andrew Tridgell
44bd743c28 added -i option for ignoring dot errors in masktest
(This used to be commit 0f4d1172a6add3f490fca22a45975d2588485146)
2003-03-10 02:49:52 +00:00
Andrew Bartlett
190708832c Makefile.in for NTLMSSP singing update
(This used to be commit 7717555438e4d74bb63d12abde3573933c15342a)
2003-03-10 02:48:32 +00:00
Andrew Bartlett
e9a94cd2c9 Further work on NTLMSSP-based SMB signing. Current status is that I cannnot
get Win2k to send a valid signiture in it's session setup reply - which it will
give to win2k clients.

So, I need to look at becoming 'more like MS', but for now I'll get this code
into the tree.  It's actually based on the TNG cli_pipe_ntlmssp.c, as it was
slightly easier to understand than our own (but only the utility functions
remain in any way intact...).

This includes the mysical 'NTLM2' code - I have no idea if it actually works.

(I couldn't get TNG to use it for its pipes either).

Andrew Bartlett
(This used to be commit a034a5e381ba5612be21e2ba640d11f82cd945da)
2003-03-10 02:14:35 +00:00
Martin Pool
de6b39d898 Clobber strings with 0xf1f1f1f1 before writing to them to check buffer
lengths are correct.  Attempts to pstrcpy into an fstring or allocated
string should fail in developer builds.

This builds on abartlet's earlier overflow probe for safe_strcpy, but
by clobbering the whole string with a nonzero value is more likely to
find overflows on the stack.

This is only used in -DDEVELOPER mode.

Reviewed by abartlet, tpot.
(This used to be commit 8d915e266cd8ccc8b27e9c7ea8e9d003d05f8182)
2003-03-10 01:10:45 +00:00