Uploaded image for project: 'Directory Kerberos'
  1. Directory Kerberos
  2. DIRKRB-730

Unable to parse krb5.conf rules due to java.lang.IndexOutOfBoundsException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.1
    • 2.0.0
    • None
    • None

    Description

      This is a valid krb5.conf (MIT style):

       

      [libdefaults]
         default_realm = EXAMPLE.COM
      [realms]
              EXAMPLE.COM = {
                      kdc = localhost:88
                      auth_to_local = {
                          RULE:[2:$1](johndoe)s/^.*$/guest/
                          RULE:[2:$1;$2](^.*;admin$)s/;admin$//
                          RULE:[2:$2](root)
                          DEFAULT
                      }
             }
      

      It fails with a "java.lang.IndexOutOfBoundsException : Invalid array range: 1 to 1" as it doesn't understand that values can be multi-line between "{}".

       

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bolke Bolke de Bruin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: