Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-7345

Ldap security realm does not close DirContext properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 7.1.0.DR10
    • 7.1.0.DR8
    • Security
    • None

      There are methods in Elytron LdapSecurityRealm class which create/get DirContext, but does not close him in finally block.
      In some circumstances could cause context resource leak.

      • LdapSecurityRealm
        • getEvidenceVerifySupport
        • getCredentialAcquireSupport
        • getCredential
        • setCredentials
      • LdapRealmIdentity
        • setCredentials

      In same class there are examples of properly closed contexts:

      • LdapRealmIdentity
        • getCredential
        • getEvidenceVerifySupport
        • verifyEvidence
        • getIdentity
        • create
        • setAttributes

            jkalina@redhat.com Jan Kalina (Inactive)
            mchoma@redhat.com Martin Choma
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: