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] Updated: (HARMONY-4921) [classlib][auth]Krb5LoginModule failed
Date Wed, 10 Oct 2007 07:44:50 GMT

     [ 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.


Mime
View raw message