You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "David Jencks (JIRA)" <ji...@apache.org> on 2007/08/08 07:09:59 UTC

[jira] Created: (GERONIMO-3388) LoginKerberosTest relies on kerberos not being installed... so it can fail on windows?

LoginKerberosTest relies on kerberos not being installed... so it can fail on windows?
--------------------------------------------------------------------------------------

                 Key: GERONIMO-3388
                 URL: https://issues.apache.org/jira/browse/GERONIMO-3388
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: security
    Affects Versions: 2.0
            Reporter: David Jencks
            Assignee: David Jencks
             Fix For: 2.0.x, 2.1


Duminda Ekanayake commented on the user list that LoginKerberosTest was failing on a windows system.  The surefire report indicated that login had succeeded but the principal count was not what the test expected.  Running the test on my machine goes straight to the "kerberos not installed -- pass" catch block.

The eventual fix is to run this test with actual kerberos from apacheds, but the immediate fix is to look for the right number of principals.

Here's the clue that login has succeeded... unlike on a mac:

  <testcase time=3D"0.016" name=3D"testLogin">
    <failure type=3D"junit.framework.AssertionFailedError"
message=3D"server-side subject should have three principals
expected:&amp;lt;3&amp;gt; but was:&amp;lt;2&amp;gt;">
junit.framework.AssertionFailedError: server-side subject should have three
principals expected:&amp;3&amp; but was:&amp;2&amp;
    at junit.framework.Assert.fail(Assert.java:47)
    at junit.framework.Assert.failNotEquals(Assert.java:282)
    at junit.framework.Assert.assertEquals(Assert.java:64)
    at junit.framework.Assert.assertEquals(Assert.java:201)
    at org.apache.geronimo.security.jaas.LoginKerberosTest.testLogin(
LoginKerberosTest.java:94)
</failure>
    <system-out>Debug is  true storeKey false useTicketCache true useKeyTab
false doNotPrompt true ticketCache is null isInitiator true KeyTab is null
refreshKrb5Config is false principal is null tryFirstPass is false
useFirstPass is false storePass is false clearPass is false
Acquire TGT from Cache
Principal is Duminda@JKCS_DOMAIN.ORG
Commit Succeeded

</system-out>
  </testcase>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMO-3388) LoginKerberosTest relies on kerberos not being installed... so it can fail on windows?

Posted by "David Jencks (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-3388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12518335 ] 

David Jencks commented on GERONIMO-3388:
----------------------------------------

I think I've fixed this in trunk in rev 563748 and branches/2.0 in rev 563749.  Hopefully Duminda can check and we can close this or provide a better fix.

> LoginKerberosTest relies on kerberos not being installed... so it can fail on windows?
> --------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-3388
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-3388
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: security
>    Affects Versions: 2.0
>            Reporter: David Jencks
>            Assignee: David Jencks
>             Fix For: 2.0.x, 2.1
>
>
> Duminda Ekanayake commented on the user list that LoginKerberosTest was failing on a windows system.  The surefire report indicated that login had succeeded but the principal count was not what the test expected.  Running the test on my machine goes straight to the "kerberos not installed -- pass" catch block.
> The eventual fix is to run this test with actual kerberos from apacheds, but the immediate fix is to look for the right number of principals.
> Here's the clue that login has succeeded... unlike on a mac:
>   <testcase time=3D"0.016" name=3D"testLogin">
>     <failure type=3D"junit.framework.AssertionFailedError"
> message=3D"server-side subject should have three principals
> expected:&amp;lt;3&amp;gt; but was:&amp;lt;2&amp;gt;">
> junit.framework.AssertionFailedError: server-side subject should have three
> principals expected:&amp;3&amp; but was:&amp;2&amp;
>     at junit.framework.Assert.fail(Assert.java:47)
>     at junit.framework.Assert.failNotEquals(Assert.java:282)
>     at junit.framework.Assert.assertEquals(Assert.java:64)
>     at junit.framework.Assert.assertEquals(Assert.java:201)
>     at org.apache.geronimo.security.jaas.LoginKerberosTest.testLogin(
> LoginKerberosTest.java:94)
> </failure>
>     <system-out>Debug is  true storeKey false useTicketCache true useKeyTab
> false doNotPrompt true ticketCache is null isInitiator true KeyTab is null
> refreshKrb5Config is false principal is null tryFirstPass is false
> useFirstPass is false storePass is false clearPass is false
> Acquire TGT from Cache
> Principal is Duminda@JKCS_DOMAIN.ORG
> Commit Succeeded
> </system-out>
>   </testcase>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (GERONIMO-3388) LoginKerberosTest relies on kerberos not being installed... so it can fail on windows?

Posted by "David Jencks (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-3388?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Jencks closed GERONIMO-3388.
----------------------------------

    Resolution: Fixed

Duminda has reported that the test now passes on a kerberos enabled system.

> LoginKerberosTest relies on kerberos not being installed... so it can fail on windows?
> --------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-3388
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-3388
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: security
>    Affects Versions: 2.0
>            Reporter: David Jencks
>            Assignee: David Jencks
>             Fix For: 2.0.x, 2.1
>
>
> Duminda Ekanayake commented on the user list that LoginKerberosTest was failing on a windows system.  The surefire report indicated that login had succeeded but the principal count was not what the test expected.  Running the test on my machine goes straight to the "kerberos not installed -- pass" catch block.
> The eventual fix is to run this test with actual kerberos from apacheds, but the immediate fix is to look for the right number of principals.
> Here's the clue that login has succeeded... unlike on a mac:
>   <testcase time=3D"0.016" name=3D"testLogin">
>     <failure type=3D"junit.framework.AssertionFailedError"
> message=3D"server-side subject should have three principals
> expected:&amp;lt;3&amp;gt; but was:&amp;lt;2&amp;gt;">
> junit.framework.AssertionFailedError: server-side subject should have three
> principals expected:&amp;3&amp; but was:&amp;2&amp;
>     at junit.framework.Assert.fail(Assert.java:47)
>     at junit.framework.Assert.failNotEquals(Assert.java:282)
>     at junit.framework.Assert.assertEquals(Assert.java:64)
>     at junit.framework.Assert.assertEquals(Assert.java:201)
>     at org.apache.geronimo.security.jaas.LoginKerberosTest.testLogin(
> LoginKerberosTest.java:94)
> </failure>
>     <system-out>Debug is  true storeKey false useTicketCache true useKeyTab
> false doNotPrompt true ticketCache is null isInitiator true KeyTab is null
> refreshKrb5Config is false principal is null tryFirstPass is false
> useFirstPass is false storePass is false clearPass is false
> Acquire TGT from Cache
> Principal is Duminda@JKCS_DOMAIN.ORG
> Commit Succeeded
> </system-out>
>   </testcase>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (GERONIMO-3388) LoginKerberosTest relies on kerberos not being installed... so it can fail on windows?

Posted by "Donald Woods (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-3388?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Donald Woods updated GERONIMO-3388:
-----------------------------------

    Fix Version/s:     (was: 2.0.1)
                   2.0.2

updated Fixed For field

> LoginKerberosTest relies on kerberos not being installed... so it can fail on windows?
> --------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-3388
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-3388
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: security
>    Affects Versions: 2.0
>            Reporter: David Jencks
>            Assignee: David Jencks
>             Fix For: 2.0.2, 2.1
>
>
> Duminda Ekanayake commented on the user list that LoginKerberosTest was failing on a windows system.  The surefire report indicated that login had succeeded but the principal count was not what the test expected.  Running the test on my machine goes straight to the "kerberos not installed -- pass" catch block.
> The eventual fix is to run this test with actual kerberos from apacheds, but the immediate fix is to look for the right number of principals.
> Here's the clue that login has succeeded... unlike on a mac:
>   <testcase time=3D"0.016" name=3D"testLogin">
>     <failure type=3D"junit.framework.AssertionFailedError"
> message=3D"server-side subject should have three principals
> expected:&amp;lt;3&amp;gt; but was:&amp;lt;2&amp;gt;">
> junit.framework.AssertionFailedError: server-side subject should have three
> principals expected:&amp;3&amp; but was:&amp;2&amp;
>     at junit.framework.Assert.fail(Assert.java:47)
>     at junit.framework.Assert.failNotEquals(Assert.java:282)
>     at junit.framework.Assert.assertEquals(Assert.java:64)
>     at junit.framework.Assert.assertEquals(Assert.java:201)
>     at org.apache.geronimo.security.jaas.LoginKerberosTest.testLogin(
> LoginKerberosTest.java:94)
> </failure>
>     <system-out>Debug is  true storeKey false useTicketCache true useKeyTab
> false doNotPrompt true ticketCache is null isInitiator true KeyTab is null
> refreshKrb5Config is false principal is null tryFirstPass is false
> useFirstPass is false storePass is false clearPass is false
> Acquire TGT from Cache
> Principal is Duminda@JKCS_DOMAIN.ORG
> Commit Succeeded
> </system-out>
>   </testcase>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (GERONIMO-3388) LoginKerberosTest relies on kerberos not being installed... so it can fail on windows?

Posted by "Donald Woods (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-3388?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Donald Woods updated GERONIMO-3388:
-----------------------------------

    Fix Version/s:     (was: 2.0.x)
                   2.0.1

> LoginKerberosTest relies on kerberos not being installed... so it can fail on windows?
> --------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-3388
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-3388
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: security
>    Affects Versions: 2.0
>            Reporter: David Jencks
>            Assignee: David Jencks
>             Fix For: 2.0.2, 2.1
>
>
> Duminda Ekanayake commented on the user list that LoginKerberosTest was failing on a windows system.  The surefire report indicated that login had succeeded but the principal count was not what the test expected.  Running the test on my machine goes straight to the "kerberos not installed -- pass" catch block.
> The eventual fix is to run this test with actual kerberos from apacheds, but the immediate fix is to look for the right number of principals.
> Here's the clue that login has succeeded... unlike on a mac:
>   <testcase time=3D"0.016" name=3D"testLogin">
>     <failure type=3D"junit.framework.AssertionFailedError"
> message=3D"server-side subject should have three principals
> expected:&amp;lt;3&amp;gt; but was:&amp;lt;2&amp;gt;">
> junit.framework.AssertionFailedError: server-side subject should have three
> principals expected:&amp;3&amp; but was:&amp;2&amp;
>     at junit.framework.Assert.fail(Assert.java:47)
>     at junit.framework.Assert.failNotEquals(Assert.java:282)
>     at junit.framework.Assert.assertEquals(Assert.java:64)
>     at junit.framework.Assert.assertEquals(Assert.java:201)
>     at org.apache.geronimo.security.jaas.LoginKerberosTest.testLogin(
> LoginKerberosTest.java:94)
> </failure>
>     <system-out>Debug is  true storeKey false useTicketCache true useKeyTab
> false doNotPrompt true ticketCache is null isInitiator true KeyTab is null
> refreshKrb5Config is false principal is null tryFirstPass is false
> useFirstPass is false storePass is false clearPass is false
> Acquire TGT from Cache
> Principal is Duminda@JKCS_DOMAIN.ORG
> Commit Succeeded
> </system-out>
>   </testcase>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.