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

8229 Commits

Author SHA1 Message Date
Andrew Bartlett
6b42029de9 r13269: ${prefix} is a special case in the autoconf/build system, and should
be escaped as \${prefix}, otherwise it evaluates too early as "NONE".

Andrew Bartlett
2007-10-10 13:51:40 -05:00
Andrew Tridgell
a49d024f3d r13268: fixed typo noticed by Aaron Seigo 2007-10-10 13:51:40 -05:00
Andrew Bartlett
75489ac8bc r13265: Clarify how delegation works with the remote RPC backend.
Andrew Bartlett
2007-10-10 13:51:40 -05:00
James Peach
6e55241a84 r13264: Move declaration before code. 2007-10-10 13:51:40 -05:00
James Peach
7354de62a7 r13263: Check whether open(2) will accept the O_DIRECT flag. This should fix the
build on NetBSD.
2007-10-10 13:51:39 -05:00
Andrew Bartlett
29cb5af827 r13258: Fix the talloc heirachy for ldb_tdb.
In the return value res->msgs, msgs was not a child of res, in the
indexed path.  Instead, it hung directly off the ldb, which was
sometimes a long-term context.

Also remove unused parameters.

Found by --leak-report-full

Andrew Bartlett
2007-10-10 13:51:39 -05:00
Andrew Bartlett
53efb3e3e9 r13256: Free temporary memory on error cases, and try to clean up what's left
earlier.

Move gendb_search() to use talloc_vasprintf() and steal only the parts
actually being used for the results.

Andrew Bartlett
2007-10-10 13:51:39 -05:00
James Peach
cd2f94a658 r13255: New CIFS dd client for use in performance testing. The guts of this is
in client/cifsdd*, which implements a minimal implementation of dd. The
IO path is careful to always perform IO at the requested block size.

There is a very basic test suite in script/tests/test_cifsdd.sh which
covers local and remote IO at a variety of block sizes.

Added to lib/util_str.c is a small set of conv_str_*() functions to
convert strings to the corresponding type.

smbcli_parse_unc is modified to insert NULL terminators after its
hostname and sharename parameters. This allows it to correctly parse a
path of the form //foo/share/path/file.
2007-10-10 13:51:39 -05:00
Andrew Bartlett
35517573ff r13253: More work to ensure that we don't keep data on long-term contexts.
Andrew Bartlett
2007-10-10 13:51:38 -05:00
Andrew Bartlett
c6eb74f429 r13252: Cleanup, both in code, comments and talloc use:
In particular, I've used the --leak-report-full option to smbd to
track down memory that shouldn't be on a long-term context.  This is
now talloc_free()ed much earlier.

Andrew Bartlett
2007-10-10 13:51:38 -05:00
Andrew Bartlett
3570a62876 r13250: I missed a couple of talloc_free()'s
Andrew Bartlett
2007-10-10 13:51:38 -05:00
James Peach
08bdaa8e10 r13249: Check for alloca.h. popt needs this. 2007-10-10 13:51:38 -05:00
James Peach
8aa8be93b0 r13248: Revert revision 13071. It turns out that sys/param.h can be implicitly
included from other headers. In this case, undeffing MIN and MAX is a
really bad idea because the subsequent include of sys/param.h will do
nothing because of its include guards.
2007-10-10 13:51:38 -05:00
Andrew Bartlett
85b3f6ebdd r13247: Try to make better use of talloc in the auth/ and auth/gensec code.
We don't want temporary memory hanging around on the long-term
contexts.

Andrew Bartlett
2007-10-10 13:51:37 -05:00
Andrew Bartlett
fc045b42c2 r13246: Print winbindd pipe location correctly.
Andrew Bartlett
2007-10-10 13:51:37 -05:00
Andrew Bartlett
1e840aa436 r13245: Don't segfault if we don't have a credentials structure on this gensec
context.

Andrew Bartlett
2007-10-10 13:51:37 -05:00
Andrew Bartlett
8866aa06ff r13244: Allow control of the location of the Samba3-compatible winbindd pipe
in Samba4.  This allows us to start winbindd by default, including in
'make test'.

This is via a new 'winbindd socket directory' parameter for utilities
linked against loadparm, as well as a --with-winbindd-socket-dir
option to configure (setting the default and the value for simple
clients).

I hope to add basic winbindd tests, to ensure continued correct
operation, but at least now I don't have to manually change my 'server
services' line.

The other problem with the hard-coded /tmp/.winbind is that RedHat has
moved this in Fedora (to /var/run I think).  For this reason, this
functionality should probably be ported to Samba3 as well.

The default for Samba4 is PREFIX/var/run/winbind_pipe.

I have also re-added the paranoia checks from Samba3 for correct
permissions on the socket directory.

Andrew Bartlett
2007-10-10 13:51:37 -05:00
James Peach
92eec04962 r13243: Bring __FUNCTION__ checks across from Samba 3. 2007-10-10 13:51:36 -05:00
James Peach
53ac5a2fb2 r13242: cc-1009 cc: WARNING File = librpc/idl/nbt.idl, Line = 579
cc-1009 cc: WARNING File = librpc/idl/nbt.idl, Line = 580
  A "/*" appears inside a comment.
2007-10-10 13:51:36 -05:00
James Peach
3ade52398a r13241: Work around missing AS_HELP_STRING definition in autoconf 2.57. Fix
from Brad Hards <bradh@frogmouth.net>.
2007-10-10 13:51:36 -05:00
Andrew Bartlett
ea0a53d679 r13240: Make the test scripts use the new smb.conf location (in PREFIX/etc).
Andrew Bartlett
2007-10-10 13:51:36 -05:00
Andrew Bartlett
2b605cf22c r13239: Silly little patch: make the order of declaration match the order of use. 2007-10-10 13:51:36 -05:00
Stefan Metzmacher
6c7065463f r13228: revert more stuff from 13208
metze
2007-10-10 13:51:36 -05:00
Stefan Metzmacher
03a0363850 r13227: revert some more stuff from 13208
metze
2007-10-10 13:51:35 -05:00
Stefan Metzmacher
b8a6792a43 r13226: remove empty file
metze>
2007-10-10 13:51:35 -05:00
James Peach
2aefbcb472 r13225: Enable full compiler warnings for developer mode on IRIX. 2007-10-10 13:51:35 -05:00
Jelmer Vernooij
e3d0676aee r13210: Revert my named pipes patch until it passes not just 'make quicktest' but
also 'make test'
2007-10-10 13:51:35 -05:00
Jelmer Vernooij
898d15acbd r13208: Clearly separate named pipes from the IPC$ NTVFS type.
This allows the easy addition of additional named pipes and removes the
circular dependencies between the CIFS, RPC and RAP servers.

Simple tests for a custom named pipe included.
2007-10-10 13:51:34 -05:00
Andrew Bartlett
b0b150d08a r13207: Use the new API for using/not using kerbeors in hdb-ldb.c
Update the rootdse module to use the new schema.

Andrew Bartlett
2007-10-10 13:51:34 -05:00
Andrew Bartlett
1ac7976ea6 r13206: This patch finally re-adds a -k option that works reasonably.
From here we can add tests to Samba for kerberos, forcing it on and
off.  In the process, I also remove the dependency of credentials on
GENSEC.

This also picks up on the idea of bringing 'set_boolean' into general
code from jpeach's cifsdd patch.

Andrew Bartlett
2007-10-10 13:51:33 -05:00
Andrew Bartlett
78d634047f r13205: Add another useful comment.
Andrew Bartlett
2007-10-10 13:51:33 -05:00
Andrew Bartlett
765caa14b3 r13204: Remove extra newline we don't need.
Andrew Bartlett
2007-10-10 13:51:33 -05:00
Andrew Bartlett
8e2b461669 r13203: Make this comment clearer.
Andrew Bartlett
2007-10-10 13:51:33 -05:00
Simo Sorce
9be094f7f4 r13189: suggest a couple of dev libs before compiling. 2007-10-10 13:51:33 -05:00
Jelmer Vernooij
da72f47226 r13186: Remove assumption that callers that specify -1 actually mean sizeof(pstring) 2007-10-10 13:51:32 -05:00
Jelmer Vernooij
841fb3d4e7 r13182: Add first bits of browsing testsuite. 2007-10-10 13:51:32 -05:00
Jelmer Vernooij
e9059ea0c5 r13181: Fix standalone ldb build 2007-10-10 13:51:32 -05:00
Jelmer Vernooij
13bcc90fde r13180: Add note about smb.conf location 2007-10-10 13:51:32 -05:00
Jelmer Vernooij
7bd2947286 r13179: Add note about removing the optional password argument to smbclient. 2007-10-10 13:51:32 -05:00
Jelmer Vernooij
f7c28d3148 r13170: Remove some dependencies on -1 implying the size of pstring 2007-10-10 13:51:31 -05:00
Jelmer Vernooij
d5714f7284 r13169: Fix typo (noticed by Jeroen Keiren) 2007-10-10 13:51:31 -05:00
Simo Sorce
b9d1d02f38 r13167: handle cotrols' reply even in error 2007-10-10 13:51:31 -05:00
Simo Sorce
335050b30d r13166: Patches form Brad Hards 2007-10-10 13:51:31 -05:00
Stefan Metzmacher
615b82f7c7 r13163: as we don't import the raw magic configure vars for
libdir, datadir, sysconfdir,localstatedir into our Makefile
we need to expand them in configure

I'll maybe rework this later but for now this works

metze
2007-10-10 13:51:31 -05:00
Jelmer Vernooij
94dd559755 r13161: Remove optional password as second parameter. Improve return values a bit. 2007-10-10 13:51:30 -05:00
Jelmer Vernooij
765991ab48 r13160: Fix some of the smbclient testsuite (after failures on the buildfarm) 2007-10-10 13:51:30 -05:00
Jelmer Vernooij
c3bc39bd71 r13158: Fix setup and ejs paths 2007-10-10 13:51:30 -05:00
Jelmer Vernooij
2384dec6f2 r13157: Fix installation of js files 2007-10-10 13:51:30 -05:00
Jelmer Vernooij
861d45beda r13156: Add some tests for smbclient 2007-10-10 13:51:30 -05:00
Jelmer Vernooij
d9902e1477 r13155: Large amount of updates to smbclient to:
- Remove global variables (pass things around as variables, add a 'struct smbclient_context')
 - Get rid of pstring
 - Fix up some of the return values
 - Fix some generally weird code
2007-10-10 13:51:29 -05:00