1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-04 00:23:49 +03:00
Commit Graph

15654 Commits

Author SHA1 Message Date
Stefan Metzmacher
33347928e1 libndr: EXT_NSL doesn't exist anymore, but it wasn't needed anyway
metze
2008-03-18 18:04:23 +01:00
Stefan Metzmacher
1dd8e37756 socket_wrapper: use LIBREPLACE_NETWORK because EXT_SOCKET and EXT_NSL doesn't exist anymore
metze
2008-03-18 18:04:22 +01:00
Stefan Metzmacher
0fb3d24621 heimdal_build: use LIBREPLACE_NETWORK because EXT_SOCKET and EXT_NSL doesn't exist anymore
metze
2008-03-18 18:04:22 +01:00
Michael Adam
2d3c2f34f3 libreplace: replace.c does not need system/network.h anymore.
Michael
2008-03-18 17:50:23 +01:00
Michael Adam
94ac8a25be libreplace: move rep_socketpair() to its own module.
Prototype is now in system/network.h,
implementation in socketpair.c, and
check in socketpair.m4.

Now the last networking function has vanished from replace.c.

Michael
2008-03-18 17:21:18 +01:00
Stefan Metzmacher
b5eeaf9b27 ldb: not every shell supports '==' so use '='
metze
2008-03-18 16:53:21 +01:00
Gerald W. Carter
5757d8dfe9 Fix macro name (no 's' in ifr_addr).
Interface detection on Solaris still failing due to items pointed out here:
http://lists.samba.org/archive/samba-technical/2007-November/056701.html
(cherry picked from commit 37c87acc9d)
2008-03-18 16:40:46 +01:00
Volker Lendecke
effda48a26 Fix Coverity ID 554
(cherry picked from commit 471b1b0c58)
2008-03-18 16:40:46 +01:00
Volker Lendecke
8f58d39c0c Check the return value of fgets
(cherry picked from commit b8aaa9a69f)
2008-03-18 16:40:46 +01:00
Michael Adam
98ee8c8430 libreplace: remove duplicate entry of inet_ntoa from README.
Michael
2008-03-18 16:31:15 +01:00
Michael Adam
1f9ca7eed9 libreplace: remove trailing white spaces.
Michael
2008-03-18 16:30:15 +01:00
Michael Adam
974c0c45ad libreplace: replace inet_ntoa() when it is missing
...not only replace it when it is broken.

This moves the defintion of rep_inet_ntoa from replace.c
to inet_ntoa.c and adds configure checks for existence
of inet_ntoa(). Checks are moved to an include file of its own.

NOTE: The original rep_inet_ntoa in replace.c was wrapped
into a "#ifndef WITH_PTHREADS" but the prototype in replace.h
and the define in system/network.h were not. I removed that
ifndef since the inet_ntoa() function is usually not thread safe
anyways, since it returns a pointer to a static buffer.

So whoever calls inet_ntoa() should be aware that it is not
thread safe anyways.

Michael
2008-03-18 16:30:15 +01:00
Michael Adam
cca5d6626f libreplace: put inet_aton.c under LGPL instead of GPL.
Michael
2008-03-18 16:10:47 +01:00
Michael Adam
9fa4b53b61 smbtorture: fix typos in RAW-OPLOCK output.
Michael
2008-03-18 16:10:46 +01:00
Stefan Metzmacher
62bb177a6e libreplace: remove unused SOCKET_LIBS and NSL_LIBS
metze
2008-03-18 15:59:23 +01:00
Stefan Metzmacher
07e931a77f lib/socket: use LIBREPLACE_NETWORK instead of EXT_SOCKET and EXT_NSL
The configure checks are also in libreplace now.

metze
2008-03-18 15:59:22 +01:00
Stefan Metzmacher
79037c3133 libreplace: for samba4 create LIBREPLACE_NETWORK as EXT_LIB
metze
2008-03-18 15:59:22 +01:00
Stefan Metzmacher
cef2e8d748 libreplace: use LIBREPLACE_NETWORK_LIBS within some configure checks
...instead of using SOCKET_LIBS and NSL_LIBS.

metze
2008-03-18 15:59:22 +01:00
Stefan Metzmacher
e7115dcc8a libreplace: combine SOCKET_LIBS and NSL_LIBS to LIBREPLACE_NETWORK_LIBS
But keep the old ones untill the callers are fixed.

metze
2008-03-18 15:59:22 +01:00
Stefan Metzmacher
ca414d4e9e ldb: remove configure with 'make realdistclean'
configure.in doesn't exist at all...

metze
2008-03-18 15:59:21 +01:00
Stefan Metzmacher
087667e0cd ldb: nothing uses "system/network.h" so don't include it
metze
2008-03-18 15:59:21 +01:00
Stefan Metzmacher
91b49365ab ldb: fix the standalone build
metze
2008-03-18 15:59:21 +01:00
Stefan Metzmacher
5f5fa368c2 selftest: fix parsing of Subunit results
This reverts parts of
903eb9a23d
and
9196213c49.

metze
2008-03-18 15:59:21 +01:00
Volker Lendecke
842d144b4f Allocate one 0-byte in asprintf replacement when len==0
Some S3 code depends on this.
(cherry picked from commit dc3d5e1645)
2008-03-18 13:48:21 +01:00
Stefan Metzmacher
903eb9a23d selftest: use a separate var for printing out sub parts of lines with \r
This restores the bahavior of the $_ variable in the code
that detects expected failures.

metze
2008-03-18 13:16:44 +01:00
Kai Blin
73ac7c4a1c idmap: Map SIDs to unixids instead of uids/gids 2008-03-18 10:55:31 +01:00
Kai Blin
f56912e3b5 make: Fix make valgrindtest-env 2008-03-18 10:54:28 +01:00
Stefan Metzmacher
3f2d12c61e RAW-BENCH-OPEN: avoid sync calls before the main loop
On multi cpu machines the server may reply to the
first requests while the test is still in setup mode.

Now we setup the first opens, but send them all together
when entering the main loop.

metze
2008-03-17 16:06:07 +01:00
Stefan Metzmacher
c84e3abae9 RAW-BENCH-OPEN: fix the output and calculate the total operations
metze
2008-03-17 15:50:54 +01:00
Stefan Metzmacher
9196213c49 selftest: handle progress output in verbose mode
metze
2008-03-17 15:50:49 +01:00
Stefan Metzmacher
61a87bed61 socket_wrapper: make pcap code more portable
Now the pcap support works on x86_64.

metze
2008-03-17 15:50:35 +01:00
Andrew Bartlett
f14737e4d2 Don't require users of credentials.h to have krb5.h and gssapi.h
Rather than require users of Samba4's headers to have krb5-devel
installed (presumably in their system paths), don't expose the minor
functions which require this by default.

Andrew Bartlett
2008-03-17 15:22:52 +11:00
Stefan Metzmacher
218ec98a16 pvfs_open: set h->have_opendb_entry directly after odb_open_file()
Otherwise we may not clean up in the destructor.

metze
2008-03-15 12:36:20 +01:00
Stefan Metzmacher
055760f0f4 pvfs_open: the pvfs_odb_retry structs need to be children of the request
Otherwise they're not cleaned up when the request is finished.

metze
2008-03-15 12:35:04 +01:00
Stefan Metzmacher
951764e284 pvfs_unlink: disable async retries for wildcard deletes
We would setup multiple retries per client request.

metze
2008-03-15 12:22:36 +01:00
Stefan Metzmacher
f555b8e4c3 messaging: fix a valgrind warning on 64bit hosts zero out padding
metze
2008-03-15 12:21:06 +01:00
Andrew Bartlett
95ac786136 Rework memberof handling in slapd.conf (used for OpenLDAP backend)
Instead of using an include file, put the generated configurationd
directly into slapd.conf.

Andrew Bartlett
2008-03-15 19:03:04 +11:00
Stefan Metzmacher
08b41e1069 swig: regenerate _wrap.c files
metze
2008-03-14 14:33:55 +01:00
Stefan Metzmacher
d6fd98a307 swig: make the code more portable and use NT_STATUS_V() and W_ERROR_V()
metze
2008-03-14 14:33:54 +01:00
Michael Adam
ff3af1703d libreplace: fix samba4 build (by not setting global LIBS).
This corrects the earlier fix of the standalone build, by setting
LIBS to the desired value only in configure.ac but not in getifaddrs.m4.

Not that this changes the standalone build in that it adds these libs
undconditionally and not only if they are needed by the getifaddrs
replacement functions.

Michael
2008-03-14 09:39:58 +01:00
Michael Adam
297c3bece0 libreplace: add -I$libreplacedir to CPPFLAGS for getifaddrs tests.
This is needed, otherwise $libreplacedir/system/network.h does not
find $libreplacedir/getaddrinfo.h on some systems (solaris, e.g.).

Michael
2008-03-14 09:04:25 +01:00
Michael Adam
3b2a3da2f7 heimdal_build: fix linkage of asn1_compile and compile_et.
Now inet_aton is available from libreplace.

Michael
2008-03-14 09:04:24 +01:00
Michael Adam
bcb2f3a880 libreplace: add an inet_aton() function that calls inet_pton().
inet_aton() is even needed inside libreplace, in the implementation
of rep_getaddrinfo().

Michael
2008-03-14 09:02:36 +01:00
Andrew Bartlett
db3b5f16ec Allow more 'domain' objects when looking for a unqiue SID.
Andrew Bartlett
2008-03-14 12:32:07 +11:00
Andrew Bartlett
353bb79f56 Rework our SAMR test and SAMR server.
Now that we don't create users/domain groups/aliases in the builtin
domain, we hit some bugs in the server-side implementation of the
enumeration functions.

In essence, it turns out to be: don't treat 0 as a special case.

Also, fix up the PDC name to always be returned.  I'm sure nothing
actually uses it, particularly for BUILTIN...

Andrew Bartlett
2008-03-14 12:26:03 +11:00
Andrew Bartlett
e7afb31df1 Check for Administrator as a Alias (copy&paste bug)
Andrew Bartlett
2008-03-14 10:11:03 +11:00
Andrew Bartlett
d50b76ed71 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local 2008-03-14 09:59:24 +11:00
Stefan Metzmacher
b6bcd66612 build: compile_et also needs inet_aton()
metze
2008-03-13 16:26:37 +01:00
Stefan Metzmacher
17997dd9bc build: we don't rely on bash yet:-) '==' should be just '='
metze
2008-03-13 15:56:39 +01:00
Michael Adam
f1c2207b3d fix build of asn1_compile when there is no system inet_aton() function.
Michael
2008-03-13 14:31:00 +01:00