Return-Path: X-Original-To: apmail-directory-dev-archive@www.apache.org Delivered-To: apmail-directory-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EAD52197C5 for ; Tue, 12 Apr 2016 12:48:27 +0000 (UTC) Received: (qmail 13891 invoked by uid 500); 12 Apr 2016 12:48:26 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 13697 invoked by uid 500); 12 Apr 2016 12:48:26 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 13643 invoked by uid 99); 12 Apr 2016 12:48:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Apr 2016 12:48:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 931B52C1F56 for ; Tue, 12 Apr 2016 12:48:25 +0000 (UTC) Date: Tue, 12 Apr 2016 12:48:25 +0000 (UTC) From: "Martin Choma (JIRA)" To: dev@directory.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DIRSERVER-2139) IBM with IPV6 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DIRSERVER-2139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15237094#comment-15237094 ] Martin Choma commented on DIRSERVER-2139: ----------------------------------------- Yep, your patch works for me. > IBM with IPV6 > ------------- > > Key: DIRSERVER-2139 > URL: https://issues.apache.org/jira/browse/DIRSERVER-2139 > Project: Directory ApacheDS > Issue Type: Bug > Affects Versions: 2.0.0-M19 > Reporter: Martin Choma > Attachments: DIRSERVER-2139.patch > > > Using ibm java, we ran into error: > {{KrbException, status code: 38 message: Incorrect net address}} > Debuging ApacheDS code, I found out exception comes from > {code} > if ( ticket.getEncTicketPart().getClientAddresses() != null ) > { > if ( !ticket.getEncTicketPart().getClientAddresses().contains( new HostAddress( clientAddress ) ) ) > { > throw new KerberosException( ErrorType.KRB_AP_ERR_BADADDR ); > } > } > {code} > I think the root of problem is in {{HostAddress}} constructor > {code} > /** > * Creates a new instance of HostAddress. > * > * @param internetAddress The Inet form address > */ > public HostAddress( InetAddress internetAddress ) > { > addrType = HostAddrType.ADDRTYPE_INET; > byte[] newAddress = internetAddress.getAddress(); > address = new byte[newAddress.length]; > System.arraycopy( newAddress, 0, address, 0, newAddress.length ); > } > {code} > problem I see address type is not taken form provided parameter internetAddress, but hardcoded into IPv4 version {{HostAddrType.ADDRTYPE_INET}} -- This message was sent by Atlassian JIRA (v6.3.4#6332)