View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0026622||mantisbt||ldap||public||2020-01-23 11:57||2020-04-02 06:35|
|Target Version||2.23.1||Fixed in Version||2.23.1|
|Summary||0026622: LDAP API does not cache realname information|
The LDAP API only implements caching on e-mail data, but not on realname.
Consequently, Mantis makes numerous, unnecessary LDAP searches to retrieve the same data over and over again, which can have a serious performance impact as described in 0026600.
Moreover, since email and realname information are retrieved separately, it doubles the number of LDAP queries when the system is configured to display realnames.
LDAP API needs to be optimized to properly cache information, and only access the LDAP server once per user.
|Tags||No tags attached.|
I just realized that I had actually started working on tihis, back in 2011 (!) while I was still working at Merck... Then I moved on and stopped using LDAP / ADFS for auth so I never actually finalized the work. Looking at those nearly 10 years old commits, It is somewhat reassuring to find out that I reinvented nearly the same wheel this time around ;-)
MantisBT: master-2.23 709fb78e
2020-01-23 11:32:07Details Diff
|Reduce number of LDAP searches
Prior to this, retrieving user information required 1 LDAP search each
time a user was referenced on a page (possibly 2 if Mantis is configured
to show the realname). This could have a significant performance impact
when displaying pages containing a large number of users (e.g. viewing
an Issue having a long history, as described in issue 0026600).
Implement a new ldap_cache_user_data() function to retrieve all needed
LDAP attributes in a single search, and cache them.
This way, we only need to query the LDAP server once per user,
subsequent calls only need to access the cache which drastically
Fixes 0026622, 0026600
|mod - core/ldap_api.php||Diff File|
|2020-01-23 11:57||dregad||New Issue|
|2020-01-23 11:57||dregad||Status||new => assigned|
|2020-01-23 11:57||dregad||Assigned To||=> dregad|
|2020-01-23 11:57||dregad||Relationship added||related to 0026600|
|2020-01-23 12:06||dregad||Note Added: 0063501|
|2020-01-24 02:12||dregad||Note Added: 0063506|
|2020-01-24 11:14||dregad||Relationship replaced||parent of 0026600|
|2020-01-28 07:07||dregad||Changeset attached||=> MantisBT master-2.23 709fb78e|
|2020-01-28 07:07||dregad||Status||assigned => resolved|
|2020-01-28 07:07||dregad||Resolution||open => fixed|
|2020-01-28 07:14||dregad||Fixed in Version||=> 2.23.1|
|2020-03-15 15:23||vboctor||Status||resolved => closed|
|2020-04-02 06:35||atrol||Relationship added||related to 0026841|