Project

General

Profile

Actions

Bug #57881

closed

LDAP invalid password resource leak fix

Added by Johannes Liebl over 1 year ago. Updated 3 days ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
% Done:

100%

Source:
Community (user)
Tags:
ldap backport_processed
Backport:
pacific, quincy
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

I have noticed that in the case a User tries to log in using LDAP with a wrong password, two new LDAP sessions will be opend but not closed.
This has resulted in a massive increase in open connections to our central LDAP after a while.

The issue lies in the ldap implementation (/src/rgw/ldap.h) since it does not unbind the ldap connection if the requests fail.
I will open a pull request shortly.


Related issues 2 (0 open2 closed)

Copied to rgw - Backport #59091: pacific: LDAP invalid password resource leak fixResolvedLaura FloresActions
Copied to rgw - Backport #59092: quincy: LDAP invalid password resource leak fixResolvedLaura FloresActions
Actions

Also available in: Atom PDF