You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Josef Cacek (JIRA)" <ji...@apache.org> on 2016/04/12 12:49:25 UTC
[jira] [Updated] (DIRSERVER-2139) IBM with IPV6
[ https://issues.apache.org/jira/browse/DIRSERVER-2139?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Josef Cacek updated DIRSERVER-2139:
-----------------------------------
Attachment: DIRSERVER-2139.patch
Adding a possible patch.
[~mchoma] Could you try, if it helps to resolve the IPv6 issue?
> 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)