Uploaded image for project: 'WildFly Elytron'
  1. WildFly Elytron
  2. ELY-797

Ldap security realm does not close DirContext properly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 1.1.0.Beta17
    • None
    • Realms
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: