kadmin: IPv6 support binds IPv4 socket leading to EAFNOSUPPORT.

Bug #780820 reported by Mike Mestnik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
krb5 (Debian)
Fix Released
Unknown
krb5 (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Package: krb5-user
Version: 1.8.3+dfsg-4
Severity: important
File: /usr/bin/kadmin

Here is a small bit of strace output:
socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 4

bind(4, {sa_family=AF_INET, sin_port=htons(775),
    sin_addr=inet_addr("0.0.0.0")}, 16) = 0

connect(4, {sa_family=AF_INET6, sin6_port=htons(749),
    inet_pton(AF_INET6, "::", &sin6_addr), sin6_flowinfo=0,
    sin6_scope_id=0}, 16) = -1 EAFNOSUPPORT (Address family not supported
    by protocol)

Obviously the bind needs to be made IPv6 aware. I hope this is self
explanitory, the initial connection to the admin server falis as a
result and kadmin exits. Also the addres in the connect seams wrong.
This is run on localhost and the '-s 127.0.0.1' option is ignored.

-- System Information:
Debian Release: 6.0.1
  APT prefers stable
  APT policy: (900, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.35.4-rscloud (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages krb5-user depends on:
ii krb5-config 2.2 Configuration files for Kerberos V
ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib
ii libcomerr2 1.41.12-2 common error description library
ii libgssapi-krb5-2 1.8.3+dfsg-4 MIT Kerberos runtime libraries - k
ii libgssrpc4 1.8.3+dfsg-4 MIT Kerberos runtime libraries - G
ii libk5crypto3 1.8.3+dfsg-4 MIT Kerberos runtime libraries - C
ii libkadm5clnt-mit7 1.8.3+dfsg-4 MIT Kerberos runtime libraries - A
ii libkeyutils1 1.4-1 Linux Key Management Utilities (li
ii libkrb5-3 1.8.3+dfsg-4 MIT Kerberos runtime libraries
ii libkrb5support0 1.8.3+dfsg-4 MIT Kerberos runtime libraries - S
ii libss2 1.41.12-2 command-line interface parsing lib

krb5-user recommends no packages.

krb5-user suggests no packages.

-- no debconf information

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: krb5-user 1.8.1+dfsg-5ubuntu0.7 [modified: usr/bin/kadmin usr/bin/kdestroy usr/bin/kinit usr/bin/klist usr/bin/kpasswd usr/bin/ksu usr/bin/ktutil usr/bin/kvno]
Uname: Linux 2.6.39-020639rc1-generic i686
Architecture: i386
Date: Tue May 10 19:27:38 2011
ProcEnviron:
 LANGUAGE=C:en
 PATH=(custom, no user)
 LANG=C
 SHELL=/bin/bash
SourcePackage: krb5

Revision history for this message
Mike Mestnik (cheako) wrote :
Revision history for this message
Mike Mestnik (cheako) wrote :

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=624710

Version 1.9 adds IPv6 support for kadmind and kadmin.

Revision history for this message
Sam Hartman (hartmans) wrote :

The problem is far deeper than the socket binding. The gssrpc library doesn't support v6 at all in this version of krb5. Fixed in 1.9.

Revision history for this message
Chuck Short (zulcss) wrote :

This will probably be fixed in oneiric.

Regards
chuck

Changed in krb5 (Ubuntu):
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Steve Langasek (vorlon) wrote :

1.9 has been merged into oneiric.

Changed in krb5 (Ubuntu):
status: Confirmed → Fix Released
Changed in krb5 (Debian):
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.