You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "John Liu (JIRA)" <ji...@apache.org> on 2007/10/10 09:44:50 UTC
[jira] Updated: (HARMONY-4921) [classlib][auth]Krb5LoginModule
failed
[ https://issues.apache.org/jira/browse/HARMONY-4921?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Liu updated HARMONY-4921:
------------------------------
Description:
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", "example@EXAMPLE.COM");
Subject subject = new Subject();
krb5Login.initialize(subject, new TextCallbackHandler(), null, options);
krb5Login.login();
krb5Login.commit();
with following vm arguments:
-Djava.security.krb5.realm=EXAMPLE.COM
-Djava.security.krb5.kdc=<kdc ip address>:88
-Djavax.security.auth.useSubjectCredsOnly=false
The exception was thrown as follows:
javax.security.auth.login.LoginException
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
was:
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);
krb5Login.login();
krb5Login.commit();
with following vm arguments:
-Djava.security.krb5.realm=EXAMPLE.COM
-Djava.security.krb5.kdc=<kdc ip address>:88
-Djavax.security.auth.useSubjectCredsOnly=false
The exception was thrown as follows:
javax.security.auth.login.LoginException
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
> [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", "example@EXAMPLE.COM");
> Subject subject = new Subject();
> krb5Login.initialize(subject, new TextCallbackHandler(), null, options);
> krb5Login.login();
> krb5Login.commit();
> with following vm arguments:
> -Djava.security.krb5.realm=EXAMPLE.COM
> -Djava.security.krb5.kdc=<kdc ip address>:88
> -Djavax.security.auth.useSubjectCredsOnly=false
> The exception was thrown as follows:
> javax.security.auth.login.LoginException
> 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.