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

11109 Commits

Author SHA1 Message Date
Andrew Bartlett
a7f9c3657f Add copyright. -
Volker Lendecke
e8975d6e7b Fix memory leak.
Volker
-
Tim Potter
03a227b7ee Added a slightly modified version of Tridge's note about securing
a Samba server.
-
Tim Potter
a43fe8e5f0 Run autoconf. Shouldn't we have an autogen.sh here? -
Andrew Bartlett
21add5f97d Fix invalid SAFE_FREE() of talloc()ed memory.
Andrew Bartlett
-
Andrew Bartlett
32eb2cdca6 Brain fart - make sure we truncate the right string...
Andrew Bartlett
-
Tim Potter
2842e0925d Call AC_MSG_ERROR if jw, perl or htmldoc is not installed rather than
generate a bodgy Makefile.
-
Andrew Bartlett
fc1408d5d1 Fix const warnings.
Andrew Bartlett
-
Andrew Bartlett
02f81719c7 Add const. -
Andrew Bartlett
0e8dd52f69 More statcache fixes - and add a bit more doco.
Andrew Bartlett
-
Tim Potter
ac3df9a805 Applied waider's patch to return DOS error codes for pipes that
support it.
-
Tim Potter
b20a357ac5 Ignore .pyc files. -
Andrew Bartlett
a12e852499 Fix a memory leak - 'smbcontrol smbd pool-usage' is your freind!
Andrew Bartlett
-
Tim Potter
39124b9a62 Some cosmetic changes to make the popt --usage output look nicer. -
Andrew Bartlett
3fd07bd25e Fix memory leaks and add parinoioa code to our stat() cache.
Andrew Bartlett
-
Andrew Bartlett
a0208a4f74 Missed one when I move 'share_sanity_checks' to use an fstring for 'dev'.
Andrew Bartlett
-
Andrew Bartlett
9f3d3c3801 Make sure we mark the assumption of a fstring parameter for 'devicetype'
in the function prototype, and change callers to respect this.

Andrew Bartlett
-
Andrew Bartlett
5371720971 Add const. -
Andrew Bartlett
fe2bc64bc4 - Make ReadDirName return a const char*.
- Consequential changes from that

 - mark our fstring/pstring assumptions in function prototypes

Andrew Bartlett
-
Andrew Bartlett
4e96585b60 Try to avoid dereferencing a null pointer.
Andrew Bartlett
-
Andrew Bartlett
7ff77ab46c New statcache internals - this time it's actually possible to follow what's
going on.

In particular, add doxygen documentation.

Andrew Bartlett
-
Andrew Bartlett
4d00626b6e Fix nmbd under -DDEVELOPER (pstrcpy on not-pstring).
Make a new macro to help in this situation, and add memcpy() parinoia

Andrew Bartlett
-
Andrew Bartlett
56dce7ddad Changes to help the kerberos change password code work on systems that
have some of the labels 'duplicated' (ie, the defines double-up).

Also, to an ads_connect() to try and find our KDC. (So we don't segfualt
*every* time)

Andrew Bartlett
-
Andrew Bartlett
193e80fafb More work on my macro mess - we need function prototypes of different types,
and we were missing the 'char' type.

Andrew Bartlett
-
Andrew Bartlett
069825bd78 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
-
Andrew Bartlett
97daece056 Fix non-gmake syntax error. -
Steve French
a55acfd7a2 Checkin cifs vfs for Linux mount helper -
Andrew Bartlett
94424c5d72 Fix the 'non-optomizing compiler' case...
Andrew Bartlett
-
Andrew Bartlett
618bda3a28 Fix the non-DEVELOPER case of my macro madness...
Andrew Bartlett
-
Andrew Bartlett
a13ce0df4b Minor fixes.
- signed/unsigned
 - quieten warning about assignment as truth value
 - whitespace

Andrew Bartlett
-
Andrew Bartlett
67a0319d26 Remove an unused function and fix the build.
Andrew Bartlett
-
Andrew Bartlett
37436b0aae Fix signed/unsigned issues - mostly 'i' counters.
Fix an inconpatible poitner type that caused the IA64 not to build

Andrew Bartlett
-
Andrew Bartlett
f6bcfa5944 signed/unsigned fix -
Andrew Bartlett
31f4827acc 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
-
Andrew Bartlett
9af30c9aae Fix off-by-one bug in safe_strcpy size paramater. -
Andrew Bartlett
a07fccb7ae Truncate the machinename manually, so as not to generate level 0 debugs for
an expected situation.

Andrew Bartlett
-
Andrew Bartlett
f6ea572cd5 specify the size of these buffers -
Andrew Bartlett
4b1337ee94 If the server went away, don't segfault by attempting to FD_SET -1.
Andrew Bartlett
-
Andrew Bartlett
aa12379b3f Specify buffer sizes -
Andrew Bartlett
2effcae13f Be parinoid, malloc an extra SAFETY_MARGIN on the client's inbuf and outbuf.
Andrew Bartlett
-
Andrew Bartlett
7ab6559369 client-side smbpasswd fixes - use pstrcpy_base to avoid clobber_region bugs
Andrew Bartlett
-
Andrew Bartlett
f07a93eaeb Add const, and a signed/unsigned fix. -
Andrew Bartlett
bf5e0698ee If it's an fstring, use fstrcpy().
Andrew Bartlett
-
Andrew Bartlett
3465cd6cd9 Clean up the VFS module loading logic by making the parameter an P_LIST,
rather than a runtime-parsed string.

Andrew Bartlett
-
Andrew Bartlett
b56613c1cc Found by my new checking code (yet to be commited):
Allow a service longer than 4 characters in CORE tcon.

Andrew Bartlett
-
Andrew Bartlett
49bae02273 strictly, you can't #if on somthing that may or may not be defined.
Andrew Bartlett
-
Andrew Bartlett
7154fe1096 Now that mimir has done the grunt work, I'll fix up the comment -
Gerald Carter
2487480228 fix WinXP & Win2K3 remote_arch and check pointer in ntlmssp code before dereferencing -
Rafal Szczesniak
d81b0d2690 We haven't implemented The Singing Contexts so far.
Who knows what .NET server brings, though ...?  ;-)


Rafal
-
Rafal Szczesniak
0cd45d5d3b 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
-