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

duplicate setSalt() called in AS-REQ

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 7
    • security-libs
    • None

      After AS-REQ, if a KRB-ERROR of PREAUTH-REQUIRED includes a PA-ETYPE-INFO(2) demanding a new salt used, the PrincipalName.setSalt() is called. In the current impl, it seems the method is called twice, once inside Credentials.acquireTGT(), once inside KrbAsReq's constructor (which is called in acquireTGT()). This is a dup.

      Will also study if the salt field should be embedded inside PrincipalName, or it's only useful during the AS-REQ process. Is it useful/correct to cache it inside PrincipalName? If another initial TGT is needed, the current impl send a plain-vanilla AS-REQ without any preauth info, and the KDC would send PREAUTH-REQUIRED again including the new salt info, hence there's no need to cache it. And, is it possible that the KDC changes the salt in the second response? Probably not unless the user's password is reset.

            weijun Weijun Wang
            weijun Weijun Wang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: