1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
Commit Graph

10423 Commits

Author SHA1 Message Date
Rafal Szczesniak
2ccef5554f r18615: add more time fields and fix a silly mistake.
rafal
(This used to be commit 06e0c5d166)
2007-10-10 14:18:56 -05:00
Rafal Szczesniak
d630105b56 r18614: a bit of work done while on the plane.
a new function converting NTTIME to struct timeval

rafal
(This used to be commit e9ebbb8661)
2007-10-10 14:18:56 -05:00
Günther Deschner
57cd2235fa r18611: Do not return NT_STATUS_OK when libnet_Add|DelShare has failed.
Guenther
(This used to be commit 1709ad741b)
2007-10-10 14:18:56 -05:00
Günther Deschner
28c9c212bc r18610: Fix typo.
Guenther
(This used to be commit 759914a07e)
2007-10-10 14:18:56 -05:00
Günther Deschner
e7ede84c33 r18609: error_string should not contain newlines.
Guenther
(This used to be commit 5566667564)
2007-10-10 14:18:56 -05:00
Stefan Metzmacher
6e47a2bb75 r18607: remove unused structure element
rafal: is there a reason why we don't use libnet_AddShare() in the torture test?

metze
(This used to be commit 070a98379a)
2007-10-10 14:18:55 -05:00
Andrew Tridgell
69eed6a4ba r18604: fixed shell syntax
(This used to be commit 61104953c8)
2007-10-10 14:18:55 -05:00
Andrew Tridgell
1188fa1a18 r18602: updated web page for new ldb build method
(This used to be commit 36c35262f2)
2007-10-10 14:18:55 -05:00
Andrew Tridgell
f96b8c5391 r18601: updated web page for new talloc build method
(This used to be commit fbd8028080)
2007-10-10 14:18:55 -05:00
Andrew Tridgell
e84ee4a6fd r18600: - fix shell syntax in tests for libraries
- add library test for libpopt
(This used to be commit 13878b7e7e)
2007-10-10 14:18:55 -05:00
Andrew Tridgell
e7b9aeb883 r18599: the netr_CryptPassword structure needs to use a uint8, as the data is
passed to acrfour, and that assumes a byte buffer. This caused us to
fail big endian boxes (or more specifically, to be incompatible with
little endian boxes)
(This used to be commit a44f2eda1e)
2007-10-10 14:18:54 -05:00
Andrew Tridgell
ee528dc0f2 r18596: removed superfluous semicolon
(This used to be commit 4f3628dea6)
2007-10-10 14:18:54 -05:00
Andrew Tridgell
db6dcaae16 r18595: try an experiment of adding a RPC test into the windows testing
framework

Brad, I know this is a bit hackish. We really need a "testit" like
function like in test_functions.sh
(This used to be commit 7120fbffa5)
2007-10-10 14:18:54 -05:00
Andrew Tridgell
550834c9df r18594: fail the configure step if the required library is not found for tdb,
talloc or libreplace
(This used to be commit 9f45f970f7)
2007-10-10 14:18:54 -05:00
Stefan Metzmacher
4a854fe809 r18593: try to get the same socket_wrapper file building in samba3 and samba4
this is preparation of adding libreplace to samba3 later.

metze
(This used to be commit 26228e4b2e)
2007-10-10 14:18:54 -05:00
Stefan Metzmacher
5d6a38004a r18592: we don't need this twice
metze
(This used to be commit e9fe725cf4)
2007-10-10 14:18:53 -05:00
Simo Sorce
9dd6cac44a r18591: Better defaults for share creation
Fix logic error in paged_results
(This used to be commit 34ce1f8e1b)
2007-10-10 14:18:53 -05:00
Simo Sorce
c4d45aac9d r18590: Some more work on the srvsvc pipe
(This used to be commit 2c035787d4)
2007-10-10 14:18:53 -05:00
Andrew Tridgell
3c76ac114d r18589: make inclusion of net/if.h conditional. It breaks HPUX with gcc.
(This used to be commit ac71f40f8f)
2007-10-10 14:18:53 -05:00
Andrew Tridgell
401f107e0c r18588: save one more character in the socket wrapper path - seems it still
was occasionally too long for IRIX 6.4
(This used to be commit f6b65fd631)
2007-10-10 14:18:53 -05:00
Andrew Tridgell
e13715774c r18587: fixed a potential memory leak in libnet
(This used to be commit 935f6f34cf)
2007-10-10 14:18:52 -05:00
Andrew Tridgell
3d6cdc9e97 r18586: fixed a potential fd and memory leak in the socket_wrapper code
(This used to be commit 6d53f2f5bc)
2007-10-10 14:18:52 -05:00
Andrew Tridgell
9bda2c3ff2 r18585: 50 open searches is still too many for some of the build farm hosts,
which have a ulimit -n of 100. Drop the number of searches to 20.

That should limit the maximum total fd count to about 76, most of
which is all the listening sockets on the various interfaces
(This used to be commit fb5b8c4f8c)
2007-10-10 14:18:52 -05:00
Andrew Tridgell
655b710204 r18584: found one of the fd leaks. The registry backend was using a
talloc(NULL, xxx) to allocate the registry context. That had two
consequences

1) it was a massive memory leak, as all winreg operations leaked their
   entire context (including an open ldb database) every time

2) event_context_find() never found the exsting event context, so we
   used a new event context each time, which called epoll_create()
   each time, which caused a fd to be allocated
(This used to be commit 1c0a3de398)
2007-10-10 14:18:52 -05:00
Andrew Tridgell
d01bbe6842 r18583: a nasty hack to allow me to monitor the number of open file
descriptors in smbd on all build farm machines. I suspect we have a fd
leak somewhere, but its hard to track down.

I know part of the problem is the number of (fake) network interfaces
we define in the build farm tests, with each of them listening on a
whole bunch of different protocol ports. That chews up around 48 file
descriptors just to startup. I don't think thats the real problem
though, and I suspect something else is leaking file descriptors on
some hosts.
(This used to be commit 83bf458ec9)
2007-10-10 14:18:51 -05:00
Andrew Tridgell
481ebe7fd6 r18582: disable synchronous ldb in the build farm. Some hosts have very slow
filesystems and the tests are taking more than 1.5 hours. We will
still be testing the sync code paths, as the ldb tests still run
synchronous, but doing all of our other tests synchronously just costs
too much time.
(This used to be commit ce2baf7385)
2007-10-10 14:18:51 -05:00
Andrew Tridgell
c5e67b8555 r18581: also check for SEC_STD_DELETE, and split out the check into a separate
static function
(This used to be commit 024ca6a91c)
2007-10-10 14:18:51 -05:00
Andrew Tridgell
9c53e14602 r18580: map the PVFS_FLAG_READONLY bit in the posix backend onto
NT_STATUS_ACCESS_DENIED in the access mask checks
(This used to be commit ceffc34f3e)
2007-10-10 14:18:51 -05:00
Andrew Tridgell
7c017f9015 r18579: fixed boolean parameters on big endian hosts which have
sizeof(BOOL) != sizeof(int)

this broke with the conversion to a real BOOL type
(This used to be commit 75dab73ac6)
2007-10-10 14:18:50 -05:00
Andrew Tridgell
61939ce118 r18578: steve, I think you may have forgotten to commit test_cifsposix.sh ?
(This used to be commit fea75d2c97)
2007-10-10 14:18:50 -05:00
Andrew Tridgell
768af9b576 r18577: reduce the number of tests run in 'make quicktest' again, so it
completes in a minute on my laptop (the benchmark I usually use).

Simo, I removed th ldb tests, as ldb is pretty well tested by lots of
the other tests, and its a pretty slow test. We could instead add a
"ldb-testquick.sh" which does only minimal testing. The full tests
will of course be run with 'make test' and in the build farm.
(This used to be commit 3cee6a7863)
2007-10-10 14:18:50 -05:00
Andrew Tridgell
158764412e r18576: unfortunately our current build farm results are a bit too good!
when I changed the test output to be easier to read, I also broke it
so that it always gives a zero exit status. Fix now, and unfortunately
I expect to see some more red in the farm as a result :(
(This used to be commit c2fc347102)
2007-10-10 14:18:49 -05:00
Andrew Tridgell
ba4115ece7 r18575: - use the right variable to teststatus
- don't display the "(NN tests failed so far)" message unless a test
  has failed
(This used to be commit da37e963ce)
2007-10-10 14:18:49 -05:00
Andrew Tridgell
818b01f177 r18574: re-enable the echo pipe in smbscript. I suspect disabling this was an
accidental part of commit in the recent echo.idl changes (in r18565)
(This used to be commit 5e143267d7)
2007-10-10 14:18:49 -05:00
Andrew Tridgell
d6c128fb4c r18571: try to make it a lot more obvious when 'make test' or 'make quicktest'
has failed. The output was too subtle for people who aren't used to
it.
(This used to be commit a57decb96a)
2007-10-10 14:18:48 -05:00
Steve French
1ce5df6c72 r18570: Fix up function names in cifs unix/posix extensions backend. Enable tiny quick test for torture for them
(This used to be commit 64062d16a2)
2007-10-10 14:18:48 -05:00
Andrew Tridgell
dc70a6b4e7 r18569: add really simple testing of the 'simple' ntvfs backend, so we know
when it breaks. It isn't much good as a template for developers to use
unless it works :-)
(This used to be commit 262bee07dc)
2007-10-10 14:18:48 -05:00
Andrew Tridgell
ee1d645881 r18568: this warning is not needed now that it is the job of the unixuid ntvfs
module to handle euid
(This used to be commit 6784058923)
2007-10-10 14:18:48 -05:00
Andrew Tridgell
48f3449969 r18567: fixed the winreg js code for the new names of the fields in winreg.idl
When changing a field name in idl, please remember to check for use of
those functions in any js code as well.
(This used to be commit 7005806aa6)
2007-10-10 14:18:47 -05:00
Andrew Tridgell
6adb5717f5 r18566: fixed the winreg pipe and winreg tests
Jerry, there is a big difference on the wire between these two:

  [out] uint32 x;
and
  [out] uint32 *x;

if you change from

  [out] uint32 x;

then you need to change to:

  [out,ref] uint32 *x;

otherwise it changes the format on the wire, which means we are no
longer compatible with MS servers.

but be aware that even if you change to a ref ptr, you also need to
change all the client code to set all the return variables in the out
part of the structure. That's why I don't like the MIDL restriction of
forcing the use of ref pointers for output variables - it makes life
much harder when writing client code, and makes the code much more
error prone (just look at all the extra code needed to make this work
again).

I know we could auto-allocate these variables in the generated client
side NDR code, but if we did that then we would have no way of doing a
_real_ ref out pointer, which we really wanted to set to some already
allocated variable.

So please hold off on changing our idl to use the MIDL convention for
output variables until Jelmer and I have had a good "chat" about this :-)
(This used to be commit 555aed43ba)
2007-10-10 14:18:47 -05:00
Jelmer Vernooij
d9b4bdd5bb r18565: Fix echo.idl to be Samba3-, MIDL and midlc compatible
(This used to be commit ab0a798c57)
2007-10-10 14:18:47 -05:00
Steve French
db0fdcf6ce r18564: update for cifs unix/posix extensions stub version to build and beginnings of smbtorture test for it
(This used to be commit 57f5695717)
2007-10-10 14:18:47 -05:00
Andrew Tridgell
6e3b94d3bc r18563: - move more of the header checks into lib/replace/
- change the test for net/if.h to do a full compile, not just an
  existance test. net/if.h is completely broken on hpux, and can never
  compile (it uses stuff before it defines it), so by using a
  AC_TRY_COMPILE() test we avoid using net/if.h on hpux, which should
  fix the build
(This used to be commit bde18f3d5c)
2007-10-10 14:18:46 -05:00
Gerald Carter
dce0c9e4fd r18561: Fix [out] pointers in winreg IDL
(This used to be commit 694677dafe)
2007-10-10 14:18:46 -05:00
Jelmer Vernooij
291c5ed53c r18559: [string] always applies to the last pointer
(This used to be commit 86b4624226)
2007-10-10 14:18:46 -05:00
Simo Sorce
fa257e78b5 r18558: Fix ShareCheck which was assuming all paths are "C:\"
Also cope with the fact that we define the FSTYPE as NTFS by default.
We never use this anywhere else, so we may just change it, but just
detect the fact and return DISK in share_classic for now.
(This used to be commit 4daf5f7764)
2007-10-10 14:18:46 -05:00
Stefan Metzmacher
0305907e42 r18555: use C:\ as default not C:
metze
(This used to be commit d9137edbdb)
2007-10-10 14:18:45 -05:00
Jelmer Vernooij
3e7cff6c00 r18554: Fix warnings about [out] arguments.
(This used to be commit caac6cf817)
2007-10-10 14:18:45 -05:00
Stefan Metzmacher
45e566b7cc r18553: - confdefs.h is always included in configure checks no need to include them explicit
- undefine _XOPEN_SOURCE_EXTENDED for the AIX interface detection test
  #define _XOPEN_SOURCE_EXTENDED 1 brings in sa_len to sockaddr on Tru64
  which means the AIX code compiles...

metze
(This used to be commit 04a0a5144a)
2007-10-10 14:18:45 -05:00
Simo Sorce
ab188e02af r18550: Return a path not just a disk drive
(This used to be commit 60076fa87d)
2007-10-10 14:18:45 -05:00
Stefan Metzmacher
a8fd66f91f r18549: move gcc version check to libreplace and reorder the tests a bit
for nicer output

metze
(This used to be commit 888a769af5)
2007-10-10 14:18:45 -05:00
Stefan Metzmacher
f8079a6386 r18548: don't use #elif as we don't notice when 2 HAVE_IFACE_ versions are defined
try to find the problem on Tru64...where configure says the AIX method finds 1 interface
but later can't compile netif.c. (revision 18486 was the last that detects ifconf with 2 interfaces)

metze
(This used to be commit 8fa9852160)
2007-10-10 14:18:45 -05:00
Stefan Metzmacher
e310cce43f r18545: if yapp isn't availabe touch the target file, as it is commited to svn,
to prevent rebuilding.

we do

make everything
make everything
make bin/smbtorture
make test

in the buildfarm and rebuilding parts isn't that nice

metze
(This used to be commit 212fa7977d)
2007-10-10 14:18:44 -05:00
Stefan Metzmacher
040b5b812e r18544: - use AC_LIBREPLACE_LOCATION_CHECKS in samba4
- to get the ordering right we need to specify AC_CANONICAL_BUILD explicit
- add AC_CANONICAL_TARGET

metze
(This used to be commit 1ea52d7584)
2007-10-10 14:18:44 -05:00
Simo Sorce
b0fb34fd24 r18542: Some late nite work.
Now we can add and remove a share from the "Computer Management"
console (not yet modify!) usinf share backend = ldb
(This used to be commit ae2f6d4a5a)
2007-10-10 14:18:44 -05:00
Andrew Tridgell
d928bce0d8 r18541: with 100 old style searches we can run out of file descriptors on some
systems. drop to 50
(This used to be commit ce5d5a1872)
2007-10-10 14:18:44 -05:00
Andrew Tridgell
c7723f6eaf r18540: show the additional smbd output from each test, rather than only
showing on test failure and showing all the smbd output each time.
(This used to be commit 1dfac46664)
2007-10-10 14:18:43 -05:00
Andrew Tridgell
182ab7107c r18539: 'make distclean' should delete config.cache
(This used to be commit 5a8becb1be)
2007-10-10 14:18:43 -05:00
Andrew Tridgell
1d7a878c8b r18538: we need a pipe here, not a logical OR
also fix cn name for this record, and ensure tests/tmp is created
(This used to be commit 588c91f06b)
2007-10-10 14:18:43 -05:00
Andrew Tridgell
2a3ebd9a7e r18537: after testing for poptGetContext, if the test fails, don't try to use
the external popt (this affects hpisgr8)
(This used to be commit 9afbd60f91)
2007-10-10 14:18:43 -05:00
Andrew Tridgell
0e9147029f r18536: fixed the loading of external binary files from ldif into ldb
(This used to be commit fbe13ed83e)
2007-10-10 14:18:43 -05:00
Andrew Tridgell
fafa8c3e47 r18535: move the AC_CANONICAL_HOST and host specific flag tests into
libreplace. This should fix the standalone build of tdb on HPUX, where
we need to blacklist mmap.

Unfortunately this requires that we have a copy of config.guess and
config.sub in each of our project subdirectories. I tried to find a
way to use something like AC_CONFIG_AUX_DIR($libreplacedir) and just
put config.{guess,sub} in the lib/replace/ directory, but I couldn't
figure out how to do that in a way that kept autoconf happy for each
of our separate builds. Any autoconf guru out there see a way to do
this?
(This used to be commit 823cd3ab35)
2007-10-10 14:18:42 -05:00
Andrew Tridgell
f7b29f23ad r18528: work around what appears to be a compiler bug in gcc on irix. It
caused the RPC-SECRETS test to crash smbd in an inlined version of
this memcmp() call. This patch should have absolutely no effect at
all, but in fact it prevents the crash.

Disassembling at the point of the crash, it shows that gcc is inlining
the memcmp(). I don't know enough MIPS assembler to actually spot the
bug. In case anyone reading this does know MIPS assembler, here is the
gcc generated code that crashes:

0x105e0218 <gssapi_krb5_verify_header+168>:     lw      $t1,52($sp)
0x105e021c <gssapi_krb5_verify_header+172>:     lw      $t1,0($t1)
0x105e0220 <gssapi_krb5_verify_header+176>:     lhu     $t1,0($t1)
0x105e0224 <gssapi_krb5_verify_header+180>:     lw      $t2,68($sp)
0x105e0228 <gssapi_krb5_verify_header+184>:     lhu     $t2,0($t2)
0x105e022c <gssapi_krb5_verify_header+188>:     subu    $t1,$t1,$t2

it gets a segv at 0x105e0220.

lha, what do you think of this? The change should be innocuous on all
other platforms, apart from making the code harder to read :(
(This used to be commit 95455b5789)
2007-10-10 14:18:42 -05:00
Jelmer Vernooij
f78ff444e6 r18524: Pre-allocate out arguments.
(This used to be commit 0ee42669d3)
2007-10-10 14:18:42 -05:00
Jelmer Vernooij
df08af8418 r18523: Allow [out] on arrays as well as pointers, use in unixinfo.
(This used to be commit f67b4d58ac)
2007-10-10 14:18:42 -05:00
Jelmer Vernooij
5f68b76c4a r18522: It's probably not a good idea to use rpc_netdfs_init() as initialization
function name for _all_ RPC servers...
(This used to be commit 234272e39d)
2007-10-10 14:18:42 -05:00
Andrew Tridgell
c902a8927c r18521: implement volkers suggestion for avoiding the type punning warnings
(This used to be commit 9b9f058edb)
2007-10-10 14:18:41 -05:00
Jelmer Vernooij
eb9a2757eb r18520: Add note about warnings on [out] arrays.
(This used to be commit 7a2afc3e0c)
2007-10-10 14:18:41 -05:00
Andrew Tridgell
eef5a6f538 r18518: we replace snprintf() if its not C99, so we should also add the rep_
prototype in that case
(This used to be commit 64b5ff171d)
2007-10-10 14:18:41 -05:00
Andrew Tridgell
0541807adf r18517: I find it less confusing if tests are run in the order they are
added.
(This used to be commit 3e1844b2b2)
2007-10-10 14:18:41 -05:00
Andrew Tridgell
785822590c r18516: I'm surprised that compilers allowed this at all
(This used to be commit 46aa8a5e89)
2007-10-10 14:18:41 -05:00
Jelmer Vernooij
e9c465621e r18515: Remove calls to "time" for now as some sh implementations don't have it,
causing this test to fail.
(This used to be commit fc3f41a4ab)
2007-10-10 14:18:40 -05:00
Stefan Metzmacher
cbb1975c8c r18514: fix configure caching of AC_VERIFY_C_PROTOTYPE() macro
metze
(This used to be commit 8e49dc69e7)
2007-10-10 14:18:40 -05:00
Stefan Metzmacher
a0e87e5dc7 r18505: add configure checks for telldir() and seekdir()
telldir() is different on older OpenBSD versions
seekdir() is different Tru64

tridge: OpenBSD seems to like this replacement:-)
        while MAC OS 10 gets 134 runtime error:-(
	lets wait what Tru64 will give

metze
(This used to be commit 1f4e602ff2)
2007-10-10 14:18:40 -05:00
Andrew Bartlett
595c141a69 r18504: Handle mappings for RENAME and KEEP attributes better. We don't need
to mess with the values in these cases.

Where we do convert the values, try and convert substrings.  This
isn't going to be perfect, but we should try rather than segfault.

This also avoids using the wrong arm of the union for the attribute
name

The change in the entryUUID module is to correct the case of
sAMAccountName, due to the case sensitive ldap.js test.

Andrew Bartlett
(This used to be commit 81d9a692c1)
2007-10-10 14:18:40 -05:00
Stefan Metzmacher
a9aa6d0c67 r18503: - _GNU_SOURCE is defined by libreplace
- move AS_HELP_STRING replacement to libreplace

metze
(This used to be commit ace406a36e)
2007-10-10 14:18:40 -05:00
Stefan Metzmacher
d184a9cc32 r18502: remove unused lines
metze
(This used to be commit 37f55c08c3)
2007-10-10 14:18:39 -05:00
Stefan Metzmacher
8ed1176a8d r18501: libreplace needs 'long long', bailout if not present
or the size is not 8 bytes or more.

samba4 doesn't need type checks anymore

metze
(This used to be commit d8fdd05482)
2007-10-10 14:18:39 -05:00
Stefan Metzmacher
a4e94eedf0 r18500: move make related checks into its own file
metze
(This used to be commit 6a6729fb72)
2007-10-10 14:18:39 -05:00
Stefan Metzmacher
ac24d381a5 r18499: this hopefully lets the code compile on OpenBSD
the prototype was fixed in this revision
http://www.openbsd.org/cgi-bin/cvsweb/src/include/dirent.h.diff?r1=1.15&r2=1.16

so we'll need a configure test to find the prototype of
telldir later

metze
(This used to be commit c4da3b4364)
2007-10-10 14:18:39 -05:00
Andrew Bartlett
a133601192 r18498: While passing stack values into torture_tcase_add_test is bad, values
assigned into a static initialiser must be constant.

Wishing sweet dreams on the jet-lagged tridge :-)

Andrew Bartlett
(This used to be commit 174014d956)
2007-10-10 14:18:39 -05:00
Andrew Tridgell
870cae2736 r18497: fixed crash bug in irpc test - the torture_tcase_add_test() call
is passed a stack pointer from values[], which is not valid when the
torture suite is run.

Jelmer, need to be careful when converting test code not to use stack
values from the torture_XXX() call in the test suite
(This used to be commit 2744a0b385)
2007-10-10 14:18:38 -05:00
Andrew Tridgell
bd4ddbcff5 r18496: yet another dlopen valgrind suppression
(This used to be commit 041c2c1202)
2007-10-10 14:18:38 -05:00
Andrew Bartlett
1e4f5a096c r18495: More work on the LDAP backend (which now passes a lot of our tests!)
This adds a list of attributes that are in our wildcard seaches, but
the remote server requires to be explicitly listed.  This also cleans
up the handling of wildcards in ldb_map to be more consistant.

Also fix the partitions module to rebase the search, if on the GC
port, we do a subtree search.  (Otherwise backends can rightly
complain that the search is not in their scope).

Andrew Bartlett
(This used to be commit bc58792b71)
2007-10-10 14:18:38 -05:00
Andrew Tridgell
48615ca0da r18494: don't count 'DWARF2 CFI reader' messages as valgrind failures
(This used to be commit f7eaa03d6f)
2007-10-10 14:18:38 -05:00
Andrew Tridgell
bdfecf3c97 r18493: another "blind coding" attempt at a getdirentries() based readdir()
replacement
(This used to be commit 94b73d692b)
2007-10-10 14:18:37 -05:00
Andrew Tridgell
ae98478385 r18492: an attempt at replacing readdir() with something based on
getdirentries()

This is untested on any of the platforms that matter, so we'll just
have to see if the build farm machines like it
(This used to be commit 343b0871b1)
2007-10-10 14:18:37 -05:00
Andrew Tridgell
90c3e8b906 r18491: fixed a warning
(This used to be commit 1b17f0f08f)
2007-10-10 14:18:37 -05:00
Andrew Tridgell
fd6030eac7 r18490: on irix _XOPEN_SOURCE_EXTENDED needs to be defined to 1, not just
defined
(This used to be commit 39d984738b)
2007-10-10 14:18:37 -05:00
Andrew Tridgell
935aefbcc5 r18489: dlopen is so amazingly broken on linux
supress the valgrind warnings
(This used to be commit fb69f8cb2c)
2007-10-10 14:18:37 -05:00
Andrew Tridgell
6fa6c74d59 r18488: we have to make sure any extensions flags also make it into
confdefs.h, otherwise the real build and the configure tests will not
be significant

this change fixes the build of libreplace on hpux with gcc
(This used to be commit d37fc31532)
2007-10-10 14:18:36 -05:00
Stefan Metzmacher
f80d6bc100 r18486: hopefully this fixes the panics on solaris
metze
(This used to be commit 22cfc3404c)
2007-10-10 14:18:36 -05:00
Stefan Metzmacher
d08fb7b1cc r18485: include libreplace.m4 in the aclocal.m4 files
and use the macros in configure.ac

metze
(This used to be commit 95d33e4d71)
2007-10-10 14:18:36 -05:00
Jelmer Vernooij
965633a5b4 r18482: Fix a couple of small issues in the generated server code.
(This used to be commit ddfe3c5443)
2007-10-10 14:18:36 -05:00
Stefan Metzmacher
3de6b469cc r18479: start hiding libreplace configure tests behind macros
AC_LIBREPLACE_CC_CHECKS
AC_LIBREPLACE_BROKEN_CHECKS
and
AC_LIBREPLACE_ALL_CHECKS
which calls the 2 others

I'll add some more, so that samba3/samba4 can later call
them in the wanted order and all standalone builds
use AC_LIBREPLACE_ALL_CHECKS.

metze
(This used to be commit e7a30456c7)
2007-10-10 14:18:36 -05:00
Jelmer Vernooij
ea50e4f30a r18478: Add missing declaration for status.
(This used to be commit 64909a0d69)
2007-10-10 14:18:35 -05:00
Jelmer Vernooij
6a2b541497 r18477: Finish server code generator for Samba 3.
(This used to be commit 4e2f200424)
2007-10-10 14:18:35 -05:00
Jelmer Vernooij
2fb4ecebc1 r18475: Start working on server code generator that uses libndr.
(This used to be commit aa1c550d37)
2007-10-10 14:18:35 -05:00
Stefan Metzmacher
8e65d33d7d r18474: - we don't need to explicit check stdint.h and inttypes.h
alsready done by autoconf magic
- display the sizes of all standard C types
- check for int64_t and uint64_t

metze
(This used to be commit 371a33a871)
2007-10-10 14:18:35 -05:00
Stefan Metzmacher
4e355095d1 r18472: - use STDC_HEADERS for stdlib.h and stddef.h as autoconf does
- AC_HEADERS_STDC is not explicit needed

metze
(This used to be commit 8f20d2cfe5)
2007-10-10 14:18:35 -05:00
Jelmer Vernooij
0eb9794e9f r18471: Remove other Samba3 parser generator support as well - it's no
longer necessary as we can use libndr now.
(This used to be commit 22142a9f3d)
2007-10-10 14:18:34 -05:00
Jelmer Vernooij
e26ed8b3e2 r18470: Remove obsolete client generator code for Samba3 (we're now using the
new code that uses libndr)
(This used to be commit ea0ef1542f)
2007-10-10 14:18:34 -05:00
Jelmer Vernooij
fb211b52fe r18468: Add IDL for dfs_EnumEx. Still lacks test(s)
(This used to be commit 79b6001f91)
2007-10-10 14:18:34 -05:00
Stefan Metzmacher
84a56aca15 r18465: much better fix for a roken specifiv problem
metze
(This used to be commit 1ae1e68fe9)
2007-10-10 14:18:34 -05:00
Stefan Metzmacher
f6de92d47c r18463: add some more warning flags, tested with gcc 2.95.3 on SuSE 7.3
metze
(This used to be commit 553a90cbe2)
2007-10-10 14:18:34 -05:00
Stefan Metzmacher
63d284c912 r18462: make the output a bit nicer
metze
(This used to be commit 0b61ea3ed7)
2007-10-10 14:18:33 -05:00
Stefan Metzmacher
dca9292c15 r18461: - extend make showflags
- let make test trigger showflags

metze
(This used to be commit 43c1d775b9)
2007-10-10 14:18:33 -05:00
Stefan Metzmacher
4c0b19277a r18460: split out timegm test and only add timegm.o when needed
metze
(This used to be commit f9bff4dbda)
2007-10-10 14:18:33 -05:00
Andrew Bartlett
f425072ed9 r18459: Set access to test LDAP server as system to anonymous, but also note
the correct authz-regexp for future use.

Fail to test if slapd fails and TEST_LDAP=yes
(This used to be commit 1daf4e7bd4)
2007-10-10 14:18:33 -05:00
Stefan Metzmacher
c706319c8f r18458: move wins32 stuff to the top dir
metze
(This used to be commit 521e94f269)
2007-10-10 14:18:33 -05:00
Stefan Metzmacher
2c3dc50953 r18456: Tru64 doesn't have getdents() so we don't need this ifdef's...
metze
(This used to be commit 5af86eb3f0)
2007-10-10 14:18:32 -05:00
Stefan Metzmacher
bf071a91aa r18455: check if getdents() and getdirentries() are available.
(only for the nicer configure output)

metze
(This used to be commit d53eb6bd10)
2007-10-10 14:18:32 -05:00
Stefan Metzmacher
b270dd3fd6 r18454: this was just for debugging...
metze
(This used to be commit f9f14a9429)
2007-10-10 14:18:32 -05:00
Stefan Metzmacher
dfef2dc22f r18452: add configure test for a getdirentries() based replacement for broken readdir()
Tru64 need this, linux also has getdirentries() but the native readdir() works
but it means we can write the code on linux and when it works it may work on Tru64
too.

tridge: can you try to implement this?

metze
(This used to be commit dd791d255c)
2007-10-10 14:18:32 -05:00
Stefan Metzmacher
c564344766 r18451: move repdir/ into the top dir
metze
(This used to be commit a564194817)
2007-10-10 14:18:31 -05:00
Stefan Metzmacher
0584c108db r18450: - autogenerate the OBJ_FILES for LIBREPLACE
- remove samba specific stuff from libreplace
- and include the readdir replacement stuff in the standalone builds

metze
(This used to be commit 3cac61152e)
2007-10-10 14:18:31 -05:00
Stefan Metzmacher
c447b8a199 r18448: this gives nicer output...
metze
(This used to be commit 6bdb329da5)
2007-10-10 14:18:31 -05:00
Stefan Metzmacher
a57133c56e r18447: make sure we bail out if the config.h is not generated
by samba's configure.

this could happen when you have done a standalone build in
lib/replace/, lib/talloc, ...

metze
(This used to be commit d8e8838674)
2007-10-10 14:18:31 -05:00
Stefan Metzmacher
e18547d489 r18445: splitout the dlfcn related tests
metze
(This used to be commit 8662e14815)
2007-10-10 14:18:31 -05:00
Stefan Metzmacher
cac47350c2 r18444: return the correct value on error
metze
(This used to be commit d65e94fea9)
2007-10-10 14:18:30 -05:00
Stefan Metzmacher
9768393b3b r18443: add object files only when needed
metze
(This used to be commit 5fddb66def)
2007-10-10 14:18:30 -05:00
Stefan Metzmacher
764f74c565 r18442: run the os2_delete test in the testsuite too
that shows that Tru64 is broken...

It doesn't have getdirent() and the the replacement
code doesn't work there.

tridge: do you have any idea how to fix this?

metze
(This used to be commit a5ebfd0ab7)
2007-10-10 14:18:30 -05:00
Andrew Bartlett
918db36213 r18441: Allow searching for the high bit in these bitfields, when the client
asks for them as large integers, rather than a negative integer.

Due to an OpenLDAP bug, this only works reliably against OpenLDAP CVS
as of today.  (but mostly works in older versions, depending on a
thread-specific value fo errno in the server).

Andrew Bartlett
(This used to be commit 3b5354aede)
2007-10-10 14:18:30 -05:00
Simo Sorce
6c48dc8612 r18440: "builtinDomain" is not a child of "domain"
(This used to be commit b34646f202)
2007-10-10 14:18:30 -05:00
Andrew Tridgell
05cdd9ccaf r18439: 2nd try at a talloc_move() api. This type with the ** ptr interface
exposed.

Unfortunately this generates a large number of type punning
warnings. We'll have to find some magic to hide those.
(This used to be commit 254cbf09de)
2007-10-10 14:18:29 -05:00
Andrew Tridgell
24fe49a3d1 r18438: I should have examined these uses of talloc_move() more
carefully. Most of them are OK, but a couple were not.
(This used to be commit b0de283882)
2007-10-10 14:18:29 -05:00
Andrew Tridgell
12e7682e7b r18437: added a 'make valgrindtest' target for ldb
(This used to be commit 4c33c6bb97)
2007-10-10 14:18:29 -05:00
Andrew Tridgell
7f63cebd33 r18436: converted ldb to use talloc_move() instead of talloc_steal() when
appropriate.

Note that I also removed the error checks that were being done on the
result of talloc_steal(). They are pointless as talloc_steal() doesn't
have any failure modes that wouldn't cause a segv anyway, and they
tend to clutter the code
(This used to be commit c0d9e7d473)
2007-10-10 14:18:29 -05:00
Andrew Tridgell
1a59784451 r18435: added a function talloc_move() which is like talloc_steal(), but is
meant for moving pointers between structures. The difference is that
talloc_move() will zero the source pointer, thus ensuring you don't
reference the pointer in the old context.

talloc_move() is appropriate in some, but not all cases where we use
talloc_steal() now. The interface came out of a discussion with
Jeremy.
(This used to be commit 200756017e)
2007-10-10 14:18:29 -05:00
Andrew Bartlett
d21cb7e2d2 r18434: Fix typo...
(This used to be commit 4f235b88aa)
2007-10-10 14:18:28 -05:00
Andrew Bartlett
7d2a820157 r18433: Make sure to search below the partitions baseDN for the netbios name.
I think we should have a helper function for this search, we do it too
often...

Andrew Bartlett
(This used to be commit 09327baa0d)
2007-10-10 14:18:28 -05:00
Andrew Tridgell
daff791c27 r18432: ensure roken doesn't try to include both inttypes.h and stdint.h. The
two conflict on irix.
(This used to be commit 4dd949c80d)
2007-10-10 14:18:28 -05:00
Andrew Tridgell
d5ef649e20 r18431: use this to suppress things on fort in the build farm
(This used to be commit 13ed504a1b)
2007-10-10 14:18:28 -05:00
Stefan Metzmacher
fdc7677fec r18428: add my copyright
metze
(This used to be commit d222fab2b5)
2007-10-10 14:18:28 -05:00
Stefan Metzmacher
6924a30bb5 r18427: set sin_port correctly on autobound socket
metze
(This used to be commit d373890fb2)
2007-10-10 14:18:27 -05:00
Stefan Metzmacher
3c096b3a9a r18426: use 'family' consistantly instead of mixing 'domain' and 'family'
metze
(This used to be commit 224f26602a)
2007-10-10 14:18:27 -05:00
Stefan Metzmacher
894a64521a r18424: there's no need to allocate a wrapped socket for unix sockets,
also this makes sure the socket file isn't unlinked if using socket
wrapper.

metze
(This used to be commit 7670e9ae6e)
2007-10-10 14:18:27 -05:00
Stefan Metzmacher
ee67387d32 r18423: record accept, connect and close events in socket wrapper
metze
(This used to be commit 7f29471f0b)
2007-10-10 14:18:27 -05:00
Stefan Metzmacher
5addf852d2 r18421: support --target=samba3, I thought that was already supported
metze
(This used to be commit 47ccea11f3)
2007-10-10 14:18:26 -05:00
Stefan Metzmacher
26e9619c17 r18420: fix the build...
metze
(This used to be commit a7ce2c6c53)
2007-10-10 14:18:26 -05:00
Stefan Metzmacher
68201cc76b r18419: fix include paths of the configure tests
metze
(This used to be commit 8774eeb0dc)
2007-10-10 14:18:26 -05:00
Stefan Metzmacher
566466319e r18418: Tru64 has a different prototype for seekdir() returning int
when _OSF_SOURCE is defined

metze
(This used to be commit 5279656a15)
2007-10-10 14:18:26 -05:00
Stefan Metzmacher
b5ea572f45 r18417: overload send() and recv() by socket wrapper
and add a dummy swrap_dump_packet() function
which can later dump the packet content,
so that a script can then generate a capture file
for wireshark

metze
(This used to be commit d05cab5c62)
2007-10-10 14:18:26 -05:00
Andrew Bartlett
4de4af0942 r18416: We need to look for both builtinDomain and domain, in the OpenDomain call.
Andrew Bartlett
(This used to be commit 5525baf521)
2007-10-10 14:18:25 -05:00
Brad Henry
695cf5413a r18415: Make the samba-windows test scripts executable so they run a little easier in the build farm.
(This used to be commit b2d3f8f7aa)
2007-10-10 14:18:25 -05:00
Brad Henry
6b2aaed94a r18414: This README file should help to explain what is needed to setup a Windows VM for testing using this framework.
Let me know if there's anything that looks strange or could use clarification.

vm_setup.tar.gz is currently located at the root of my SVN branch, svn://svnanon.samba.org/samba/branches/SOC/bnh.
(This used to be commit 849fe757bb)
2007-10-10 14:18:25 -05:00
Simo Sorce
7736d2f65c r18412: Implement NetiNameValidate but just for share name right now (type 9)
Simo.
(This used to be commit 906429834a)
2007-10-10 14:18:25 -05:00
Andrew Bartlett
33c4fea4cd r18410: Reduce noise in the ldb_ildap backend. We regularly search for things
that don't exist, and this is not a cause for panic.

Andrew Bartlett
(This used to be commit c89e416d28)
2007-10-10 14:18:25 -05:00
Andrew Bartlett
1be5dc9837 r18409: Make sure to print a DEBUG message if this LDB search fails.
Andrew Bartlett
(This used to be commit 6419ef09b1)
2007-10-10 14:18:24 -05:00
Andrew Bartlett
3a577a2a9d r18408: Only output a message if the async request fails.
Andrew Bartlett
(This used to be commit 1ea6b600f4)
2007-10-10 14:18:24 -05:00