Menu

#87 Resource leaks in ldap external lookup

v3.9.0
open
daemon (84)
5
2010-01-25
2010-01-25
No

ldap_lookup() calls 'return NULL' in error case without freeing the allocated LDAP handle. This leaks a filedescriptor and brings OpenLDAP in a state that all subsequent lookups fail with

| External Lookup: Backend initialization failure: Success (0)

I detected this problem when an LDAP server was unreachable.

Discussion

  • Ion-Mihai "IOnut" Tetcu

    • assigned_to: nobody --> hmonteiro
     
  • Hugo Monteiro

    Hugo Monteiro - 2010-01-25

    Hello Enrico,

    Can you confirm that this problem only happens when using starttls to communicate to the Ldap server?

    Regards,

    Hugo Monteiro.

     
  • Enrico Scholz

    Enrico Scholz - 2010-01-26

    I am using starttls when connecting to LDAP server. But I can not say whether it happens only in this situation.

     

Log in to post a comment.