Return-Path: Received: from pch.mit.edu (PCH.MIT.EDU [18.7.21.90]) by krbdev.mit.edu (Postfix) with ESMTP id 188D4CCA04; Sat, 12 Sep 2009 20:45:33 +0000 (UTC) Received: from pch.mit.edu (pch.mit.edu [127.0.0.1]) by pch.mit.edu (8.13.6/8.12.8) with ESMTP id n8CKjWW1031625; Sat, 12 Sep 2009 16:45:32 -0400 Received: from pacific-carrier-annex.mit.edu (PACIFIC-CARRIER-ANNEX.MIT.EDU [18.7.21.83]) by pch.mit.edu (8.13.6/8.12.8) with ESMTP id n8C9NlGw028805 for ; Sat, 12 Sep 2009 05:23:48 -0400 Received: from mit.edu (W92-130-BARRACUDA-3.MIT.EDU [18.7.21.224]) by pacific-carrier-annex.mit.edu (8.13.6/8.9.2) with ESMTP id n8C9Na4W007647 for ; Sat, 12 Sep 2009 05:23:37 -0400 (EDT) Received: from mo.mxl.2iij.net (localhost [127.0.0.1]) by mit.edu (Spam Firewall) with ESMTP id 23D451ECA701 for ; Sat, 12 Sep 2009 05:23:35 -0400 (EDT) Received: from mo.mxl.2iij.net (mo502.mxl.2iij.NET [210.149.48.20]) by mit.edu with ESMTP id 7lw8lBPQ5Sh22ieH for ; Sat, 12 Sep 2009 05:23:34 -0400 (EDT) Received-SPF: pass (mit.edu: domain of qiang.xu@fujixerox.com designates 210.149.48.20 as permitted sender) receiver=mit.edu; client_ip=210.149.48.20; envelope-from=qiang.xu@fujixerox.com; Received: by mo.mxl.2iij.net (mxl-mo502) id n8C9NWHu010659; Sat, 12 Sep 2009 18:23:32 +0900 Received: from unknown [192.26.96.21] (EHLO mx21.fujixerox.co.jp) by mas502a.mxl.2iij.net (mxl_mta-5.7.1-3) with ESMTP id 4986baa4.3794246544.272039.00-044.244826.mas502a.mxl.2iij.net (envelope-from ); Sat, 12 Sep 2009 18:23:32 +0900 (JST) Received: from isvw21.fujixerox.co.jp ([129.249.27.141]) by mx21.fujixerox.co.jp with ESMTP id n8C9NWFL029788 for ; Sat, 12 Sep 2009 18:23:32 +0900 (JST) Received: from ms20.fujixerox.co.jp (localhost [127.0.0.1]) by isvw21.fujixerox.co.jp with ESMTP id n8C9NWvS005224 for ; Sat, 12 Sep 2009 18:23:32 +0900 (JST) Received: from mailgw2.fujixerox.com (ironportmailer2 [13.198.8.181]) by ms20.fujixerox.co.jp with ESMTP id n8C9NVxf021986 for ; Sat, 12 Sep 2009 18:23:31 +0900 (JST) X-Ironport-Av: E=Sophos;i="4.44,375,1249228800"; d="scan'208";a="75172910" Received: from sgpaphq-exhub01.dc01.fujixerox.net ([13.198.8.235]) by mailgw2.fujixerox.com with ESMTP; 12 Sep 2009 17:23:06 +0800 Received: from SGPAPHQ-EXSCC01.dc01.fujixerox.net ([13.198.8.229]) by sgpaphq-exhub01.dc01.fujixerox.net ([13.198.8.235]) with mapi; Sat, 12 Sep 2009 17:23:31 +0800 From: "Xu, Qiang (FXSGSC)" To: "krb5-bugs@mit.edu" Date: Sat, 12 Sep 2009 17:23:30 +0800 Subject: kinit not working if kdc is configured with numerical IPv6 address Thread-Topic: kinit not working if kdc is configured with numerical IPv6 address Thread-Index: Acozi4GimdDy6++LRkm8XL29lsYkHQ== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-Tnef-Correlator: Acceptlanguage: en-US Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 X-Spam: exempt X-Mail-From: X-Source-Ip: [192.26.96.21] X-Spam-Score: 0.02 X-Spam-Flag: NO X-Scanned-BY: MIMEDefang 2.42 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by pch.mit.edu id n8C9NlGw028805 X-Mailman-Approved-At: Sat, 12 Sep 2009 16:45:31 -0400 X-Beenthere: krb5-bugs-incoming@mailman.mit.edu X-Mailman-Version: 2.1.6 Precedence: list Sender: krb5-bugs-incoming-bounces@PCH.mit.edu Errors-To: krb5-bugs-incoming-bounces@PCH.mit.edu X-RT-Original-Encoding: iso-8859-1 Content-Length: 1049 Hi, all: I am writing to report a bug in 1.7 release. In /etc/krb5.conf, if kdc is configured with numerical IPv6 address, Kerberos client will not be able to locate this kdc, and kinit will fail. Here is an example: ============================================= /* The content of /etc/krb5.conf with IPv6 address */ [realms] XCIPV6.COM = { kdc = [3ffe:2000:0:1::100]:88 default_domain = xcipv6.com } /* Kerberos authentication result */ qxu@durian(pts/3):/etc[112]$ kinit XCTEST100@XCIPV6.COM kinit(v5): Cannot resolve network address for KDC in realm XCIPV6.COM while getting initial credentials ============================================= In my eyes, if numerical IPv4 address is supported for kdc entry in /etc/krb5.conf, so should be for numerical IPv6 address. Investigation shows the defect is in the function "krb5_locate_srv_conf_1()" in the file "krb5-1.7/src/lib/krb5/os/locate_kdc.c", and a fix has been made out. Anyone would like to review? P.S. How to send the fix to you guys? Email Attachment? Thanks, Xu Qiang