Resource leaks in ldap external lookup
Brought to you by:
paulcockings,
sbajic
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.
Hello Enrico,
Can you confirm that this problem only happens when using starttls to communicate to the Ldap server?
Regards,
Hugo Monteiro.
I am using starttls when connecting to LDAP server. But I can not say whether it happens only in this situation.