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

Underscore chars in LoginModule options fail to parse

XMLWordPrintable

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



      Name: krC82822 Date: 02/14/2001


      > java -version
      java version "1.3.0_01"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_01)
      Java HotSpot(TM) Client VM (build 1.3.0_01, mixed mode)

      The JAAS faq describes a common LoginModule option called
      password_stacking. However, attempting to use this option
      results in a configuration file parse error:

      806>cat ../main/resources/auth.conf
      other {
          // Put your login modules that work without jBoss here
          security.srp.protocol.jaas.SRPLoginModule required
              password_stacking="useFirstPass"
              principalClassName="org.jboss.security.SimplePrincipal"
              srpServerJndiName="SRPServerInterface"
              debug=true
              ;
      };

      java ProjRepositoryMain
      java.lang.SecurityException: Configuration Error:
           Line 3: expected '=', found 'null'
           at com.sun.security.auth.login.ConfigFile.getAppConfigurationEntry
      (ConfigFile.java:221)
           at javax.security.auth.login.LoginContext.init(LoginContext.java:172)
           at javax.security.auth.login.LoginContext.<init>(LoginContext.java:319)
           at ProjRepositoryMain.runAs(ProjRepositoryMain.java:28)
           at ProjRepositoryMain.main(ProjRepositoryMain.java:68)

      Apparently '_' is not in the parameter token set as it should be.
      (Review ID: 116609)
      ======================================================================

            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: