Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

help -- using JAAS to access Solaris

843811Sep 19 2001 — edited Sep 19 2001
I downloaded and installed the JAAS 1.0 jar. I then configured and ran the sample program and it worked fine.
Then I changed the sample_jaas.config file to use com.sun.security.auth.module.NTLoginModule , and copyed the nt.dll to \gre\bin, replace the jaasmod.jar in gre\lib\ext using the WinNt module, and works fine

Then I changed the sample_jaas.config file to use com.sun.security.auth.module.SolarisLoginModule, and copyed the libsolaris.so to \gre\lib\sparc, replace the jaasmod.jar in gre\lib\ext using the Solaris for sparc module, can't work :( the Error is like below:

[SolarisLoginModule]: aborted authentication attempt
Unexpected Exception - unable to continue
javax.security.auth.login.LoginException: java.lang.UnsatisfiedLinkError: no sol
aris in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1312)
at java.lang.Runtime.loadLibrary0(Runtime.java:749)
at java.lang.System.loadLibrary(System.java:820)
at com.sun.security.auth.module.SolarisSystem.<init>(SolarisSystem.java:
36)
at com.sun.security.auth.module.SolarisLoginModule.login(SolarisLoginMod
ule.java:105)
at java.lang.reflect.Method.invoke(Native Method)
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:595)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:1
25)
at javax.security.auth.login.LoginContext$3.run(LoginContext.java:531)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java
:528)
at javax.security.auth.login.LoginContext.login(LoginContext.java:449)
at sample.Sample.main(Sample.java:53)

at javax.security.auth.login.LoginContext.invoke(LoginContext.java:650)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:1
25)
at javax.security.auth.login.LoginContext$3.run(LoginContext.java:531)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java
:528)
at javax.security.auth.login.LoginContext.login(LoginContext.java:449)
at sample.Sample.main(Sample.java:53)

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Oct 17 2001
Added on Sep 19 2001
1 comment
105 views