[Bug]: Cannot find any users with exact match with LDAP second display name #31888
Closed
4 of 8 tasks
Labels
0. Needs triage
Pending check for reproducibility or if it fits our roadmap
bug
feature: ldap
needs info
Milestone
Bug description
When searching for "V01" with share autocomplete disabled (aka exact match), the search code expects me to type the combined display name "V01 (Dept1)" instead of just "V01".
Steps to reproduce
Expected behavior
Only match the first display name, not the second one when exact match is enabled.
Installation method
No response
Operating system
No response
PHP engine version
No response
Web server
No response
Database engine version
No response
Is this bug present after an update or on a fresh install?
No response
Are you using the Nextcloud Server Encryption module?
No response
What user-backends are you using?
Configuration report
No response
List of activated Apps
Nextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
This is on master (git 69378e1) but likely on any other version.
This is the stack trace leading to the combination of display name, for reference:
The problem is that downstream from user_ldap, the display name is stored as "V01 (Dept1)" so the additional exact matching done in the UserPlugin will expect the compound name.
Now, please note that LDAP always uses a wildcard search and not exact matching, this is why we still need the additional matching in PHP code.
An ideal solution would have LDAP be aware of exact matching and we'd let LDAP take care of the search and trust the results without post-processing.
The text was updated successfully, but these errors were encountered: