NetBSD Problem Report #33511

From mark@mcs.vuw.ac.nz  Fri May 19 03:00:39 2006
Return-Path: <mark@mcs.vuw.ac.nz>
Received: from kaukau.mcs.vuw.ac.nz (kaukau.mcs.vuw.ac.nz [130.195.5.20])
	by narn.NetBSD.org (Postfix) with ESMTP id 7B5B963B872
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 19 May 2006 03:00:38 +0000 (UTC)
Message-Id: <200605190300.k4J30X2s000304@city-art.mcs.vuw.ac.nz>
Date: Fri, 19 May 2006 15:00:33 +1200 (NZST)
From: Mark Davies <mark@mcs.vuw.ac.nz>
Reply-To: mark@mcs.vuw.ac.nz
To: gnats-bugs@NetBSD.org
Subject: thunderbird doesn't do ldap
X-Send-Pr-Version: 3.95

>Number:         33511
>Category:       pkg
>Synopsis:       thunderbird doesn't do ldap
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    taya
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 19 03:05:00 +0000 2006
>Closed-Date:    Mon Oct 23 11:17:32 +0000 2006
>Last-Modified:  Thu Nov 09 11:50:01 +0000 2006
>Originator:     Mark Davies
>Release:        NetBSD 3.99.11
>Organization:
Dept. of Comp. Sci., Victoria Uni. of Wellington, New Zealand.
>Environment:


System: NetBSD city-art.mcs.vuw.ac.nz 3.99.11 NetBSD 3.99.11 (MCS_WORKSTATION) #2: Thu Feb 9 00:40:59 NZDT 2006 mark@turakirae.mcs.vuw.ac.nz:/mnt/SAVE/build.obj/src/work/src/sys/arch/i386/compile/MCS_WORKSTATION i386
Architecture: i386
Machine: i386
>Description:
	A pkgsrc built thunderbird will not perform ldap queries whereas a
	linux binary version from mozilla.org will.

	http://mail-index.netbsd.org/pkgsrc-users/2006/03/10/0000.html gives
	some background.

>How-To-Repeat:
	Configure an ldap server in the thunderbird Address Book
	eg  Host: ldap.mcs.vuw.ac.nz, Base DN: dc=vuw,dc=ac,dc=nz
	Select the address book and perform a search.
	Observe no ldap traffic between the local machine and the server.

>Fix:


>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->taya
Responsible-Changed-By: reed@netbsd.org
Responsible-Changed-When: Sun, 21 May 2006 06:23:06 +0000
Responsible-Changed-Why:
Assign to maintainer.


From: Mark Davies <mark@mcs.vuw.ac.nz>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/33511: thunderbird doesn't do ldap
Date: Thu, 25 May 2006 14:10:32 +1200

 Turns out it was the old "trying to use ipv6 sockets to do ipv4" issue.  Ldap 
 lookups work if you "sysctl -w net.inet6.ip6.v6only=0".

 Below is a patch that fixes it for me by using a v4 socket when dealing with 
 ldap servers that have a v4 address.

 $NetBSD$

 --- directory/c-sdk/ldap/libraries/libprldap/ldappr-io.c.orig	2006-05-25 
 11:38:04.000000000 +1200
 +++ directory/c-sdk/ldap/libraries/libprldap/ldappr-io.c
 @@ -292,12 +292,12 @@ prldap_try_one_address( struct lextiof_s
       * Set up address and open a TCP socket:
       */
      if ( PR_SUCCESS != PR_SetNetAddr( PR_IpAddrNull, /* don't touch IP addr. 
 */
 -		PRLDAP_DEFAULT_ADDRESS_FAMILY, (PRUint16)port, addrp )) { 
 +		PR_NetAddrFamily( addrp ), (PRUint16)port, addrp )) { 
  	return( -1 );
      }

      if (( prsockp->prsock_prfd = PR_OpenTCPSocket(
 -		PRLDAP_DEFAULT_ADDRESS_FAMILY )) == NULL ) {
 +		PR_NetAddrFamily( addrp ))) == NULL ) {
  	return( -1 );
      }

 @@ -390,14 +390,14 @@ prldap_connect( const char *hostlist, in

  	if ( PR_SUCCESS == PR_StringToNetAddr( host, &addr )) {

 -		if ( PRLDAP_DEFAULT_ADDRESS_FAMILY == PR_AF_INET6 &&
 +		/*if ( PRLDAP_DEFAULT_ADDRESS_FAMILY == PR_AF_INET6 &&
  				PR_AF_INET == PR_NetAddrFamily( &addr )) {
  			PRUint32	ipv4ip = addr.inet.ip;
  			memset( &addr, 0, sizeof(addr));
  			PR_ConvertIPv4AddrToIPv6( ipv4ip, &addr.ipv6.ip );
  			addr.ipv6.family = PR_AF_INET6;

 -		}
 +		}*/
  	    rc = prldap_try_one_address( prsockp, &addr, port,
  			timeout, options );
  	} else {


 The same issue and patch will apply to firefox and mozilla as well.

 cheers
 mark

From: Mark Davies <markd@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/33511 CVS commit: pkgsrc
Date: Mon, 23 Oct 2006 10:49:35 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	markd
 Date:		Mon Oct 23 10:49:35 UTC 2006

 Modified Files:
 	pkgsrc/mail/thunderbird: Makefile distinfo
 	pkgsrc/mail/thunderbird-gtk1: Makefile
 	pkgsrc/time/sunbird: Makefile distinfo
 	pkgsrc/www/firefox: Makefile distinfo
 	pkgsrc/www/firefox-gtk1: Makefile
 	pkgsrc/www/seamonkey: Makefile distinfo
 	pkgsrc/www/seamonkey-gtk1: Makefile
 Added Files:
 	pkgsrc/mail/thunderbird/patches: patch-at
 	pkgsrc/time/sunbird/patches: patch-at
 	pkgsrc/www/firefox/patches: patch-at
 	pkgsrc/www/seamonkey/patches: patch-at

 Log Message:
 thunderbird's ldap doesn't work talking to an ipv4 ldap server if
 talking to ipv4 addresses using ipv6 addresses isn't allowed, which is
 the default on NetBSD.  Patch to use a v4 socket when talking to an ipv4
 ldap server.  Fixes my PR 33511.
 seamonkey/firefox/sunbird have the same code so make the same patch.
 OKed ghen.  Bump PKGREVISION.


 To generate a diff of this commit:
 cvs rdiff -r1.20 -r1.21 pkgsrc/mail/thunderbird/Makefile
 cvs rdiff -r1.29 -r1.30 pkgsrc/mail/thunderbird/distinfo
 cvs rdiff -r1.10 -r1.11 pkgsrc/mail/thunderbird-gtk1/Makefile
 cvs rdiff -r0 -r1.1 pkgsrc/mail/thunderbird/patches/patch-at
 cvs rdiff -r1.3 -r1.4 pkgsrc/time/sunbird/Makefile
 cvs rdiff -r1.7 -r1.8 pkgsrc/time/sunbird/distinfo
 cvs rdiff -r0 -r1.1 pkgsrc/time/sunbird/patches/patch-at
 cvs rdiff -r1.37 -r1.38 pkgsrc/www/firefox/Makefile
 cvs rdiff -r1.56 -r1.57 pkgsrc/www/firefox/distinfo
 cvs rdiff -r1.13 -r1.14 pkgsrc/www/firefox-gtk1/Makefile
 cvs rdiff -r0 -r1.1 pkgsrc/www/firefox/patches/patch-at
 cvs rdiff -r1.11 -r1.12 pkgsrc/www/seamonkey/Makefile
 cvs rdiff -r1.12 -r1.13 pkgsrc/www/seamonkey/distinfo
 cvs rdiff -r1.8 -r1.9 pkgsrc/www/seamonkey-gtk1/Makefile
 cvs rdiff -r0 -r1.1 pkgsrc/www/seamonkey/patches/patch-at

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: markd@netbsd.org
State-Changed-When: Mon, 23 Oct 2006 11:17:32 +0000
State-Changed-Why:
patch applied.


From: Lubomir Sedlacik <salo@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/33511 CVS commit: [pkgsrc-2006Q3] pkgsrc/www
Date: Thu,  9 Nov 2006 07:28:47 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	salo
 Date:		Thu Nov  9 07:28:47 UTC 2006

 Modified Files:
 	pkgsrc/www/firefox [pkgsrc-2006Q3]: Makefile Makefile-firefox.common
 	    distinfo
 	pkgsrc/www/firefox-bin [pkgsrc-2006Q3]: Makefile distinfo
 	pkgsrc/www/firefox-gtk1 [pkgsrc-2006Q3]: Makefile
 	pkgsrc/www/firefox/patches [pkgsrc-2006Q3]: patch-ai
 Added Files:
 	pkgsrc/www/firefox/patches [pkgsrc-2006Q3]: patch-at

 Log Message:
 Pullup ticket 1905 - requested by ghen
 security update for firefox

 Revisions pulled up:
 - pkgsrc/www/firefox/Makefile				1.37, 1.38, 1.39
 - pkgsrc/www/firefox/Makefile-firefox.common		1.38
 - pkgsrc/www/firefox/distinfo				1.56, 1.57, 1.58
 - pkgsrc/www/firefox/patches/patch-ai			1.5
 - pkgsrc/www/firefox/patches/patch-at			1.1
 - pkgsrc/www/firefox-gtk1/Makefile			1.14, 1.15
 - pkgsrc/www/firefox-bin/Makefile			1.23
 - pkgsrc/www/firefox-bin/distinfo			1.21

    Module Name:		pkgsrc
    Committed By:	markd
    Date:		Thu Oct 19 10:25:17 UTC 2006

    Modified Files:
    	pkgsrc/www/firefox: Makefile distinfo
    	pkgsrc/www/firefox/patches: patch-ai

    Log Message:
    Fix crash after printing caused by trying to destroy the same charset
    structure multiple times.  Bump PKGREVISION.
 ---
    Module Name:		pkgsrc
    Committed By:	markd
    Date:		Mon Oct 23 10:49:35 UTC 2006

    Modified Files:
    	pkgsrc/www/firefox: Makefile distinfo
    	pkgsrc/www/firefox-gtk1: Makefile
    Added Files:
    	pkgsrc/www/firefox/patches: patch-at

    Log Message:
    thunderbird's ldap doesn't work talking to an ipv4 ldap server if
    talking to ipv4 addresses using ipv6 addresses isn't allowed, which is
    the default on NetBSD.  Patch to use a v4 socket when talking to an ipv4
    ldap server.  Fixes my PR 33511.
    seamonkey/firefox/sunbird have the same code so make the same patch.
    OKed ghen.  Bump PKGREVISION.
 ---
    Module Name:		pkgsrc
    Committed By:	ghen
    Date:		Wed Nov  8 09:50:15 UTC 2006

    Modified Files:
    	pkgsrc/www/firefox: Makefile Makefile-firefox.common distinfo
    	pkgsrc/www/firefox-bin: Makefile distinfo
    	pkgsrc/www/firefox-gtk1: Makefile

    Log Message:
    Update firefox, firefox-bin and firefox-gtk1 to 1.5.0.8. Fixed in this
    version:

    MFSA 2006-67 Running Script can be recompiled
    MFSA 2006-66 RSA signature forgery (variant)
    MFSA 2006-65 Crashes with evidence of memory corruption (rv:1.8.0.8)

    For more info, see
    http://www.mozilla.com/en-US/firefox/releases/1.5.0.8.html


 To generate a diff of this commit:
 cvs rdiff -r1.36 -r1.36.2.1 pkgsrc/www/firefox/Makefile
 cvs rdiff -r1.37 -r1.37.2.1 pkgsrc/www/firefox/Makefile-firefox.common
 cvs rdiff -r1.54 -r1.54.2.1 pkgsrc/www/firefox/distinfo
 cvs rdiff -r1.22 -r1.22.2.1 pkgsrc/www/firefox-bin/Makefile
 cvs rdiff -r1.20 -r1.20.2.1 pkgsrc/www/firefox-bin/distinfo
 cvs rdiff -r1.13 -r1.13.4.1 pkgsrc/www/firefox-gtk1/Makefile
 cvs rdiff -r1.4 -r1.4.8.1 pkgsrc/www/firefox/patches/patch-ai
 cvs rdiff -r0 -r1.1.2.1 pkgsrc/www/firefox/patches/patch-at

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Lubomir Sedlacik <salo@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/33511 CVS commit: [pkgsrc-2006Q3] pkgsrc/mail
Date: Thu,  9 Nov 2006 09:30:57 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	salo
 Date:		Thu Nov  9 09:30:57 UTC 2006

 Modified Files:
 	pkgsrc/mail/thunderbird [pkgsrc-2006Q3]: Makefile-thunderbird.common
 	    PLIST distinfo
 	pkgsrc/mail/thunderbird-gtk1 [pkgsrc-2006Q3]: PLIST
 	pkgsrc/mail/thunderbird/patches [pkgsrc-2006Q3]: patch-ai
 Added Files:
 	pkgsrc/mail/thunderbird/patches [pkgsrc-2006Q3]: patch-as patch-at

 Log Message:
 Pullup ticket 1906 - requested by ghen
 security update for thunderbird

 Revisions pulled up:
 - pkgsrc/mail/thunderbird/Makefile-thunderbird.common	1.19, 1.20
 - pkgsrc/mail/thunderbird/PLIST				1.16, 1.17
 - pkgsrc/mail/thunderbird/distinfo			1.28, 1.29, 1.30, 1.31
 - pkgsrc/mail/thunderbird/patches/patch-ai		1.4
 - pkgsrc/mail/thunderbird/patches/patch-as		1.3
 - pkgsrc/mail/thunderbird/patches/patch-at		1.1
 - pkgsrc/mail/thunderbird-gtk1/PLIST			1.7, 1.8

    Module Name:		pkgsrc
    Committed By:	markd
    Date:		Thu Oct 19 10:26:14 UTC 2006

    Modified Files:
    	pkgsrc/mail/thunderbird: distinfo
    	pkgsrc/mail/thunderbird/patches: patch-ai

    Log Message:
    Fix crash after printing caused by trying to destroy the same charset
    structure multiple times.  Bump PKGREVISION.
 ---
    Module Name:		pkgsrc
    Committed By:	tron
    Date:		Fri Oct 20 12:45:13 UTC 2006

    Modified Files:
    	pkgsrc/mail/thunderbird: distinfo
    Added Files:
    	pkgsrc/mail/thunderbird/patches: patch-as

    Log Message:
    Fix "if [ ... == ...]" in a build script.
 ---
    Module Name:		pkgsrc
    Committed By:	markd
    Date:		Mon Oct 23 09:43:06 UTC 2006

    Modified Files:
    	pkgsrc/mail/thunderbird: Makefile-thunderbird.common PLIST
    	pkgsrc/mail/thunderbird-gtk1: PLIST

    Log Message:
    Build the default set of extensions in thunderbird{,-gtk1}. Allows
    GSSAPI authentication to work on NetBSD-current.  Fixes my PR 33512.
    OKed by ghen.  Bump PKGREVISION.
 ---
    Module Name:		pkgsrc
    Committed By:	markd
    Date:		Mon Oct 23 10:49:35 UTC 2006

    Modified Files:
    	pkgsrc/mail/thunderbird: distinfo
    Added Files:
    	pkgsrc/mail/thunderbird/patches: patch-at

    Log Message:
    thunderbird's ldap doesn't work talking to an ipv4 ldap server if
    talking to ipv4 addresses using ipv6 addresses isn't allowed, which is
    the default on NetBSD.  Patch to use a v4 socket when talking to an ipv4
    ldap server.  Fixes my PR 33511.
    seamonkey/firefox/sunbird have the same code so make the same patch.
    OKed ghen.  Bump PKGREVISION.
 ---
    Module Name:		pkgsrc
    Committed By:	ghen
    Date:		Wed Nov  8 13:15:40 UTC 2006

    Modified Files:
    	pkgsrc/mail/thunderbird: Makefile-thunderbird.common PLIST
    	    distinfo
    	pkgsrc/mail/thunderbird-gtk1: PLIST

    Log Message:
    Update thunderbird and thunderbird-gtk1 to 1.5.0.8.  Fixed in this version:

    MFSA 2006-67 Running Script can be recompiled
    MFSA 2006-66 RSA signature forgery (variant)
    MFSA 2006-65 Crashes with evidence of memory corruption (rv:1.8.0.8)

    For more info, see http://www.mozilla.com/en-US/thunderbird/releases/1.5.0.8.html


 To generate a diff of this commit:
 cvs rdiff -r1.18 -r1.18.2.1 \
     pkgsrc/mail/thunderbird/Makefile-thunderbird.common
 cvs rdiff -r1.15 -r1.15.4.1 pkgsrc/mail/thunderbird/PLIST
 cvs rdiff -r1.27 -r1.27.2.1 pkgsrc/mail/thunderbird/distinfo
 cvs rdiff -r1.6 -r1.6.4.1 pkgsrc/mail/thunderbird-gtk1/PLIST
 cvs rdiff -r1.3 -r1.3.6.1 pkgsrc/mail/thunderbird/patches/patch-ai
 cvs rdiff -r0 -r1.2.2.1 pkgsrc/mail/thunderbird/patches/patch-as
 cvs rdiff -r0 -r1.1.2.1 pkgsrc/mail/thunderbird/patches/patch-at

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Lubomir Sedlacik <salo@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/33511 CVS commit: [pkgsrc-2006Q3] pkgsrc/www
Date: Thu,  9 Nov 2006 11:49:00 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	salo
 Date:		Thu Nov  9 11:49:00 UTC 2006

 Modified Files:
 	pkgsrc/www/seamonkey [pkgsrc-2006Q3]: Makefile
 	    Makefile-seamonkey.common distinfo
 	pkgsrc/www/seamonkey-bin [pkgsrc-2006Q3]: Makefile distinfo
 	pkgsrc/www/seamonkey/patches [pkgsrc-2006Q3]: patch-ai
 Added Files:
 	pkgsrc/www/seamonkey/patches [pkgsrc-2006Q3]: patch-at patch-ec

 Log Message:
 Pullup ticket 1907 - requested by ghen
 security update for seamonkey

 Revisions pulled up:
 - pkgsrc/www/seamonkey/Makefile				1.11, 1.12, 1.13
 - pkgsrc/www/seamonkey/Makefile-seamonkey.common	1.2
 - pkgsrc/www/seamonkey/distinfo				1.11, 1.12, 1.13, 1.14
 - pkgsrc/www/seamonkey/patches/patch-ai			1.2
 - pkgsrc/www/seamonkey/patches/patch-at			1.1
 - pkgsrc/www/seamonkey/patches/patch-ec			1.1
 - pkgsrc/www/seamonkey-bin/Makefile			1.9
 - pkgsrc/www/seamonkey-bin/distinfo			1.7

    Module Name:		pkgsrc
    Committed By:	markd
    Date:		Thu Oct 19 10:25:36 UTC 2006

    Modified Files:
    	pkgsrc/www/seamonkey: Makefile distinfo
    	pkgsrc/www/seamonkey/patches: patch-ai

    Log Message:
    Fix crash after printing caused by trying to destroy the same charset
    structure multiple times.  Bump PKGREVISION.
 ---
    Module Name:		pkgsrc
    Committed By:	rillig
    Date:		Fri Oct 20 10:28:51 UTC 2006

    Modified Files:
    	pkgsrc/www/seamonkey: distinfo
    Added Files:
    	pkgsrc/www/seamonkey/patches: patch-ec

    Log Message:
    Fixed "test ==".
 --
    Module Name:		pkgsrc
    Committed By:	markd
    Date:		Mon Oct 23 10:49:35 UTC 2006

    Modified Files:
    	pkgsrc/www/seamonkey: Makefile distinfo
    Added Files:
    	pkgsrc/www/seamonkey/patches: patch-at

    Log Message:
    thunderbird's ldap doesn't work talking to an ipv4 ldap server if
    talking to ipv4 addresses using ipv6 addresses isn't allowed, which is
    the default on NetBSD.  Patch to use a v4 socket when talking to an ipv4
    ldap server.  Fixes my PR 33511.
    seamonkey/firefox/sunbird have the same code so make the same patch.
    OKed ghen.  Bump PKGREVISION.
 ---
    Module Name:		pkgsrc
    Committed By:	ghen
    Date:		Wed Nov  8 14:39:16 UTC 2006

    Modified Files:
    	pkgsrc/www/seamonkey: Makefile Makefile-seamonkey.common distinfo
    	pkgsrc/www/seamonkey-bin: Makefile distinfo

    Log Message:
    Update seamonkey, seamonkey-bin and seamonkey-gtk1 to 1.0.6.  Fixed in this version:

    MFSA 2006-67 Running Script can be recompiled
    MFSA 2006-66 RSA signature forgery (variant)
    MFSA 2006-65 Crashes with evidence of memory corruption (rv:1.8.0.8)

    For more info, see http://www.mozilla.org/projects/seamonkey/releases/seamonkey1.0.6/README.html


 To generate a diff of this commit:
 cvs rdiff -r1.10 -r1.10.2.1 pkgsrc/www/seamonkey/Makefile \
     pkgsrc/www/seamonkey/distinfo
 cvs rdiff -r1.1 -r1.1.2.1 pkgsrc/www/seamonkey/Makefile-seamonkey.common
 cvs rdiff -r1.7 -r1.7.2.1 pkgsrc/www/seamonkey-bin/Makefile
 cvs rdiff -r1.6 -r1.6.2.1 pkgsrc/www/seamonkey-bin/distinfo
 cvs rdiff -r1.1.1.1 -r1.1.1.1.4.1 pkgsrc/www/seamonkey/patches/patch-ai
 cvs rdiff -r0 -r1.1.2.1 pkgsrc/www/seamonkey/patches/patch-at \
     pkgsrc/www/seamonkey/patches/patch-ec

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.