harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Liu (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-4921) [classlib][auth]Krb5LoginModule failed
Date Wed, 10 Oct 2007 07:44:50 GMT
[classlib][auth]Krb5LoginModule failed

                 Key: HARMONY-4921
                 URL: https://issues.apache.org/jira/browse/HARMONY-4921
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: John Liu

I've written a test for harmony's Krb5LoginModule but it didn't work.

A Kerberos V5 server was set for this test and added a principal 
"example@EXAMPLE.COM" with password "1111111".

Then I ran next segment of code:

Krb5LoginModule krb5Login = new Krb5LoginModule();
Map<String,String> options = new HashMap<String,String>();
options.put("principal", "leo@EXAMPLE.COM");
Subject subject = new Subject();
krb5Login.initialize(subject, new TextCallbackHandler(), null, options);

with following vm arguments:
-Djava.security.krb5.kdc=<kdc ip address>:88

The exception was thrown as follows:

	at org.apache.harmony.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:141)
	at org.apache.harmony.auth.jgss.kerberos.test.TestForKerberosLoginModule.main (TestForKerberosLoginModule.java:31)
Caused by: org.apache.harmony.auth.internal.kerberos.v5.KerberosException: Error code: 6
	at org.apache.harmony.auth.internal.kerberos.v5.KrbClient.doAS(KrbClient.java:157)
	at org.apache.harmony.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:96)
	... 1 more

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

View raw message