Topic
No replies
CGarces
CGarces
1 Post
ACCEPTED ANSWER

Pinned topic Problem with JAAS & IBM JRE

‏2010-09-27T16:22:16Z |
Hi!

Im using Jaas + Kerberos with IBM JRE 1.4

This is my jaas.conf

JaasClient {
com.sun.security.auth.module.Krb5LoginModule required debug=true;
};

Works ok with Sun JRE.

When I change the jaas.conf using this:

JaasClient {
com.ibm.security.auth.module.Krb5LoginModule required debug=true;
};

Not works (with IBM JRE).

Any idea?

This is the stack trace:

com.ibm.security.krb5.KrbException, status code: 52
message: None
at com.ibm.security.krb5.KrbAsRep.<init>(KrbAsRep.java:23)
at com.ibm.security.krb5.KrbAsReq.getReply(KrbAsReq.java:53)
at com.ibm.security.krb5.KrbAsReq.getReply(KrbAsReq.java:73)
at com.ibm.security.auth.module.Krb5LoginModule.f(Krb5LoginModule.java:24)
at com.ibm.security.auth.module.Krb5LoginModule.b(Krb5LoginModule.java:65)
at com.ibm.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:224)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
at java.lang.reflect.Method.invoke(Method.java:386)
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:698)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:150)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:633)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:630)
at javax.security.auth.login.LoginContext.login(LoginContext.java:556)
at foo.krb5.demo.Krb5Client.login(Krb5Client.java:96)
at foo.krb5.demo.Krb5Client.main(Krb5Client.java:41)
Login error: com.ibm.security.krb5.KrbException, status code: 52
message: None