directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kai Zheng (JIRA)" <>
Subject [jira] [Commented] (DIRKRB-614) Kerby (simplekdc) fails to handle unknown PADATA
Date Mon, 28 Nov 2016 09:53:58 GMT


Kai Zheng commented on DIRKRB-614:

If the PADATA is unexpectedly there then the sad thing is it's hard for Kerby to ignore it,
as Kerby strictly follows the asn.1 definition in its common asn.1 underlying framework. Before
to have a fix, maybe you could work around this by disabling the preauth check?

> Kerby (simplekdc) fails to handle unknown PADATA 
> -------------------------------------------------
>                 Key: DIRKRB-614
>                 URL:
>             Project: Directory Kerberos
>          Issue Type: Bug
>    Affects Versions: 1.0.0-RC2
>         Environment: SimpleKDC 
>            Reporter: Bolke de Bruin
>         Attachments: kerb.pcap, kerb_heimdal.pcapng
> I am using simplekdc wrapped in an application to allow CI for Apache Airflow.
> While testing I found out that on my development system (OS X - Heimdal with MIT Shim)
everything worked fine, but when moving over to the CI (MIT) system it stopped working with
the following error.
> {code}
> 2016-11-26 17:08:51,974 ERROR [pool-1-thread-3] impl.DefaultKdcHandler: Error occured
while processing request:
> org.apache.kerby.kerberos.kerb.KrbException: Decoding failed
> 	at org.apache.kerby.kerberos.kerb.KrbCodec.decode(
> 	at org.apache.kerby.kerberos.kerb.KrbCodec.decode(
> 	at org.apache.kerby.kerberos.kerb.server.request.KdcRequest.kdcFindFast(
> 	at org.apache.kerby.kerberos.kerb.server.request.KdcRequest.process(
> 	at org.apache.kerby.kerberos.kerb.server.KdcHandler.handleMessage(
> 	at org.apache.kerby.kerberos.kerb.server.impl.DefaultKdcHandler.handleMessage(
> 	at
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(
> 	at java.util.concurrent.ThreadPoolExecutor$
> 	at
> Caused by: Unexpected item context [0] [tag=0xA0, off=0, len=3+198],
expecting 0x30
> 	at org.apache.kerby.asn1.type.Asn1Encodeable.decode(
> 	at org.apache.kerby.asn1.type.Asn1Encodeable.decode(
> 	at org.apache.kerby.kerberos.kerb.KrbCodec.decode(
> 	... 9 more
> {code}
> Digging in with Wireshark showed that the MIT libraries are sending extra PAData which
makes Kerby not respond (Wireshark records this as "Unknown 136"). This behavior can be replicated
by using "kvno". 
> Heimdal on OSX does not send this and gets a response.

This message was sent by Atlassian JIRA

View raw message