Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4487819

access control exception for username and password after 2nd correct login

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.0
    • security-libs



      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)
      ======================================================================

            rmartisunw Ramachandran Marti (Inactive)
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: