-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quick search return with pattern like "foo*" #17
Comments
Indeed this is a bug. If no entries found, the correct error message should be displayed. |
Done. The test on error number was wrong. |
At cfae137, message prints to the user when using pattern like "foo*" : "LDAP communication error". To my mind, it's a "Bad search filter error". Could you override PHP LDAP error message to print a more friendly message like : "Forbidden pattern in search" ? |
Currently, error message "LDAP communication error" leads users to believe a technical error on software. This implies bad reputation for White Pages. Search error message seems more accurate (i.e. Incorrect search : |
I'm not sure that overriding PHP LDAP messages is a good idea, but it is maybe the only option. We should also see how to prevent user from doing an invalid search |
Fixed by #21 |
Hello,
At 2d51174, when doing a quick search with pattern like "foo*", White Pages just returns "entries found" message without results. Associated search filter
(|(uid=*foo**)(cn=*foo**)(mail=*foo**))
White Pages should return same entries found with "foo" pattern.
The text was updated successfully, but these errors were encountered: