Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Nov 2002 23:47:24 +0100 (CET)
From:      Michel Oosterhof <m.oosterhof@xs4all.nl>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   misc/45830: KDC has problems when listening to IPv6 and IPv4 addresses
Message-ID:  <20021128224724.A449A1415@shift.xs4all.nl>

next in thread | raw e-mail | index | archive | help

>Number:         45830
>Category:       misc
>Synopsis:       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:
>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:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021128224724.A449A1415>