tprouty/samba.git
11 years agoWHATSNEW: Fix typo. release-3-2-0rc1
Karolin Seeger [Fri, 23 May 2008 13:49:09 +0000 (15:49 +0200)]
WHATSNEW: Fix typo.

Karolin
(cherry picked from commit 18bab9472e7f85f3f518b64c4673f6f19a60f94d)

11 years agolibwbclient: add wbcLibraryDetails()
Stefan Metzmacher [Fri, 23 May 2008 12:18:42 +0000 (14:18 +0200)]
libwbclient: add wbcLibraryDetails()

metze
(cherry picked from commit b68916328e935e61840cb03560ebeeee15bb2c6f)

11 years agolibwbclient: rename MAXSUBAUTHS => WBC_MAXSUBAUTHS
Stefan Metzmacher [Fri, 23 May 2008 11:59:53 +0000 (13:59 +0200)]
libwbclient: rename MAXSUBAUTHS => WBC_MAXSUBAUTHS

metze
(cherry picked from commit 04d465c622c614bec29f24793ae897a73bcb51f4)

11 years agobuild: add symbol versioning when we build with gnu ld
Stefan Metzmacher [Fri, 23 May 2008 09:52:31 +0000 (11:52 +0200)]
build: add symbol versioning when we build with gnu ld

There's --enable-symbol-versioning=no to disable it.

metze
(cherry picked from commit cb5492978b6b157f529806afb2f5fc6202888129)

11 years agobuild: autogenerate exports/libwbclient.syms
Stefan Metzmacher [Fri, 23 May 2008 10:45:37 +0000 (12:45 +0200)]
build: autogenerate exports/libwbclient.syms

metze
(cherry picked from commit 8e0fcd583a643a8f4240698efcbb177463534a82)

11 years agobuild: autogenerate exports/libtalloc.syms
Stefan Metzmacher [Fri, 23 May 2008 10:04:21 +0000 (12:04 +0200)]
build: autogenerate exports/libtalloc.syms

metze
(cherry picked from commit ce9d8ea9818d91bd91f95149f3b0a7ed4f2dae3b)

11 years agobuild: pass .syms extention via @SYMSEXT@ from configure
Stefan Metzmacher [Fri, 23 May 2008 09:39:23 +0000 (11:39 +0200)]
build: pass .syms extention via @SYMSEXT@ from configure

metze
(cherry picked from commit efb23fdce72db48b4c149fb3dd4a6f4aa3eebbbe)

11 years agoman pages: Fix typo.
Karolin Seeger [Fri, 23 May 2008 12:12:05 +0000 (14:12 +0200)]
man pages: Fix typo.

Karolin
(cherry picked from commit 87bcff8dde4302f7b473933f8fddfb98b3c024db)

11 years agoWHATSNEW: Update changes since pre3.
Karolin Seeger [Fri, 23 May 2008 13:16:37 +0000 (15:16 +0200)]
WHATSNEW: Update changes since pre3.

Karolin
(cherry picked from commit 93ca0277e78622081c1a6cab037543187902fd86)

11 years agoRemove MAX_SESS_ENTRIES and MAX_CONN_ENTRIES limits
Jeremy Allison [Thu, 22 May 2008 23:23:07 +0000 (16:23 -0700)]
Remove MAX_SESS_ENTRIES and MAX_CONN_ENTRIES limits
as they are no longer needed now we have IDL marshalling.
Change the calculation of the 32-bit fileid we return
to a Windows client. We can't just use the generation
count as it starts at zero for every smbd - and this
command must enumerate all files open across all smbds.
We'd really like combination of process-id + dev + inode +
generation count to be unique, but as we can't fit that
into 32 bits just use 16 bits of pid + generation count.
Jeremy.
(cherry picked from commit edf73a97f674d4cb30f20b0cc3d6e6b43b4ca3eb)

11 years agoArggh. Got the path/user the wrong way around. IDL is correct :-).
Jeremy Allison [Thu, 22 May 2008 21:36:09 +0000 (14:36 -0700)]
Arggh. Got the path/user the wrong way around. IDL is correct :-).
Jeremy.
(cherry picked from commit 40548ba51c93de1e2b8a29be07e2f53540f4e9d4)

11 years agoFix 2 bugs with displaying open file state. Firstly
Jeremy Allison [Thu, 22 May 2008 21:28:13 +0000 (14:28 -0700)]
Fix 2 bugs with displaying open file state. Firstly
the IDL is documented incorrectly in the MS-DOCS.
Username and path need to be reversed (yes I will
raise this with MS). Secondly, we need to check
access_mask for the permissions, not share_access
(share_access are the deny modes).
Jeremy.
(cherry picked from commit 35f8b3e7948230bd404078db28eed67bfd896bf7)

11 years agobuild: autogenerate exports/libnetapi.syms
Stefan Metzmacher [Thu, 22 May 2008 15:15:32 +0000 (17:15 +0200)]
build: autogenerate exports/libnetapi.syms

metze
(cherry picked from commit dc09e04d524dcc92a29da0864666fd4258a81b76)

11 years agolibrary-versions: use the same version for talloc and tdb as for the standalone builds
Stefan Metzmacher [Thu, 22 May 2008 14:14:51 +0000 (16:14 +0200)]
library-versions: use the same version for talloc and tdb as for the standalone builds

metze
(cherry picked from commit 79e90f6c5efe97d6671f4def8cc0ffd2f93f48e8)

11 years agodsgetdcname: store client sitename for mailslot and cldap replies.
Günther Deschner [Thu, 15 May 2008 15:47:07 +0000 (17:47 +0200)]
dsgetdcname: store client sitename for mailslot and cldap replies.

Guenther
(cherry picked from commit a01ed719c31998620927dc9b1664ba8e36bd9b21)

11 years agonet: Fix net lookup dsgetdcname, no need to pull site ourselves.
Günther Deschner [Thu, 15 May 2008 15:00:31 +0000 (17:00 +0200)]
net: Fix net lookup dsgetdcname, no need to pull site ourselves.

Guenther
(cherry picked from commit 954d0998c2c00140addb6ba3845e80ed91e4effc)

11 years agodsgetdcname: add site support.
Günther Deschner [Thu, 15 May 2008 14:59:46 +0000 (16:59 +0200)]
dsgetdcname: add site support.

Guenther
(cherry picked from commit e305368538eaa72e3008a5517db3708936924297)

11 years agodsgetdcname: check for invalid sitename/flag combinations.
Günther Deschner [Thu, 15 May 2008 14:41:18 +0000 (16:41 +0200)]
dsgetdcname: check for invalid sitename/flag combinations.

Guenther
(cherry picked from commit 255e509474cae92802e90613ccaddb6627ee77cd)

11 years agolibads/cldap: store client sitename also keyed by dns domain name.
Günther Deschner [Thu, 15 May 2008 14:38:32 +0000 (16:38 +0200)]
libads/cldap: store client sitename also keyed by dns domain name.

Guenther
(cherry picked from commit 0388b2f0cc4d14b005c5b42f2c17ddcbc8bef12a)

11 years agodsgetdcname: In case we didn't get a mailslot reply, don't cache the nodestatus.
Günther Deschner [Wed, 14 May 2008 07:42:23 +0000 (09:42 +0200)]
dsgetdcname: In case we didn't get a mailslot reply, don't cache the nodestatus.

Guenther
(cherry picked from commit 12e47be02f93e2f41af5772f6a83568b3574d032)

11 years agomailslot: Also pick domain name and pdc name from type 15 cldap reply.
Günther Deschner [Wed, 14 May 2008 07:41:24 +0000 (09:41 +0200)]
mailslot: Also pick domain name and pdc name from type 15 cldap reply.

Guenther
(cherry picked from commit 836877c4005ba081c0a4cc97726830d6dbd62d34)

11 years agodsgetdcname: add reminder that we need to support ipv6 here once we know how.
Günther Deschner [Fri, 9 May 2008 15:56:04 +0000 (17:56 +0200)]
dsgetdcname: add reminder that we need to support ipv6 here once we know how.

Guenther
(cherry picked from commit 4b3617bf505a835a6d4bb9b80c4ad837a2082dea)

11 years agodsgetdcname: make use of nbt_cldap_netlogon_15.
Günther Deschner [Fri, 9 May 2008 15:41:50 +0000 (17:41 +0200)]
dsgetdcname: make use of nbt_cldap_netlogon_15.

Guenther
(cherry picked from commit 5b0eda98f3d127399770f7a037ad3277dbe23393)

11 years agore-run make idl.
Günther Deschner [Fri, 9 May 2008 15:40:29 +0000 (17:40 +0200)]
re-run make idl.

Guenther
(cherry picked from commit 5a216d2340bb06a8866718d1b4b07265006bd900)

11 years agoIDL: Fix nbt_cldap_netlogon union, removing the default member.
Günther Deschner [Fri, 9 May 2008 15:39:53 +0000 (17:39 +0200)]
IDL: Fix nbt_cldap_netlogon union, removing the default member.

Guenther
(cherry picked from commit a56d7999a445f7157f85e5636f5b2c5e471a98e2)

11 years agoIDL: Add nbt_cldap_netlogon_15.
Günther Deschner [Fri, 9 May 2008 15:24:38 +0000 (17:24 +0200)]
IDL: Add nbt_cldap_netlogon_15.

Guenther
(cherry picked from commit 5e91bd1d2bfe458c6f8b3696f99e0f75e43cbae8)

11 years agodsgetdcname: use existing messaging_context if possible.
Günther Deschner [Thu, 8 May 2008 16:32:22 +0000 (18:32 +0200)]
dsgetdcname: use existing messaging_context if possible.

Guenther
(cherry picked from commit 7889516a384c155a9045aad4409c041fddd0d98d)

11 years agodsgetdcname: the forest name should never be empty.
Günther Deschner [Thu, 8 May 2008 12:24:46 +0000 (14:24 +0200)]
dsgetdcname: the forest name should never be empty.

Guenther
(cherry picked from commit 2c0a96f1e5fc065fdbeb5671cfa693009321dde8)

11 years agoUse strip_hostname after dsgetdcname/getdcname calls.
Günther Deschner [Thu, 8 May 2008 12:23:20 +0000 (14:23 +0200)]
Use strip_hostname after dsgetdcname/getdcname calls.

Guenther
(cherry picked from commit 82cbb3269b2e764c9c2a2fbcbe9c29feae07fb62)

11 years agoutil: add strip_hostname() to strip of leading '\\'.
Günther Deschner [Thu, 8 May 2008 12:16:50 +0000 (14:16 +0200)]
util: add strip_hostname() to strip of leading '\\'.

Guenther
(cherry picked from commit dbf96120d8b33e592bfd3e9df1777f1670e218be)

11 years agodsgetdcname: add map_dc_and_domain_names() for consolidating returned names.
Günther Deschner [Thu, 8 May 2008 10:16:04 +0000 (12:16 +0200)]
dsgetdcname: add map_dc_and_domain_names() for consolidating returned names.

Guenther
(cherry picked from commit eb7fee6e2a00326c03aa013058247e06279a4930)

11 years agocldap: move out cldap object to fix the build.
Günther Deschner [Wed, 7 May 2008 19:31:59 +0000 (21:31 +0200)]
cldap: move out cldap object to fix the build.

Guenther
(cherry picked from commit 56be9c98d24e64bf855439df21766d30f448f407)

11 years agodsgetdcname: fix gencache store for dsgetdcname().
Günther Deschner [Wed, 7 May 2008 19:25:05 +0000 (21:25 +0200)]
dsgetdcname: fix gencache store for dsgetdcname().

While storing always a type 29 reply structure in gencache, we are now able to
deliver correct data according to return flags such as DS_RETURN_FLAT_NAME and
DS_RETURN_DNS_NAME out of the cached data from gencache.

Guenther
(cherry picked from commit c67b6dc0ca866781043e443177d550e23b83ae36)

11 years agodsgetdcname: pure cosmetics.
Günther Deschner [Wed, 7 May 2008 19:08:20 +0000 (21:08 +0200)]
dsgetdcname: pure cosmetics.

Guenther
(cherry picked from commit 4b56c294e8ba045c84cab538b3d286e433d292ed)

11 years agodsgetdcname: simply call ourself with DS_FORCE_REDISCOVERY after cache expiry.
Günther Deschner [Wed, 7 May 2008 19:06:23 +0000 (21:06 +0200)]
dsgetdcname: simply call ourself with DS_FORCE_REDISCOVERY after cache expiry.

Guenther
(cherry picked from commit 847f258632f6d49a3fd45f466c5d3d8c6222ff85)

11 years agodsgetdcname: be more paranoid about the existance of an ip_address.
Günther Deschner [Wed, 7 May 2008 19:04:10 +0000 (21:04 +0200)]
dsgetdcname: be more paranoid about the existance of an ip_address.

Guenther
(cherry picked from commit d13fe66f3d9ba152e3e8197ee6682e175163a6cd)

11 years agodsgetdcname: remove invalid assumption in discover_dc_dns().
Günther Deschner [Wed, 7 May 2008 19:02:50 +0000 (21:02 +0200)]
dsgetdcname: remove invalid assumption in discover_dc_dns().

Guenther
(cherry picked from commit f48b2e844b673e99c84cb24f3c3718352ab93ce5)

11 years agodsgetdcname: mailslot replies are identical to the cldap ones, use cldap everywhere.
Günther Deschner [Wed, 7 May 2008 16:57:43 +0000 (18:57 +0200)]
dsgetdcname: mailslot replies are identical to the cldap ones, use cldap everywhere.

Guenther
(cherry picked from commit fe904ee77a7fec1674e9db660978c40c17897f77)

11 years agoFix a C++ warning
Volker Lendecke [Mon, 5 May 2008 15:24:17 +0000 (17:24 +0200)]
Fix a C++ warning
(cherry picked from commit e7a4027acf38bf5800d9d8ba477afb5daaf517ce)

11 years agodsgetdcname: wait a little longer for mailslot replies.
Günther Deschner [Wed, 7 May 2008 16:55:45 +0000 (18:55 +0200)]
dsgetdcname: wait a little longer for mailslot replies.

Guenther
(cherry picked from commit bc0d7a90dcc7bf702b24feb16abf4634ff178671)

11 years agodsgetdcname: map additional flags to nt_version.
Günther Deschner [Wed, 7 May 2008 16:39:24 +0000 (18:39 +0200)]
dsgetdcname: map additional flags to nt_version.

Guenther
(cherry picked from commit 1009123b8600e6ccebe180f4a2f87c217638fef8)

11 years agodsgetdcname: use make_dc_info_from_cldap_reply() for cldap replies.
Günther Deschner [Wed, 7 May 2008 16:38:37 +0000 (18:38 +0200)]
dsgetdcname: use make_dc_info_from_cldap_reply() for cldap replies.

Guenther
(cherry picked from commit a3e5b073f0474543ca74b40775ce1d7f80719c96)

11 years agodsgetdcname: add make_dc_info_from_cldap_reply().
Günther Deschner [Wed, 7 May 2008 16:36:03 +0000 (18:36 +0200)]
dsgetdcname: add make_dc_info_from_cldap_reply().

Guenther
(cherry picked from commit 9db2e50a20caabaf90ce03203a066ddd7820d33a)

11 years agodsgetdcname: add get_cldap_reply_server_flags().
Günther Deschner [Wed, 7 May 2008 14:49:39 +0000 (16:49 +0200)]
dsgetdcname: add get_cldap_reply_server_flags().

Guenther
(cherry picked from commit 3c05c56d4c0aac8106684cda3152c65299c63075)

11 years agocldap: let ads_cldap_netlogon() return all possible cldap replies.
Günther Deschner [Wed, 7 May 2008 13:49:09 +0000 (15:49 +0200)]
cldap: let ads_cldap_netlogon() return all possible cldap replies.

Guenther
(cherry picked from commit 6f9d5e1cc94bc90685b54c04622b8f3357bd2f69)

11 years agodsgetdcname: add pull_mailslot_cldap_reply().
Günther Deschner [Wed, 7 May 2008 13:21:41 +0000 (15:21 +0200)]
dsgetdcname: add pull_mailslot_cldap_reply().

Guenther
(cherry picked from commit 95fb01d8702342265f8837a368dc42f4a4d394d5)

11 years agodsgetdcname: add map_ds_flags_to_nt_version.
Günther Deschner [Wed, 7 May 2008 12:38:35 +0000 (14:38 +0200)]
dsgetdcname: add map_ds_flags_to_nt_version.

Guenther
(cherry picked from commit 1809ea22c31ee28e109f49701f91534177027165)

11 years agogencache: add some const.
Günther Deschner [Wed, 7 May 2008 19:01:46 +0000 (21:01 +0200)]
gencache: add some const.

Guenther
(cherry picked from commit ec9f8c4cf67c82f4665ed51e4fd0181f5f147ea0)

11 years agore-run make idl.
Günther Deschner [Wed, 7 May 2008 19:01:29 +0000 (21:01 +0200)]
re-run make idl.

Guenther
(cherry picked from commit 4c0805220821719ad1db1590457ab66a577d26a7)

11 years agoIDL: make nbt_cldap_netlogon_29 public.
Günther Deschner [Wed, 7 May 2008 19:01:09 +0000 (21:01 +0200)]
IDL: make nbt_cldap_netlogon_29 public.

Guenther
(cherry picked from commit 7159cce8055d0197cfc1a9daa08d2370527ea3bc)

11 years agore-run make idl.
Günther Deschner [Wed, 7 May 2008 12:11:27 +0000 (14:11 +0200)]
re-run make idl.

Guenther
(cherry picked from commit 4bef77a4566590b3e20470f538f20848ed49f264)

11 years agoIDL: add missing case 14 and 15 to nbt_cldap_netlogon union.
Günther Deschner [Wed, 7 May 2008 12:10:34 +0000 (14:10 +0200)]
IDL: add missing case 14 and 15 to nbt_cldap_netlogon union.

Guenther
(cherry picked from commit 9fcda4627b1c1d2836b6cbd1141f4e843ecab115)

11 years agodsgetdcname: remove invalid assumptions when using DNS for the DC query.
Günther Deschner [Wed, 7 May 2008 12:09:41 +0000 (14:09 +0200)]
dsgetdcname: remove invalid assumptions when using DNS for the DC query.

Guenther
(cherry picked from commit a81818ae54159755df441cc6421e5b272035f412)

11 years agomailslot/cldap: use nt_version bits in queries.
Günther Deschner [Mon, 5 May 2008 16:04:41 +0000 (18:04 +0200)]
mailslot/cldap: use nt_version bits in queries.

Guenther
(cherry picked from commit b261f063125f8454d8f4e8f6b6f8aa5bc393ea34)

11 years agodsgetdcname: use correct dc name for name cache store.
Günther Deschner [Mon, 5 May 2008 15:22:49 +0000 (17:22 +0200)]
dsgetdcname: use correct dc name for name cache store.

Guenther
(cherry picked from commit ce1556d0fb993b78f02ac4cc4f8a45ab7a0b5397)

11 years agore-run make idl.
Günther Deschner [Wed, 30 Apr 2008 14:03:58 +0000 (16:03 +0200)]
re-run make idl.

Guenther
(cherry picked from commit 14327b11baa18f185e747a321e75abe581d153d2)

11 years agobuild: fix make everything.
Günther Deschner [Wed, 30 Apr 2008 14:02:23 +0000 (16:02 +0200)]
build: fix make everything.

Guenther
(cherry picked from commit d2cd011f4379ed2972c8e4c96f6757961fdceaee)

11 years agoIDL: add nbt_cldap_netlogon_29 which includes the next_closest_site.
Günther Deschner [Wed, 30 Apr 2008 13:49:20 +0000 (15:49 +0200)]
IDL: add nbt_cldap_netlogon_29 which includes the next_closest_site.

Guenther
(cherry picked from commit 909c9ae7ecbaa1bcc38d5c9ebc10fc5fb9a7bf59)

11 years agoIDL: use nbt_netlogon_command in cldap replies.
Günther Deschner [Wed, 30 Apr 2008 13:19:32 +0000 (15:19 +0200)]
IDL: use nbt_netlogon_command in cldap replies.

Guenther
(cherry picked from commit bc92507fb425ae56568c72298b9d7e964ae372d0)

11 years agobuild: fix some build dependencies.
Günther Deschner [Tue, 29 Apr 2008 22:58:49 +0000 (00:58 +0200)]
build: fix some build dependencies.

Guenther
(cherry picked from commit 067a6931a23631dfb902fb4a180f3c44a5455d51)

11 years agoRe-run make idl.
Günther Deschner [Tue, 29 Apr 2008 22:58:28 +0000 (00:58 +0200)]
Re-run make idl.

Guenther
(cherry picked from commit 08b5758e00597a4828044c4d4ac97be0741b0cf2)

11 years agoIDL: use nbt_dc_sock_addr.
Günther Deschner [Tue, 29 Apr 2008 23:10:13 +0000 (01:10 +0200)]
IDL: use nbt_dc_sock_addr.

Guenther
(cherry picked from commit 5a46f34fa364dfb20d7de93164b56d08dc4fb427)

11 years agoIDL: move some netlogon DS flags to NBT where they actually showup first.
Günther Deschner [Tue, 29 Apr 2008 22:56:31 +0000 (00:56 +0200)]
IDL: move some netlogon DS flags to NBT where they actually showup first.

Guenther
(cherry picked from commit 163f17f84bc602f9944153854e42cf643c5c4768)

11 years agoIDL: use samr_AcctFlags in nbt_ntlogon_sam_logon.
Günther Deschner [Tue, 29 Apr 2008 22:35:57 +0000 (00:35 +0200)]
IDL: use samr_AcctFlags in nbt_ntlogon_sam_logon.

Guenther
(cherry picked from commit 5f5658b3dc6407ca05368f657dc3296425844434)

11 years agoIDL: add nbt_netlogon_version.
Günther Deschner [Tue, 29 Apr 2008 22:34:43 +0000 (00:34 +0200)]
IDL: add nbt_netlogon_version.

Guenther
(cherry picked from commit 5963bbea82bf0c11158bd1db00710c3157299bcc)

11 years agomailslot/dsgetdcname: do what XP does and request nt_version 11.
Günther Deschner [Thu, 24 Apr 2008 19:53:55 +0000 (21:53 +0200)]
mailslot/dsgetdcname: do what XP does and request nt_version 11.

This allows dsgetdcname to query for a flat, non-dns domain name and
come back with all information about the DC (site names, guid, forest,
etc.) based on a mailslot reply. The version 11 request is downgraded
to version 1 in case we do a query against NT4.

Guenther
(cherry picked from commit d8b2ff3c8769e8da9c21dec483e6edb7aa2d00f3)

11 years agomailslot: allow to give back struct nbt_ntlogon_packet.
Günther Deschner [Thu, 24 Apr 2008 19:37:42 +0000 (21:37 +0200)]
mailslot: allow to give back struct nbt_ntlogon_packet.

Guenther
(cherry picked from commit 2b178dcae608ecc05f62593a7a0c2a127b8b7ca2)

11 years agomailslot: make sure we are looking at the correct reply structure.
Günther Deschner [Thu, 24 Apr 2008 19:29:48 +0000 (21:29 +0200)]
mailslot: make sure we are looking at the correct reply structure.

Guenther
(cherry picked from commit c6ce07fdf57c8b63ba6d72b622be261723cb55e3)

11 years agomailslot: allow to define nt_version in send_getdc_request().
Günther Deschner [Thu, 24 Apr 2008 19:28:03 +0000 (21:28 +0200)]
mailslot: allow to define nt_version in send_getdc_request().

Guenther
(cherry picked from commit ce3728191b23badfd5eb92701e4cebf84273b61e)

11 years agolibreplace: we need to use AC_TRY_LINK() to make sure HAVE_IPV6 is correctly detected
Stefan Metzmacher [Thu, 22 May 2008 13:00:19 +0000 (15:00 +0200)]
libreplace: we need to use AC_TRY_LINK() to make sure HAVE_IPV6 is correctly detected

metze
(cherry picked from commit 84b5652d3e5766521436e4c7d59615b08b2bb198)
(cherry picked from commit f7e0bff88a23be0e7cbbd7eab60ed49bcdda04fa)

11 years agoconfigure: samba_cv_unixsocket was renamed into libreplace_cv_HAVE_UNIXSOCKET
Stefan Metzmacher [Wed, 21 May 2008 20:32:21 +0000 (22:32 +0200)]
configure: samba_cv_unixsocket was renamed into libreplace_cv_HAVE_UNIXSOCKET

metze
(cherry picked from commit 5967d2a5d6e9547d868bd85e3f3d3936bbd07fa9)

11 years agoconfigure: remove HAVE_IPV6 test as LIBREPLACE_NETWORK_CHECKS already have this
Stefan Metzmacher [Wed, 21 May 2008 20:31:08 +0000 (22:31 +0200)]
configure: remove HAVE_IPV6 test as LIBREPLACE_NETWORK_CHECKS already have this

metze
(cherry picked from commit c03fa242403fe28bc2b6ea84834457ce2410d3ca)

11 years agolibreplace: add test for HAVE_IPV6
Stefan Metzmacher [Wed, 21 May 2008 19:27:45 +0000 (21:27 +0200)]
libreplace: add test for HAVE_IPV6

Samba can later just check libreplace_cv_HAVE_IPV6 = yes.

metze
(cherry picked from commit e835e7eebcc064ce0813814796828f15ad112fbd)
(cherry picked from commit 757071e59e4c1be0971b68d33833c621ed6bf361)

11 years agoconfigure: make use of LIBREPLACE_NETWORK_LIBS instead of redoing the tests
Stefan Metzmacher [Fri, 16 May 2008 10:50:16 +0000 (12:50 +0200)]
configure: make use of LIBREPLACE_NETWORK_LIBS instead of redoing the tests

metze
(cherry picked from commit 4b484426f52d5ed37af117f5ade63816f1c9b0ea)

11 years agoconfigure: remove some header checks which are already done by AC_LIBREPLACE_NETWORK_...
Stefan Metzmacher [Fri, 16 May 2008 10:48:57 +0000 (12:48 +0200)]
configure: remove some header checks which are already done by AC_LIBREPLACE_NETWORK_CHECKS

metze
(cherry picked from commit d4bf447361bd52546c6944fbf6ee96637aa725ed)

11 years agolib/replace: move sys/sockio.h and sys/un.h checks into AC_LIBREPLACE_NETWORK_CHECKS
Stefan Metzmacher [Fri, 16 May 2008 10:46:10 +0000 (12:46 +0200)]
lib/replace: move sys/sockio.h and sys/un.h checks into AC_LIBREPLACE_NETWORK_CHECKS

metze
(cherry picked from commit 7f26a5425e706a97cc07c5139b3fea4fde9e4020)
(cherry picked from commit 4bb7873cf0ddc8832fa94baeb6a817e4783e30f4)

11 years agoconfigure: remove unused configure checks for HAVE_SOCK_SIN_LEN and HAVE_UNIXSOCKET...
Stefan Metzmacher [Fri, 16 May 2008 10:33:11 +0000 (12:33 +0200)]
configure: remove unused configure checks for HAVE_SOCK_SIN_LEN and HAVE_UNIXSOCKET and rely on libreplace

metze
(cherry picked from commit ff5cecdec74cd58ef64e166b5d7a55584afa23f6)

11 years agolib/replace: add checks for HAVE_SOCK_SIN_LEN and HAVE_UNIXSOCKET
Stefan Metzmacher [Fri, 16 May 2008 10:29:21 +0000 (12:29 +0200)]
lib/replace: add checks for HAVE_SOCK_SIN_LEN and HAVE_UNIXSOCKET

Moved from the samba specific locations

metze
(cherry picked from commit e674128ee2f11596f358ed46104c9d25eb2f754f)
(cherry picked from commit c403965f5723177b42f393df20a29b07dceae1cb)

11 years agoconfigure: remove unused configure check for HAVE_WORKING_AF_LOCAL
Stefan Metzmacher [Fri, 16 May 2008 10:16:05 +0000 (12:16 +0200)]
configure: remove unused configure check for HAVE_WORKING_AF_LOCAL

metze
(cherry picked from commit 0aef5ed43b81e0cb9b19f21125f270016a311f58)

11 years agolibreplace: try to fix the build on HP-UX which has if_nametoindex() in -lipv6
Stefan Metzmacher [Thu, 8 May 2008 09:01:09 +0000 (11:01 +0200)]
libreplace: try to fix the build on HP-UX which has if_nametoindex() in -lipv6

metze
(cherry picked from commit da2179ee5d5b6094ab63a9d9d6a8d59893937087)
(cherry picked from commit 9f931829aaeda8004e7ee3b8b2ac9ddaab8bffb7)

11 years agolibreplace: make sure system/network.h is only used when AC_LIBREPLACE_NETWORK_CHECKS...
Stefan Metzmacher [Thu, 8 May 2008 08:39:41 +0000 (10:39 +0200)]
libreplace: make sure system/network.h is only used when AC_LIBREPLACE_NETWORK_CHECKS was used

metze
(cherry picked from commit 3fddd36e119f73a5021370450f9687ef9d252bab)
(cherry picked from commit 0b26742234467ac1dcfda059e81a35a1cd5e96ed)

11 years agolibreplace: export LIBREPLACE_NETWORK_OBJS and LIBREPLACE_NETWORK_LIBS vars
Stefan Metzmacher [Thu, 8 May 2008 08:32:19 +0000 (10:32 +0200)]
libreplace: export LIBREPLACE_NETWORK_OBJS and LIBREPLACE_NETWORK_LIBS vars

metze
(cherry picked from commit aa7ef1af746319a3d771decd0ec03dabe8b8ad28)
(cherry picked from commit 84daf26558f675fd07e3ac9a699e06801814e393)

11 years agolibreplace: include inet_ntoa.o when the system one is broken
Stefan Metzmacher [Thu, 8 May 2008 08:27:23 +0000 (10:27 +0200)]
libreplace: include inet_ntoa.o when the system one is broken

metze
(cherry picked from commit 67845d3471711d24069636d0d4032f9d53748334)
(cherry picked from commit c44c0636ade08751edc7dce4ea0e2a2279aa0eac)

11 years agolibreplace: merge getifaddrs.m4 into libreplace_network.m4
Stefan Metzmacher [Thu, 8 May 2008 08:08:42 +0000 (10:08 +0200)]
libreplace: merge getifaddrs.m4 into libreplace_network.m4

metze
(cherry picked from commit 0234d397fefee8e1d0dcd3402f748c2251021c90)
(cherry picked from commit 3ed6f285eca540d6c58aac84c6f50f949519b742)

11 years agolibreplace: merge getaddrinfo.m4 into libreplace_network.m4
Stefan Metzmacher [Thu, 8 May 2008 08:06:39 +0000 (10:06 +0200)]
libreplace: merge getaddrinfo.m4 into libreplace_network.m4

metze
(cherry picked from commit 64591d064dc3da6074f0f7539911a6e433d9cc43)
(cherry picked from commit c5df0a4faffdd16c3fb3ecdc5720842d6fe49e55)

11 years agolibreplace: merge socketpair.m4 into libreplace_network.m4
Stefan Metzmacher [Thu, 8 May 2008 08:04:51 +0000 (10:04 +0200)]
libreplace: merge socketpair.m4 into libreplace_network.m4

metze
(cherry picked from commit f9f8f93adcc7161ebb18f5a0bf28c73d951a15ad)
(cherry picked from commit 3adda27f3eecb5ea027c35e974e3b6bb5fe3b83e)

11 years agolibreplace: merge inet_pton.m4 into libreplace_network.m4
Stefan Metzmacher [Thu, 8 May 2008 08:02:21 +0000 (10:02 +0200)]
libreplace: merge inet_pton.m4 into libreplace_network.m4

metze
(cherry picked from commit 3a70274c908e31453942b442351eab8423c1a53d)
(cherry picked from commit 784b37987c51806b225371ea1f1bdc416de3dfd1)

11 years agolibreplace: merge inet_ntop.m4 into libreplace_network.m4
Stefan Metzmacher [Thu, 8 May 2008 08:00:58 +0000 (10:00 +0200)]
libreplace: merge inet_ntop.m4 into libreplace_network.m4

metze
(cherry picked from commit 223ef6c08efb52251d0a772bb0c481b2803cf0ce)
(cherry picked from commit 97483e2830971d34ef0775159bfd07402e3d284e)

11 years agolibreplace: merge inet_aton.m4 into libreplace_network.m4
Stefan Metzmacher [Thu, 8 May 2008 07:59:16 +0000 (09:59 +0200)]
libreplace: merge inet_aton.m4 into libreplace_network.m4

metze
(cherry picked from commit fba00736c870f449c0eee32fe0d7b0d539dca51f)
(cherry picked from commit b90a6c5cbf2912c9cc2961de4efc880502a3441e)

11 years agolibreplace: merge inet_ntoa.m4 into libreplace_network.m4
Stefan Metzmacher [Thu, 8 May 2008 07:58:07 +0000 (09:58 +0200)]
libreplace: merge inet_ntoa.m4 into libreplace_network.m4

metze
(cherry picked from commit 82e826253b6d18832931dbb5c1dda009889bf9e0)
(cherry picked from commit 66126edaf425ccdfc5bed90252493235878d4fc1)

11 years agolibreplace: merge socket.m4 into libreplace_network.m4
Stefan Metzmacher [Thu, 8 May 2008 07:56:10 +0000 (09:56 +0200)]
libreplace: merge socket.m4 into libreplace_network.m4

metze
(cherry picked from commit c70eba87dbbac6c2c1e68c343cdd410577c1686f)
(cherry picked from commit 236ce0ac6f949c2dd42f5df06e39af69b779d61e)

11 years agoFix typo.
Jelmer Vernooij [Thu, 8 May 2008 11:43:45 +0000 (13:43 +0200)]
Fix typo.
(cherry picked from commit bd089818a3182698dfe85039c1b2e22d8c2835bb)
(cherry picked from commit 7a3cb33c6d9d14907777f55abd6421bab89b34b2)

11 years agoAdd undefined symbol flag for AIX.
William Jojo [Thu, 8 May 2008 10:41:57 +0000 (12:41 +0200)]
Add undefined symbol flag for AIX.
(cherry picked from commit dabdf24e86f038e3afc67532fa5bf60a37992161)
(cherry picked from commit fdf2a94583949150fd426f44cd33265fc6fd9d6e)

11 years agolibreplace: also use AC_LIBREPLACE_NETWORK_CHECKS for the standalone build
Stefan Metzmacher [Wed, 7 May 2008 15:38:41 +0000 (17:38 +0200)]
libreplace: also use AC_LIBREPLACE_NETWORK_CHECKS for the standalone build

metze
(cherry picked from commit 04f4523ed032946b8f0e74ac6f7458010159e3bb)
(cherry picked from commit f7d298760d9822d7a437507a49f2140352212411)

11 years agolibreplace: use AC_LIBREPLACE_NETWORK_CHECKS only for samba
Stefan Metzmacher [Wed, 7 May 2008 15:20:38 +0000 (17:20 +0200)]
libreplace: use AC_LIBREPLACE_NETWORK_CHECKS only for samba

metze
(cherry picked from commit 7adf41795027dba9648912373220fa0dcf9bb42a)

11 years agolibreplace: use AC_LIBREPLACE_NETWORK_CHECKS only for samba
Stefan Metzmacher [Wed, 7 May 2008 15:15:36 +0000 (17:15 +0200)]
libreplace: use AC_LIBREPLACE_NETWORK_CHECKS only for samba

metze
(cherry picked from commit 3451b54bf7f5e37a589ec261d28c2a8b6f9788ed)
(cherry picked from commit a004b38a953d64e77b58bdb99d0af946e2cae2cf)

11 years agolibreplace: split out network checks into a AC_LIBREPLACE_NETWORK_CHECKS macro
Stefan Metzmacher [Wed, 7 May 2008 14:50:19 +0000 (16:50 +0200)]
libreplace: split out network checks into a AC_LIBREPLACE_NETWORK_CHECKS macro

Note: moving it out of AC_LIBREPLACE_BROKEN_CHECKS will be the next step

metze
(cherry picked from commit 55a904b1d7aeca849d450e371b18afca5b0c6218)
(cherry picked from commit a7969f94f854594dbe6ef3ff630e242d27ad618e)

11 years agolibreplace: always provide utime() and utimes()
Stefan Metzmacher [Wed, 7 May 2008 11:10:31 +0000 (13:10 +0200)]
libreplace: always provide utime() and utimes()

I'd like to also provide futimes(), but it seems
that some systems doesn't support a it at kernel level.

If someone knows how to write a portable replacement
for futimes() please tell me...

metze
(cherry picked from commit a9604fe4a323dccb537cf02ea7594437b4995803)
(cherry picked from commit cde0db60402a69a05dea51b5b8f01789e93406e7)

11 years agolibreplace: check how portable utimes() and futimes() are
Stefan Metzmacher [Tue, 6 May 2008 10:38:55 +0000 (12:38 +0200)]
libreplace: check how portable utimes() and futimes() are

metze
(cherry picked from commit 8798ce3c744025b94973784dcb44d099427ef190)
(cherry picked from commit 1c01674624db5a2dae3afe9ba213a69c2ee2efda)

11 years agoWork around iconv conversion failure from generated smb.conf.5 on Ubuntu 8.04.
Gerald (Jerry) Carter [Wed, 21 May 2008 17:54:43 +0000 (12:54 -0500)]
Work around iconv conversion failure from generated smb.conf.5 on Ubuntu 8.04.

Have no idea why the previous sequence of characters was causing
iconv to choke on my Ubuntu 8.04.  Reword the entry some
for clarity and to advoid this failure.
(cherry picked from commit b0b4bd2466658deacb1de3d58154bcc8d198d675)