directory-kerby mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Colm O hEigeartaigh <cohei...@apache.org>
Subject Re: Building Kerby throw normal exceptions
Date Tue, 01 Dec 2015 11:15:58 GMT
Hi Kai,

I merged a fix for this. It was a mix of removing printlns from the test
code, removing the "debug" option from the GSS configuration, and adding in
log4j.properties to the integration tests to redirect log output to a file
in "target".

Colm.

On Tue, Dec 1, 2015 at 9:40 AM, Zheng, Kai <kai.zheng@intel.com> wrote:

> Hi,
>
> Currently building Kerby will throw some exceptions like below. They're
> normal but make the output messy, even make developers feel sad. Is there
> any way to let this shut up and get redirected to building logs? Thanks.
>
> Got connection from client
> Starting negotiating security contextConnected to server
> SASL server GSSAPI callback: setting canonicalized client ID:
> drankye@TEST.COM
> Context Established! Context Established!
> Will send wrap token of size 13
> Received data "Hello There!" of length 13
> Waiting for incoming connection...
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.419 sec
> - in org.apache.kerby.kerberos.kerb.integration.test.SaslAppTest
> Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
> Running
> org.apache.kerby.kerberos.kerb.integration.test.TokenLoginWithTokenPreauthDisabledTest
> Issued token:
> eyJhbGciOiJub25lIn0.eyJleHAiOjE0NDg5NjYxNDAsInN1YiI6ImRyYW5reWVAVEVTVC5DT00iLCJuYmYiOjE0NDg5NjI1NDAsImF1ZCI6ImtyYnRndFwvVEVTVC5DT01AVEVTVC5DT00iLCJpc3MiOiJ0b2tlbi1zZXJ2aWNlIiwicm9sZSI6IkFETUlOIiwianRpIjoiZjgxMzE4ZGMtMTY0OS00NzFjLTgzYzgtNDEwNWFlMGI2ZDBjIiwiZ3JvdXAiOiJzYWxlcy1ncm91cCIsImlhdCI6MTQ0ODk2MjU0MH0.
> 2015-12-01 17:35:40,853 ERROR [pool-1-thread-2] impl.DefaultKdcHandler:
> Error occured while processing request:
> org.apache.kerby.kerberos.kerb.KrbException: Token preauth is not allowed.
>         at
> org.apache.kerby.kerberos.kerb.server.preauth.token.TokenPreauth.verify(TokenPreauth.java:65)
>         at
> org.apache.kerby.kerberos.kerb.server.preauth.PreauthHandle.verify(PreauthHandle.java:46)
>         at
> org.apache.kerby.kerberos.kerb.server.preauth.PreauthHandler.verify(PreauthHandler.java:96)
>         at
> org.apache.kerby.kerberos.kerb.server.request.KdcRequest.preauth(KdcRequest.java:546)
>         at
> org.apache.kerby.kerberos.kerb.server.request.KdcRequest.process(KdcRequest.java:166)
>         at
> org.apache.kerby.kerberos.kerb.server.KdcHandler.handleMessage(KdcHandler.java:108)
>         at
> org.apache.kerby.kerberos.kerb.server.impl.DefaultKdcHandler.handleMessage(DefaultKdcHandler.java:67)
>         at
> org.apache.kerby.kerberos.kerb.server.impl.DefaultKdcHandler.run(DefaultKdcHandler.java:52)
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:745)
> Issued token:
> eyJhbGciOiJub25lIn0.eyJleHAiOjE0NDg5NjYxNDAsInN1YiI6ImRyYW5reWVAVEVTVC5DT00iLCJuYmYiOjE0NDg5NjI1NDAsImF1ZCI6ImtyYnRndFwvVEVTVC5DT01AVEVTVC5DT00iLCJpc3MiOiJ0b2tlbi1zZXJ2aWNlIiwicm9sZSI6IkFETUlOIiwianRpIjoiODllZmUwYWQtOWE3Ny00MWY0LWEzMTEtZDY2MDc0Y2JlMGJjIiwiZ3JvdXAiOiJzYWxlcy1ncm91cCIsImlhdCI6MTQ0ODk2MjU0MH0.
> 2015-12-01 17:35:41,052 ERROR [pool-2-thread-2] impl.DefaultKdcHandler:
> Error occured while processing request:
> org.apache.kerby.kerberos.kerb.KrbException: Token preauth is not allowed.
>         at
> org.apache.kerby.kerberos.kerb.server.preauth.token.TokenPreauth.verify(TokenPreauth.java:65)
>         at
> org.apache.kerby.kerberos.kerb.server.preauth.PreauthHandle.verify(PreauthHandle.java:46)
>         at
> org.apache.kerby.kerberos.kerb.server.preauth.PreauthHandler.verify(PreauthHandler.java:96)
>         at
> org.apache.kerby.kerberos.kerb.server.request.KdcRequest.preauth(KdcRequest.java:546)
>         at
> org.apache.kerby.kerberos.kerb.server.request.KdcRequest.process(KdcRequest.java:166)
>         at
> org.apache.kerby.kerberos.kerb.server.KdcHandler.handleMessage(KdcHandler.java:108)
>         at
> org.apache.kerby.kerberos.kerb.server.impl.DefaultKdcHandler.handleMessage(DefaultKdcHandler.java:67)
>         at
> org.apache.kerby.kerberos.kerb.server.impl.DefaultKdcHandler.run(DefaultKdcHandler.java:52)
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:745)
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.64 sec -
> in
> org.apache.kerby.kerberos.kerb.integration.test.TokenLoginWithTokenPreauthDisabledTest
> Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
> Running
> org.apache.kerby.kerberos.kerb.integration.test.TokenLoginWithTokenPreauthEnabledTest
> Issued token:
> eyJhbGciOiJub25lIn0.eyJleHAiOjE0NDg5NjYxNDIsInN1YiI6ImRyYW5reWVAVEVTVC5DT00iLCJuYmYiOjE0NDg5NjI1NDIsImF1ZCI6ImtyYnRndFwvVEVTVC5DT01AVEVTVC5DT00iLCJpc3MiOiJ0b2tlbi1zZXJ2aWNlIiwicm9sZSI6IkFETUlOIiwianRpIjoiMDUxMzZjN2ItNGIwMi00MTVhLTliYTItYWNmM2Q5OWRlOTQ1IiwiZ3JvdXAiOiJzYWxlcy1ncm91cCIsImlhdCI6MTQ0ODk2MjU0Mn0.
> Issued token:
> eyJhbGciOiJub25lIn0.eyJleHAiOjE0NDg5NjYxNDMsInN1YiI6ImRyYW5reWVAVEVTVC5DT00iLCJuYmYiOjE0NDg5NjI1NDMsImF1ZCI6ImtyYnRndFwvVEVTVC5DT01AVEVTVC5DT00iLCJpc3MiOiJ0b2tlbi1zZXJ2aWNlIiwicm9sZSI6IkFETUlOIiwianRpIjoiZDc4MTc5ZTYtN2Q2YS00MDJmLTg3NzctMjA3YjNjYzAxYWExIiwiZ3JvdXAiOiJzYWxlcy1ncm91cCIsImlhdCI6MTQ0ODk2MjU0M30.
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.683 sec
> - in
> org.apache.kerby.kerberos.kerb.integration.test.TokenLoginWithTokenPreauthEnabledTest
> Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
>
> Results :
>
> Tests run: 6, Failures: 0, Errors: 0, Skipped: 0
>
>


-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message