From michel@shift.xs4all.nl  Thu Nov 28 14:47:32 2002
Return-Path: <michel@shift.xs4all.nl>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 3F63A37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 28 Nov 2002 14:47:32 -0800 (PST)
Received: from smtpzilla1.xs4all.nl (smtpzilla1.xs4all.nl [194.109.127.137])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 51DC743EB2
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 28 Nov 2002 14:47:31 -0800 (PST)
	(envelope-from michel@shift.xs4all.nl)
Received: from shift.xs4all.nl (shift.xs4all.nl [213.84.238.5])
	by smtpzilla1.xs4all.nl (8.12.0/8.12.0) with ESMTP id gASMlPgx035855
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 28 Nov 2002 23:47:26 +0100 (CET)
Received: by shift.xs4all.nl (Postfix, from userid 1000)
	id A449A1415; Thu, 28 Nov 2002 23:47:24 +0100 (CET)
Message-Id: <20021128224724.A449A1415@shift.xs4all.nl>
Date: Thu, 28 Nov 2002 23:47:24 +0100 (CET)
From: Michel Oosterhof <m.oosterhof@xs4all.nl>
Reply-To: Michel Oosterhof <m.oosterhof@xs4all.nl>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: KDC has problems when listening to IPv6 and IPv4 addresses
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         45830
>Category:       bin
>Synopsis:       [kerberos] KDC has problems when listening to IPv6 and IPv4 addresses
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 28 14:50:02 PST 2002
>Closed-Date:    
>Last-Modified:  Fri Mar 24 05:46:47 GMT 2006
>Originator:     Michel Oosterhof
>Release:        FreeBSD 4.7-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD hydrogen 4.7-PRERELEASE FreeBSD 4.7-PRERELEASE #0: Mon Sep 9 20:44:52 CEST 2002 root@hydrogen:/usr/obj/usr/src/sys/HYDROGEN i386
>Description:
I'm trying to run the kdc (heimdal kerberos daemon), on a specific ipv6 address (and 2 ipv4 addresses).
This works, if i specify the following in /etc/krb5.conf

...
[kdc]
        addresses = 3ffe:8280:10:1050::1 10.1.1.1 127.0.0.1
...

However, if I configure this line as: 

...
[kdc]
        addresses = 10.1.1.1 127.0.0.1 3ffe:8280:10:1050::1 
...

It will fail! Apparently there is some process that depends on the order of the entries.
I classify this as a bug, the documentation does not mention there is any order
dependency in here.

Related to this are some confusing error messages (in the second scenario):

Nov 28 23:41:30 hydrogen kdc[98309]: bind IPv6:3ffe:8280:10:1050::1/88: /var/heimdal/kdc.conf:0: can
not open file
Nov 28 23:41:30 hydrogen kdc[98309]: bind IPv6:3ffe:8280:10:1050::1/88: Can't assign requested addre
ss
Nov 28 23:41:30 hydrogen kdc[98309]: listening on IPv4:10.1.1.1 port 88/udp
Nov 28 23:41:30 hydrogen kdc[98309]: listening on IPv4:127.0.0.1 port 88/udp
Nov 28 23:41:30 hydrogen kdc[98309]: listening on IPv4:10.1.1.1 port 88/tcp
Nov 28 23:41:30 hydrogen kdc[98309]: listening on IPv4:127.0.0.1 port 88/tcp

The last four lines are normal, listening to the IPv4 ports is working. The first two lines
confuse me. The first warning seems to be some cached warning about the configuration file, 
but this does not have to do anything with the ipv6 binding. (FYI, i only use /etc/krb5.conf, 
there is no /var/heimdal/kdc.conf file, all [kdc] entries are in /etc/krb5.conf)

>How-To-Repeat:
 
Install heimdal kerberos on -STABLE, specify specific listening addresses and list the ipv6 
address last.

	
>Fix:

Workaround: list the ipv6 addresses first (could be a doc workaround). 

	


>Release-Note:
>Audit-Trail:

From: Michel Oosterhof <m.oosterhof@xs4all.nl>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: misc/45830: KDC has problems when listening to IPv6 and IPv4 addresses
Date: Thu, 28 Nov 2002 23:55:03 +0100

 My initial report is missing one detail, when I do specify them in the order with
 the ipv6 address first, the KDC will attempt to bind to 2 addresses, port 88 for UDP
 and TCP. UDP succeeds, but TCP fails. This generates the following two log messages:
 
 Nov 28 23:48:53 hydrogen kdc[98434]: listening on IPv6:3ffe:8280:10:1050::1 port 88/udp
 Nov 28 23:48:53 hydrogen kdc[98434]: bind IPv6:3ffe:8280:10:1050::1/88: /var/heimdal/kdc.conf:0: can
 not open file
 
Responsible-Changed-From-To: freebsd-bugs->nectar 
Responsible-Changed-By: arved 
Responsible-Changed-When: Fri Jul 23 13:28:50 GMT 2004 
Responsible-Changed-Why:  
over to heimdal maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=45830 
Responsible-Changed-From-To: nectar->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Fri Mar 24 05:46:02 UTC 2006 
Responsible-Changed-Why:  
Reset assignee; nectar is away from FreeBSD work at the moment. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=45830 
>Unformatted:
