Forum Stats

  • 3,814,410 Users
  • 2,258,870 Discussions
  • 7,892,703 Comments

Discussions

help -- using JAAS to access Solaris

843811
843811 Member Posts: 49,851
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

This discussion has been closed.