Günther Deschner
808348a8ca
Trying to fix libnetapi examples Makefile.in.
...
Guenther
(This used to be commit 405ef74d7e
)
2008-02-29 02:49:27 +01:00
Gerald W. Carter
8f58ae97f0
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
(This used to be commit 37c87acc9d
)
2008-02-28 11:58:05 -06:00
Günther Deschner
77a2531810
Only set DEBUGLEVEL to 0 in libnetapi when not set already.
...
Guenther
(This used to be commit 3ace1601ac
)
2008-02-28 17:25:33 +01:00
Volker Lendecke
93e06129ab
Add basic infrastructure for general async requests
...
(This used to be commit ae254cb61f
)
2008-02-28 15:27:55 +01:00
Günther Deschner
261671dc95
Remove unused display_ds_domain_controller_info() function.
...
Guenther
(This used to be commit 24a5098b1c
)
2008-02-28 12:47:07 +01:00
Günther Deschner
0d8985f2da
Let dsgetdcname() return a struct netr_DsRGetDCNameInfo.
...
Guenther
(This used to be commit b1a4b21f8c
)
2008-02-28 12:40:55 +01:00
Michael Adam
e281c0b1f5
libreplace: standalone build: use -I$srcdir instead of -I.
...
Michael
(This used to be commit 5c08730f19
)
2008-02-27 11:07:01 +01:00
Michael Adam
e80790f649
libreplace: fix standalone build - add necessary libs.
...
The libs needed for getifaddrs replacements have to be added
to LIBS and used for the testsuite target.
Michael
(This used to be commit f162de7b80
)
2008-02-27 11:06:54 +01:00
Michael Adam
a565f50735
libreplace: fix standalone build on some systems.
...
getifaddr tests include system/network.h, which does not
find getaddrinfo.h without "-I.".
Michael
(This used to be commit 66d4c38967
)
2008-02-27 11:06:46 +01:00
Michael Adam
7bdd648477
libreplace: Add tests for connect and gethostbyname.
...
Provide dummy replacements when a function isnt found.
The functions are also searched for in certain libraries,
and variables SOCKET_LIBS and NSL_LIBS are set accordingly.
One purpose of this is to fix the getifaddrs tests on
systems where e.g. the socket calls require special libs
for linking.
Michael
(This used to be commit c19f7a0e10
)
2008-02-26 13:56:12 +01:00
Michael Adam
9f5c463415
Fix build on VOS: socklen_t is needed for rep_inet_ntop: move it up.
...
Michael
(This used to be commit 7b98620ef1
)
2008-02-26 11:55:39 +01:00
Volker Lendecke
3176392878
Fix some warnings
...
warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result
(This used to be commit ad37b7b0ae
)
2008-02-25 16:09:26 +01:00
Volker Lendecke
fdf4e84e2b
Check return value of pipe(2)
...
(This used to be commit 49da21c03a
)
2008-02-23 11:04:13 +01:00
Volker Lendecke
333c0aabc9
Check return value of dup(2)
...
(This used to be commit d34701d49c
)
2008-02-23 11:04:13 +01:00
Volker Lendecke
cef18563bb
Check the return value of fgets
...
(This used to be commit b8aaa9a69f
)
2008-02-23 11:04:13 +01:00
Michael Adam
0f0998a06b
libreplace: don't use socketwrapper for getifaddrs() implementations.
...
Michael
(This used to be commit 85eec1d1d6
)
2008-02-22 14:13:28 +01:00
Michael Adam
6a27493578
libreplace: Fix comment originating from old samba source.
...
Michael
(cherry picked from commit 0440bcfe63
)
(This used to be commit ddf7ac4f26
)
2008-02-22 10:48:18 +01:00
Michael Adam
e033fdbde2
Not all implementations of struct ifaddrs define ifa_broadaddr.
...
E.g. the definition of libreplace doesn't. :-o
Michael
(This used to be commit 25341602ec
)
2008-02-22 10:43:42 +01:00
Michael Adam
5c6db777e4
Remove the implementations of _get_interfaces and autoconf test in interfaces.c
...
getifaddrs() is now provided by libreplace.
Michael
(This used to be commit 7970901223
)
2008-02-22 01:59:45 +01:00
Michael Adam
cc32d4c316
libreplace: fix creation of conftest files for getifaddrs tests.
...
Add missing includes of replace.c and defines of SOCKET_WRAPPER_NOT_REPLACE.
Michael
(This used to be commit 26e6ebc709
)
2008-02-22 00:36:20 +01:00
Michael Adam
e3d1f512cf
Fix linked list of ifaddrs in implementations of rep_getifaddrs.
...
Produce proper list instead of one-node-loop.
Michael
(This used to be commit ec9f4f5066
)
2008-02-22 00:36:20 +01:00
Michael Adam
e2ec7931ff
Add missing initalizations of lastif in rep_getifaddr implementations.
...
Michael
(This used to be commit 65710e752f
)
2008-02-22 00:36:20 +01:00
Michael Adam
bf6dbf8e1b
libreplace: fix compile errors in getifaddrs.c
...
Michael
(This used to be commit 22cdd4cb50
)
2008-02-21 18:16:10 +01:00
Michael Adam
357659b1d0
Try and fix getifaddrs check on irix: dont't try to include config.h
...
The missing header file is judged "catastrophic" on irix.
Michael
(This used to be commit 5778c90819
)
2008-02-21 17:56:33 +01:00
Tim Potter
abf8465659
Fix possible close of invalid fd if call to socket() returns -1.
...
(This used to be commit f7d2f69299
)
2008-02-20 17:58:50 -08:00
Jelmer Vernooij
9c3f0170b3
Support dlopen(NULL, ...) on HPUX.
...
(cherry picked from commit 53c70b5f77
)
(This used to be commit 8883ee2418
)
2008-02-20 21:12:54 +01:00
Michael Adam
3ac36c3caf
libreplace: change samba_cv_ to libreplace_cv_ in libreplace.m4.
...
Michael
(cherry picked from commit 83387ecccf
)
(This used to be commit 12ec7dfb10
)
2008-02-20 14:14:50 +01:00
Michael Adam
9ba696cb68
libreplace: change samba_cv_ to libreplace_cv_ in system/config.m4.
...
Michael
(cherry picked from commit 00c173bfba
)
(This used to be commit 450034582b
)
2008-02-20 14:14:41 +01:00
Michael Adam
2356cc6586
libreplace: change samba_cv_ to libreplace_cv_ in getpass.m4.
...
Michael
(cherry picked from commit d3b3d3ec9f
)
(This used to be commit d6719f1c2f
)
2008-02-20 14:14:31 +01:00
Michael Adam
b277aa2893
libreplace: change samba_cv_ to libreplace_cv_ in getifaddrs.m4
...
Michael
(cherry picked from commit acab9def2a
)
(This used to be commit f790cb4aed
)
2008-02-20 14:14:20 +01:00
Michael Adam
89ad7e4ed1
libreplace: Remove double item in case statement.
...
This was by accident introduced in cherry-pick commit
7a7dcd9b12
: This tiny portion
had already been ported in 64ff1dad86
.
MIchael
(This used to be commit 69b2ebc797
)
2008-02-19 22:29:34 +01:00
Michael Adam
3e02cdcaa8
Remove relict SAMBA_CONFIGURE_CPPFLAGS from lib/replace.
...
Michael
(cherry picked from commit d10cbb533c
)
(This used to be commit 12e5b9b406
)
2008-02-19 22:14:12 +01:00
Jelmer Vernooij
c4265bd3e8
r26554: Fix test for getifaddr on FreeBSD. Patch by Timur Bakeyev.
...
(cherry picked from commit 37c7b65546
)
(This used to be commit bc523382ae
)
2008-02-19 22:12:50 +01:00
James Peach
5dd51159df
r26551: Make sure NULL is defined before using it to test for getifaddrs().
...
Patch from Timur I. Bakeyev <timur@com.bat.ru>.
(cherry picked from commit 188156228b
)
(This used to be commit b4a2ec01fc
)
2008-02-19 22:12:32 +01:00
Jelmer Vernooij
f75d7a6992
r26507: Fix function signature for freeifaddrs.
...
(cherry picked from commit cc873bdd2e
)
(This used to be commit ccfb04d185
)
2008-02-19 22:00:15 +01:00
Jelmer Vernooij
f822f4150b
r26497: Fix return type for freeifaddrs().
...
(cherry picked from commit 8c65053f51
)
(This used to be commit 57587e49f5
)
2008-02-19 21:59:51 +01:00
Jelmer Vernooij
1caa9cbd9d
r26495: Add defines for getifaddrs/freeifaddrs.
...
(cherry picked from commit c9e5a3078f
)
(This used to be commit f2f5521068
)
2008-02-19 21:59:27 +01:00
Jelmer Vernooij
ea9ce8f9ac
r26492: Some hosts have a define called ifa_dstaddr.
...
(cherry picked from commit c4cd935ee7
)
(This used to be commit 839d128a42
)
2008-02-19 21:58:50 +01:00
Jelmer Vernooij
5fb2d5b086
r26491: Fix syntax.
...
(cherry picked from commit 2513230e28
)
(This used to be commit d9c3b27c3f
)
2008-02-19 21:58:12 +01:00
Jelmer Vernooij
1de665002c
r26487: Cope with systems that don't have struct sockaddr.sa_len.
...
(cherry picked from commit 56080469ab
)
(This used to be commit ce222d07ba
)
2008-02-19 21:57:46 +01:00
Jelmer Vernooij
621983ed6d
r26470: Update README.
...
(cherry picked from commit 51a78cfc3e
)
(This used to be commit 556b6b9a2f
)
2008-02-19 21:57:15 +01:00
Jelmer Vernooij
7728a23d43
r26469: Fix paths, only include IPv4 addresses for now.
...
(cherry picked from commit fa9e3b6fa8
)
(This used to be commit a2d6f6b4ae
)
2008-02-19 21:56:52 +01:00
Jelmer Vernooij
d0d4fc5f54
r26468: Match getifaddrs more closely, add trivial test.
...
(cherry picked from commit 92898c043b
)
(This used to be commit 3f9c0c2100
)
2008-02-19 21:56:41 +01:00
Jelmer Vernooij
2235ffe2f7
r26467: Use getifaddrs() for interface enumeration and provide replacements for platforms that don't have it in lib/replace.
...
(lib/replace part of 9b4924fbd8
- Michael)
(This used to be commit 789bf2d36b
)
2008-02-19 21:55:09 +01:00
Günther Deschner
b1d09a82f4
Use netr_SamInfo3 in sid_array_from_info3.
...
Guenther
(This used to be commit 06095e8c70
)
2008-02-17 02:11:58 +01:00
Michael Adam
8d703d66d2
Use the proper boolean constants.
...
Michael
(This used to be commit 1c215325d1
)
2008-02-14 16:32:29 +01:00
Günther Deschner
08f019d973
Use pidl for _lsa_AddPrivilegesToAccount and _lsa_RemovePrivilegesFromAccount.
...
Guenther
(This used to be commit 0c9904864b
)
2008-02-14 13:53:28 +01:00
Stefan Metzmacher
cedfcaec0c
nsswitch: convert winbind_env_set(), winbind_on() and winbind_off() into macros
...
metze
(This used to be commit 5f623f54a9
)
2008-02-13 10:44:52 +01:00
Günther Deschner
0622fd72a3
Merge data_blob_talloc_zero() from samba4.
...
Guenther
(This used to be commit 9fca3ca37e
)
2008-02-13 10:20:10 +01:00
Michael Adam
114fe09af7
Raise version of talloc from 1.1.0 to 1.2.0 after adding talloc pools.
...
Michael
(cherry picked from commit 38855a9f14
)
(This used to be commit 303a3eb128
)
2008-02-13 01:40:12 +01:00