Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-12301

Account lockout logs ERROR: ISAccountLockout.getAcInfo: acInfo: null

    Details

    • Target Version/s:
    • Rank:
      1|hzv1w7:
    • Support Ticket IDs:

      Description

      Bug description

      Unnecessary errors appear in the Authentication log if using account lockout.

      How to reproduce the issue

      1. Install 13.5.1 with defaults / embedded config
      2. Enable Authentication Settings - > Account lockout -> Login Failure Lockout Mode
      3. Disable Authentication Settings - > Account lockout -> Store Invalid Attempts in Data Store
      4. Login as demo user.

      Expected behaviour

      No error log on successful login.

      Current behaviour

      Authentication log has:
      amAccountLockout:01/09/2018 03:10:35:929 PM GMT: Thread[http-bio-8080-exec-10,5,main]: TransactionId[7eb99816-3605-4172-8f39-f45d20aa69a8-246]
      ERROR: ISAccountLockout.getAcInfo: acInfo: null for ID: id=demo,ou=user,dc=openam,dc=forgerock,dc=org

      Code analysis

      Looks like a change brought in by OPENAM-10905 Memory account lock does not use a consistent User ID value when storing lockout count in cache

      com.sun.identity.common.ISAccountLockout.java
              } else {
                  if (amIdentity != null) {
                      acInfo = loginFailHash.get(amIdentity.getUniversalId());
                      debug.error("ISAccountLockout.getAcInfo: acInfo: {} for ID: {}",
                              acInfo, amIdentity.getUniversalId());
                  } else {
                      debug.error("ISAccountLockout.getAcInfo: amIdentity was null");
                  }
              }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                markdr Mark de Reeper
                Reporter:
                andrew.dunn Andrew Dunn [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: