-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
1.0
-
generic
-
generic
Name: krC82822 Date: 08/02/2001
C:\jdk1.3.1\jre\bin\java -classpath
lib\jaas.jar;doc\samples;doc\samples\sample_action.jar;doc\samples\sample_module
.jar -Djava.security.manager -
Djava.security.policy==doc\samples\config\sample_java2.policy -
Djava.security.auth.policy==doc\samples\config\sample_jaas.policy -
Djava.security.auth.login.config==doc\samples\config\sample_jaas.config
sample.Sample
1. As mentioned in the JAAS developers' guide, I set the policy files to point
to the directory where the .jar are stored. When executed with the above
command, it works fine only for the 1st correct login but not for the 2nd
correct login.
2. Also, if the username is correct and password is wrong, it doesnt generate
an incorrect password message and displays authentication failure message
instead.
Error message :
Exception in thread "main" java.security.AccessControlException:access denied
(....Permission java.home read ....
at sample.Sample.main(Sample.java:105)
(Review ID: 127218)
======================================================================
- duplicates
-
JDK-4378100 LoginContext doesn't reinit modules with new Subject if authentication fails
-
- Resolved
-