1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-16 11:33:16 +03:00
Commit Graph

3727 Commits

Author SHA1 Message Date
Jelmer Vernooij
d4272bc6bc Add userdata argument to reseed callback function. 2008-04-01 15:17:18 +02:00
Jelmer Vernooij
c46b7e90e3 Rename libsamba-config to libsamba-hostconfig. 2008-04-01 15:08:30 +02:00
Jelmer Vernooij
2dc2bb800d Move ini-like file parser to the utility library. 2008-04-01 14:51:06 +02:00
Andrew Bartlett
764b7879d2 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local 2008-03-28 22:04:52 +11:00
Andrew Bartlett
727ef40c2b Fix and test python scripts and kerberos
This fixes up the python credentials interface in a number of areas,
with the aim of supporting '-k yes' as a command line option.  (This
enables the use of kerberos).

As such, I've had to change the get_credentials call to take a
loadparm context, so that the credentials can be initialised
correctly.

The test_kinit script has been modified to prove that this continues
to work, as well as to provide greater code coverage of the kerberos
paths.

Andrew Bartlett
2008-03-28 21:57:15 +11:00
Stefan Metzmacher
89b7955733 libreplace(samba4): let LIBREPLACE depend on LIBREPLACE_NETWORK for now
This should fix the build on solaris.
Later this needs better fixing...

metze
2008-03-28 07:56:20 +01:00
Andrew Kroeger
ebe5e83994 Convert some more files to GPLv3. 2008-03-28 01:08:49 -05:00
Michael Adam
4ae4692bc6 libreplace: fix coverity ID 517 - untangle close from open in test/os2_delete.c
This is not a proper bug but the code is clearer now
and we are tracking failure of open separate from that of close.

Michael
2008-03-27 11:56:51 +01:00
Andrew Bartlett
ba30e82d4e Clean up the ldb python bindings to be 64 bit safe.
Thanks in particular to arkanes and KirkMcDonald on #python for their
assistance, suggesting breaking the DN check.

I eventually found it while trying to cut down on the number of gcc
warnings, which is why we also add printf annotations.

Andrew Bartlett
2008-03-26 15:18:17 +11:00
Andrew Bartlett
8d4c831184 More safety around ldb_dn C functions in python bindings.
Ensure that the ldb python binding 'TypeError dn not set' errors are
not in the SWIG wrapper's use of ldb functions, put some more error
checks in.

Andrew Bartlett
2008-03-19 11:11:55 +11:00
Stefan Metzmacher
b7dad8674a lib/util: use LIBREPLACE_NETWORK as EXT_NSL doesn't exist anymore
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
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
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
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
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
Stefan Metzmacher
f555b8e4c3 messaging: fix a valgrind warning on 64bit hosts zero out padding
metze
2008-03-15 12:21:06 +01:00
Stefan Metzmacher
08b41e1069 swig: regenerate _wrap.c files
metze
2008-03-14 14:33:55 +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
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
Stefan Metzmacher
4b07123686 events_signal: pass down the correct siginfo_t struct to the event handler
metze
2008-03-11 20:16:51 +01:00
Andrew Bartlett
1b15f374a8 Make error handling in ldb more consistant.
This change ensures we give an immidiate error if the DN won't parse.

Also clean up strcmp use to be more standard.

Andrew Bartlett
2008-03-11 14:20:42 +11:00
Jelmer Vernooij
e384aac5c8 Rerun SWIG. 2008-03-07 18:20:12 +01:00
Andrew Kroeger
be47cc7fdf accountExpires: Windows default is 9223372036854775807, not -1. 2008-03-07 05:59:55 -06:00
Andrew Kroeger
eb9a7c3b3a ldb_wrap: Debug at derived samba_level, not the level of the ldb debug enum. 2008-03-06 00:07:26 -06:00
Andrew Bartlett
7f0341dd58 Try to return sane ldb error strings
We don't just want to return just strerror(ret) when things go wrong.

Andrew Bartlett
2008-03-04 13:45:31 +11:00
Jelmer Vernooij
f98b59021a Merge branch 'v4-0-test' into id10ts-registry 2008-03-03 00:23:09 +01:00
Brad Hards
5972308add Some cleanups for the ldb doxygen docs. 2008-03-02 10:46:47 +01:00
Jelmer Vernooij
2303063cbd Remove unused variable, fix (80, 'Other error') exceptions from ldb python bindings 2008-03-01 21:18:12 +01:00
Jelmer Vernooij
a7f89b5bb2 Fix error handling in ldb.add(). 2008-03-01 13:01:02 +01:00
Jelmer Vernooij
2f7ff409e8 Change remaining prototype headers to be private. 2008-02-29 14:36:51 +01:00
Jelmer Vernooij
6c659689ed Move public header accumulation out of the perl code.
Never install generated prototype files. It's easier to break the
API when using them and they're not easily readable for 3rd party users.

Conflicts:

	source/auth/config.mk
	source/auth/credentials/config.mk
	source/auth/gensec/config.mk
	source/build/smb_build/config_mk.pm
	source/build/smb_build/main.pl
	source/build/smb_build/makefile.pm
	source/dsdb/config.mk
	source/lib/charset/config.mk
	source/lib/tdr/config.mk
	source/lib/util/config.mk
	source/libcli/config.mk
	source/libcli/ldap/config.mk
	source/librpc/config.mk
	source/param/config.mk
	source/rpc_server/config.mk
	source/torture/config.mk
2008-02-29 14:23:38 +01:00
Jelmer Vernooij
36da52abf5 Fix manpage paths. 2008-02-29 14:12:36 +01:00