You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Anders Hessellund Jensen (JIRA)" <de...@geronimo.apache.org> on 2006/03/17 13:19:32 UTC

[jira] Commented: (GERONIMO-1627) LoginKerberosNonGeronimoTest fails

    [ http://issues.apache.org/jira/browse/GERONIMO-1627?page=comments#action_12370818 ] 

Anders Hessellund Jensen commented on GERONIMO-1627:
----------------------------------------------------

This seems to be a win-only bug in Suns JDK. Heres what someone wrote on forums.java.sun.com:

When I run a classical sample code using Kerberos authentication the application exits abnormaly without throwing any exception or error but with the following lines on the console:
Error calling function Protocol status : 1312
FormatMessage failed with 1815

The code runs with error on a win XP PC which is not in a windows domain (for testing purpose, the nominal environment is in a windows domain)

The error seems to be related to the Sun supplied "w2k_lsa_auth" DLL using Microsoft security API.
It happens with J2SK 1.4.2_08 and 1.5.0_02.

Has anyone a solution for detecting that a PC is not in a domain for preventing abnormal exits of the application ?

I use the following options to configure the Krb5LoginModule:
useTicketCache=true
doNotPrompt=true

> LoginKerberosNonGeronimoTest fails
> ----------------------------------
>
>          Key: GERONIMO-1627
>          URL: http://issues.apache.org/jira/browse/GERONIMO-1627
>      Project: Geronimo
>         Type: Bug
>   Components: security
>     Reporter: Anders Hessellund Jensen
>     Assignee: Alan Cabrera

>
> Output when running the junit test suite:
> test:test:
>     [junit] Running org.apache.geronimo.security.ContextManagerTest
>     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0,5 sec
>     [junit] Running org.apache.geronimo.security.jaas.ConfigurationEntryTest
>     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 1,093 sec
>     [junit] Running org.apache.geronimo.security.jaas.LoginKerberosNonGeronimoTest
>     [junit] Error calling function Protocol status: 1312
>     [junit] FormatMessage failed with 1815
>     [junit] [ERROR] Test org.apache.geronimo.security.jaas.LoginKerberosNonGeronimoTest FAILED
>     [junit] Running org.apache.geronimo.security.jaas.LoginKerberosTest
>     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0,75 sec
>     [junit] Running org.apache.geronimo.security.jaas.LoginPropertiesFileTest
>     [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 1,453 sec
>     [junit] Running org.apache.geronimo.security.jaas.LoginSQLTest
>     [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 1,687 sec
>     [junit] Running org.apache.geronimo.security.jaas.MultipleLoginDomainTest
>     [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0,234 sec
>     [junit] Running org.apache.geronimo.security.jaas.NoLoginModuleReuseTest
>     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0,234 sec
>     [junit] Running org.apache.geronimo.security.jaas.TimeoutTest
>     [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 11,625 sec
>     [junit] Running org.apache.geronimo.security.jacc.GeronimoPolicyConfigurationFactoryTest
>     [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0,219 sec
>     [junit] Running org.apache.geronimo.security.network.protocol.SubjectCarryingProtocolTest
>     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 1,234 sec
>     [junit] Running org.apache.geronimo.security.remoting.jmx.RemoteLoginTest
>     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 1,187 sec
> BUILD FAILED
> File...... C:\Documents and Settings\ahj\.maven\cache\maven-test-plugin-1.7\plugin.jelly
> Element... fail
> Line...... 183
> Column.... -1
> There were test failures.
> Total time   : 35 seconds 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira