Using the krb5LoginModule to access cached credentials...

Hi there -

I'm trying to run one the tutorial on JAAS Authentication with the

krb5LoginModule on windows 2000. I'm trying to get the credentials from

the ticket cache on windows. I get the following error - which looks

like it can't load a native library. Which library is it trying to

load? My guess would be the w2k_lsa_auth - since the documentation says

it uses the Local Security Authority api to access the ticket cache on

windows. I have this library as part of the default JDK 1.4

installation in the jre/bin directory. Should it be in another place?

Thanks in Advance.

<JaasAcn> ERROR [main] -java.lang.UnsatisfiedLinkError: exception

occurred in

JNI_OnLoad

at java.lang.ClassLoader$NativeLibrary.load(Native Method)

at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1440)

at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1356)

at java.lang.Runtime.loadLibrary0(Runtime.java:773)

at java.lang.System.loadLibrary(System.java:835)

at

sun.security.krb5.Credentials$1.run([DashoPro-V2.2-110100.11101B00127

5]:640)

at java.security.AccessController.doPrivileged(Native Method)

at

sun.security.krb5.Credentials.a([DashoPro-V2.2-110100.11101B001275]:6

37)

at

sun.security.krb5.Credentials.acquireDefaultCreds([DashoPro-V2.2-1101

00.11101B001275]:374)

at

sun.security.krb5.Credentials.acquireTGTFromCache([DashoPro-V2.2-1101

00.11101B001275]:268)

at

com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Kr

b5LoginModule.java:524)

at

com.sun.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.ja

va:479)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

[1929 byte] By [sgilpin] at [2007-9-26 8:47:06]
# 1
Hi!I'm having the same problem you've got.Did you get any solution? If you've any solution please help methank you
sr_sunkara at 2007-7-1 19:39:12 > top of Java-index,Security,Other Security APIs, Tools, and Issues...