1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

9882 Commits

Author SHA1 Message Date
Andrew Bartlett
0dca6fab27 A hack to get us building on a slightly older heimdal kerberos. It appears
that we don't need this flag - heimdal's internal password change routines
don't set it.

Andrew Bartlett
(This used to be commit 069825bd78f2bf125e8a4e72933da924d393f5a5)
2003-03-15 23:16:40 +00:00
Andrew Bartlett
4b6b03e183 Fix non-gmake syntax error.
(This used to be commit 97daece056516e52e56bf5a749676e7c53e087e3)
2003-03-15 22:57:00 +00:00
Steve French
2055e724ad Checkin cifs vfs for Linux mount helper
(This used to be commit a55acfd7a296c5ae9b043dc03393a29d87e43a40)
2003-03-15 22:35:47 +00:00
Andrew Bartlett
a4261c2295 Fix the 'non-optomizing compiler' case...
Andrew Bartlett
(This used to be commit 94424c5d72246b2e58f3a21aa0de6949d7eb2da1)
2003-03-15 11:28:45 +00:00
Andrew Bartlett
662b549818 Fix the non-DEVELOPER case of my macro madness...
Andrew Bartlett
(This used to be commit 618bda3a28f65417e3c31a70229f6da70cf223fc)
2003-03-15 10:59:14 +00:00
Andrew Bartlett
02704f9733 Minor fixes.
- signed/unsigned
 - quieten warning about assignment as truth value
 - whitespace

Andrew Bartlett
(This used to be commit a13ce0df4b4a776fa635a1fb804dd00d195f58d0)
2003-03-15 08:18:29 +00:00
Andrew Bartlett
f1d333ea35 Remove an unused function and fix the build.
Andrew Bartlett
(This used to be commit 67a0319d268dfc0e2154d3ab0f8bf866e3cbb6db)
2003-03-15 08:03:11 +00:00
Andrew Bartlett
a27d434c4b Fix signed/unsigned issues - mostly 'i' counters.
Fix an inconpatible poitner type that caused the IA64 not to build

Andrew Bartlett
(This used to be commit 37436b0aae108fceace3049d3868510e1ba592ac)
2003-03-15 07:45:51 +00:00
Andrew Bartlett
d8549b0360 signed/unsigned fix
(This used to be commit f6bcfa59447700e0ccfc069d0228019a9bdca9d2)
2003-03-15 07:16:32 +00:00
Andrew Bartlett
3b5bc93e9d String handling parinoia fixes.
This patch enables the compile-time checking of strings assable by means of
sizeof().  (Original code had the configure check reversed).

This is extended to all safe_strcpy() users, push_string and pull_string,
as well as the cli and srv derivitives.  There is an attempt to cap strings
at the end of the cli buffer, and clobber_region() of the speified length
(when not -1 :-).

Becouse of the way they are declared, the 'overmalloc a string' users of
safe_strcpy() have been changed to use overmalloc_safe_strcpy() (which skips
some of the checks).

This whole ball of mud worked fine, until I pulled out my 'fix' for our
statcache.  When jeremy fixes that, we should be able to get back to testing
this stuff.

This patch also includes a 'marker' of the last caller to clobber_region (ie,
the function that called pstrcpy() that called clobber_region) to assist in
debugging problems that may have smashed the stack.  This is printed at
smb_panic() time.  (Original idea and patch by metze).

It also removes some unsused functions, and #if 0's some others that are
unused but probably should be used in the near future.

For now, this patch gives us some confidence on one class of trivial parsing
error in our code.

Andrew Bartlett
(This used to be commit 31f4827acc2a2f00399a5528fc83a0dae5cebaf4)
2003-03-15 07:14:55 +00:00
Andrew Bartlett
9a00acc472 Fix off-by-one bug in safe_strcpy size paramater.
(This used to be commit 9af30c9aae3623c4db1edca39a91973f0279acb4)
2003-03-15 06:54:09 +00:00
Andrew Bartlett
32ae87014c Truncate the machinename manually, so as not to generate level 0 debugs for
an expected situation.

Andrew Bartlett
(This used to be commit a07fccb7ae169c0b5089e3f7d2c5d6465b2e4686)
2003-03-15 06:53:37 +00:00
Andrew Bartlett
eca1293fad specify the size of these buffers
(This used to be commit f6ea572cd57d4e655d387fe225a5d7122d587a9b)
2003-03-15 06:51:57 +00:00
Andrew Bartlett
58abc7b5b6 If the server went away, don't segfault by attempting to FD_SET -1.
Andrew Bartlett
(This used to be commit 4b1337ee94a19e39a2f4012c4dbc32a2e58cacf5)
2003-03-15 06:50:45 +00:00
Andrew Bartlett
a4ba049684 Specify buffer sizes
(This used to be commit aa12379b3fd9646199a8ff3f217ec7dfef1942a5)
2003-03-15 06:46:43 +00:00
Andrew Bartlett
dc7c505dec Be parinoid, malloc an extra SAFETY_MARGIN on the client's inbuf and outbuf.
Andrew Bartlett
(This used to be commit 2effcae13f9dfbff40b34d32c7fd82118c3fd096)
2003-03-15 06:46:05 +00:00
Andrew Bartlett
16ec110b0f client-side smbpasswd fixes - use pstrcpy_base to avoid clobber_region bugs
Andrew Bartlett
(This used to be commit 7ab6559369b4e6ee3c5269d8cff04e5a39f6b493)
2003-03-15 06:45:19 +00:00
Andrew Bartlett
6fe590983b Add const, and a signed/unsigned fix.
(This used to be commit f07a93eaeba20f5704f43c7f02141adc564db136)
2003-03-15 06:43:37 +00:00
Andrew Bartlett
d21f97a25d If it's an fstring, use fstrcpy().
Andrew Bartlett
(This used to be commit bf5e0698eed72d7fc005be08feb36ef82ada716c)
2003-03-15 06:42:44 +00:00
Andrew Bartlett
44f9f1042c Clean up the VFS module loading logic by making the parameter an P_LIST,
rather than a runtime-parsed string.

Andrew Bartlett
(This used to be commit 3465cd6cd92c39c018979b5a82acbddca0927623)
2003-03-15 06:41:31 +00:00
Andrew Bartlett
c3221b8377 Found by my new checking code (yet to be commited):
Allow a service longer than 4 characters in CORE tcon.

Andrew Bartlett
(This used to be commit b56613c1cc13ebd5c9ba11a35d2f96c4c3eb0628)
2003-03-15 06:34:32 +00:00
Andrew Bartlett
ef07127b30 strictly, you can't #if on somthing that may or may not be defined.
Andrew Bartlett
(This used to be commit 49bae0227323e811cb71ada24928d24f7dc56d1f)
2003-03-15 06:31:23 +00:00
Andrew Bartlett
dadae3bdd2 Now that mimir has done the grunt work, I'll fix up the comment
(This used to be commit 7154fe10969a34b97ddc8321bfb5271b8e6d4795)
2003-03-15 06:10:48 +00:00
Gerald Carter
7ae555c43c fix WinXP & Win2K3 remote_arch and check pointer in ntlmssp code before dereferencing
(This used to be commit 2487480228b99183cab9e34ab497997e0c144ed6)
2003-03-14 23:11:19 +00:00
Rafal Szczesniak
9db9982cd3 We haven't implemented The Singing Contexts so far.
Who knows what .NET server brings, though ...?  ;-)


Rafal
(This used to be commit d81b0d26903004be6a99ac029dd531fd18947268)
2003-03-14 17:20:13 +00:00
Rafal Szczesniak
5f86db85df Extending code to work both in case of domain membership
and domain controller respecting interdomain trust relationships.
In the latter case we need to find DC of remote domain instead
of ours. In the former 'domain' is our domain name.


Rafal
(This used to be commit 0cd45d5d3b3e3ec5a589c3ee9f0e369901eefe8f)
2003-03-14 17:16:33 +00:00
Rafal Szczesniak
e583dd6278 Fresh meat in trusted domains code:
- packing/unpacking utility functions for trusted domain
   password struct; can be used to prepare buffer to store
   in secrets.tdb or (soon) passdb backend
 - similiar functions for DOM_SID
 - respectively modified secrets_(fetch|store) routines
 - new auth mapping code utilising introduced is_trusted_domain
   function
 - added tdb (un)packing of single bytes



Rafal
(This used to be commit 5281ee7e84421b9be746aed2f1718ceaf2a2fe3d)
2003-03-14 17:12:40 +00:00
Rafal Szczesniak
33c8a6779d /tmp/newfun.msg
(This used to be commit 3f4cb7b2c4d9b54b41bcc184ccfd00032e2b021b)
2003-03-14 17:05:13 +00:00
Andrew Bartlett
e37372f4d6 Found by metze with the clobber-region check - if it's a pstring, use pstrcpy().
Andrew Bartlett
(This used to be commit f9c3c93f55cac774e576fd5975c0582e0b334d6a)
2003-03-14 10:02:12 +00:00
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