directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marc de Lignie (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DIRKRB-613) Tests fails on systems with includedir in /etc/krb5.conf
Date Tue, 28 Feb 2017 08:56:45 GMT

    [ https://issues.apache.org/jira/browse/DIRKRB-613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15887595#comment-15887595
] 

Marc de Lignie commented on DIRKRB-613:
---------------------------------------

Hi Jiajia,

I can confirm that your patch is effective on my system. See the relevant terminal output
below.
Cheers,    Marc

$ printenv | grep KRB
KRB5CCNAME=FILE:/tmp/krb5cc_1234_xyzXYZ
$ git checkout trunk
Switched to branch 'trunk'
Your branch is up-to-date with 'origin/trunk'.
$ mvn clean install
...
[INFO] Reactor Summary:
[INFO] 
[INFO] Apache Kerby Project ............................... SUCCESS [ 44.412 s]
[INFO] Kerby-common Project ............................... SUCCESS [  1.066 s]
[INFO] Kerby ASN1 Project ................................. SUCCESS [ 35.139 s]
[INFO] Kerby Config ....................................... SUCCESS [  6.495 s]
[INFO] Kerby Util ......................................... SUCCESS [  4.762 s]
[INFO] Kerby XDR Project .................................. SUCCESS [  6.618 s]
[INFO] Kerby PKIX Project ................................. SUCCESS [ 13.574 s]
[INFO] Kerby-kerb Project ................................. SUCCESS [  0.643 s]
[INFO] Kerby-kerb core .................................... SUCCESS [ 13.237 s]
[INFO] Kerby-kerb Crypto .................................. SUCCESS [ 17.337 s]
[INFO] Kerby-kerb Common .................................. SUCCESS [  4.256 s]
[INFO] Kerby-kerb Util .................................... SUCCESS [  8.144 s]
[INFO] Kerby-kerb Identity ................................ SUCCESS [  1.086 s]
[INFO] Kerby-kerb Identity Test ........................... SUCCESS [  1.188 s]
[INFO] Kerby-kerb Client .................................. SUCCESS [  4.539 s]
[INFO] Kerby-kerb Server .................................. SUCCESS [  4.803 s]
[INFO] Kerby-kerb Admin ................................... SUCCESS [  1.825 s]
[INFO] Kerb Simple Kdc .................................... SUCCESS [  1.172 s]
[INFO] Kerby-kerb server all .............................. SUCCESS [  0.804 s]
[INFO] Kerby KDC Server ................................... SUCCESS [  1.618 s]
[INFO] Kerb Kdc Test ...................................... SUCCESS [ 41.461 s]
[INFO] Kerby providers .................................... SUCCESS [  0.585 s]
[INFO] Token provider ..................................... SUCCESS [  4.223 s]
[INFO] Kerb Integration Test .............................. SUCCESS [ 20.635 s]
[INFO] Kerby-kerb Admin Server ............................ SUCCESS [  1.261 s]
[INFO] Kerby-kerb client api all .......................... SUCCESS [  0.749 s]
[INFO] Kdc Tool Project ................................... SUCCESS [  0.572 s]
[INFO] Client Tool ........................................ SUCCESS [  1.307 s]
[INFO] KDC Tool ........................................... SUCCESS [  1.222 s]
[INFO] Kerby Backend ...................................... SUCCESS [  0.560 s]
[INFO] Json identity backend .............................. SUCCESS [  3.128 s]
[INFO] Zookeeper identity backend ......................... SUCCESS [ 10.005 s]
[INFO] Ldap identity backend .............................. SUCCESS [01:03 min]
[INFO] Kerby Kdc Test ..................................... SUCCESS [01:28 min]
[INFO] Mavibot based backend .............................. SUCCESS [  2.896 s]
[INFO] Kerby Distribution ................................. SUCCESS [  0.590 s]
[INFO] KDC Dist ........................................... SUCCESS [  0.934 s]
[INFO] Tool Dist .......................................... SUCCESS [  0.742 s]
[INFO] Kerby benchmark .................................... SUCCESS [  4.172 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 07:01 min
[INFO] Finished at: 2017-02-28T09:33:20+01:00
[INFO] Final Memory: 83M/821M
[INFO] ------------------------------------------------------------------------

$ git checkout kerby-all-1.0.0-RC2
HEAD is now at 688b4aa... [maven-release-plugin] prepare release kerby-all-1.0.0-RC2
$ mvn clean install
...
-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.apache.kerby.kerberos.kerb.server.KdcSettingTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.161 sec - in org.apache.kerby.kerberos.kerb.server.KdcSettingTest
Running org.apache.kerby.kerberos.kerb.server.KeytabLoginTest
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.152 sec <<< FAILURE!
- in org.apache.kerby.kerberos.kerb.server.KeytabLoginTest
testLogin(org.apache.kerby.kerberos.kerb.server.KeytabLoginTest)  Time elapsed: 0.141 sec
 <<< ERROR!
java.lang.RuntimeException: Unable to parse:includedir /var/lib/sss/pubconf/krb5.include.d/
	at org.apache.kerby.kerberos.kerb.common.Krb5Parser.load(Krb5Parser.java:72)
	at org.apache.kerby.kerberos.kerb.common.Krb5Conf.addKrb5Config(Krb5Conf.java:47)
	at org.apache.kerby.kerberos.kerb.client.ClientUtil.getDefaultConfig(ClientUtil.java:94)
	at org.apache.kerby.kerberos.kerb.client.KrbClientBase.<init>(KrbClientBase.java:51)
	at org.apache.kerby.kerberos.kerb.client.KrbClient.<init>(KrbClient.java:38)
	at org.apache.kerby.kerberos.kerb.server.SimpleKdcServer.<init>(SimpleKdcServer.java:54)
	at org.apache.kerby.kerberos.kerb.server.TestKdcServer.<init>(TestKdcServer.java:33)
	at org.apache.kerby.kerberos.kerb.server.KdcTestBase.setUpKdcServer(KdcTestBase.java:134)
	at org.apache.kerby.kerberos.kerb.server.KdcTestBase.setUp(KdcTestBase.java:118)
	at org.apache.kerby.kerberos.kerb.server.LoginTestBase.setUp(LoginTestBase.java:44)
...


> Tests fails on systems with includedir in /etc/krb5.conf
> --------------------------------------------------------
>
>                 Key: DIRKRB-613
>                 URL: https://issues.apache.org/jira/browse/DIRKRB-613
>             Project: Directory Kerberos
>          Issue Type: Bug
>    Affects Versions: 1.0.0-RC2
>         Environment: RHEL6
>            Reporter: Marc de Lignie
>            Priority: Minor
>              Labels: test
>             Fix For: 1.0.0-RC3
>
>
> kerby finds /etc/krb5.conf files of other kerberos components, unless the environment
variable KRB5_CONF is set to the krb5.conf file of the kerby project. See stacktrace below:
the parsing seems to crash on the includedir part of my system's /etc/krb5.conf 
> java.lang.RuntimeException: Unable to parse:includedir /var/lib/sss/pubconf/krb5.include.d/
>             at org.apache.kerby.kerberos.kerb.common.Krb5Parser.load(Krb5Parser.java:72)
>             at org.apache.kerby.kerberos.kerb.common.Krb5Conf.addKrb5Config(Krb5Conf.java:47)
>             at org.apache.kerby.kerberos.kerb.client.ClientUtil.getDefaultConfig(ClientUtil.java:94)
>             at org.apache.kerby.kerberos.kerb.client.KrbClientBase.<init>(KrbClientBase.java:51)
>             at org.apache.kerby.kerberos.kerb.client.KrbClient.<init>(KrbClient.java:38)
>             at org.apache.kerby.kerberos.kerb.server.SimpleKdcServer.<init>(SimpleKdcServer.java:54)
>             at org.myorg.MyTest.startSimpleKdcServer(MyTest.java:79)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message