Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 41556 - kdm doesn't handle IPv6 mapped IPv4 addresses
Summary: kdm doesn't handle IPv6 mapped IPv4 addresses
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-14 06:24 UTC by mtdarland
Modified: 2004-04-26 18:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mtdarland 2004-02-14 06:24:50 UTC
When IPv6 is enabled on a Linux system, ALL inbound remote logins using IPv4 to kdm fail with an error message( when kdm debugging turned on ) stating:
"ConvertAddr returning -1 for family 10."

This causes the ~/.Xauthority file to not be able to be updated, which causes the login to be denied.

Without kdm debugging turned on the error manifiests itself in the system log as:
"can't update authorization file in home dir /home/myhomedir"

I took a peek at the KDE source code( both 3.1.5 and 3.2 ) and noticed that the function ConvertAddr doesn't handle IPv6 at all.  Specifically, inbound IPv4 addrs get mapped to IPv6 addrs, and are then passed to ConvertAddr().

To workaround the problem X has to be emerged with USE='-ipv6'( to get around a similar problem with XFS ) and IPv6 support in the kernel disabled.  Then everything works fine.

Reproducible: Always
Steps to Reproduce:
1. Setup KDM to allow remote logins.
2. Emerge X with ipv6 support.
3. Have a kernel that supports IPv6
4. Start kdm with the command line "kdm debug 1"
5. Attempt a remote login( I was using Cygwin/X so XWin32.exe -query KDM_MACHINE_IP -fp XFS_MACHINE_IP ).  See additional information about notes regarding XFS.
6. Look at the system log.





There is a bug with XFS( X Font Server, not the filesystem ) that requires
kernel IPv6 support to be loaded if X was emerged with IPv6 support.  Otherwise
XFS won't accept remote connections.  This makes testing kind of hairy.
I'll file a seperate bug on this issue.
Comment 1 mtdarland 2004-02-14 06:30:46 UTC
Regarding XFS: There is already a similar bug filed against XFree in general:
http://bugs.gentoo.org/show_bug.cgi?id=22517
Comment 2 Caleb Tennis (RETIRED) gentoo-dev 2004-04-26 18:51:16 UTC
Please file a bug report at bugs.kde.org as it's an upstream issue.
Comment 3 mtdarland 2004-04-26 18:55:12 UTC
Filed with KDE bug tracker. ID# 75238.
http://bugs.kde.org/show_bug.cgi?id=75238