GNU bug report logs -
#62721
30.0.50; EUDC: stop adding a wildcard to LDAP searches
Previous Next
Reported by: Fabrice Bauzac-Stehly <libnoon <at> orange.fr>
Date: Sat, 8 Apr 2023 07:21:02 UTC
Severity: normal
Found in version 30.0.50
Done: Thomas Fitzsimmons <fitzsim <at> fitzsim.org>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 62721 <at> debbugs.gnu.org (full text, mbox):
On 08/04/2023 09:20 +0200, Fabrice Bauzac-Stehly wrote:
> Hello,
>
> I use EUDC to search entries from LDAP. I routinely search for a
> username to retrieve the email address. The LDAP server contains lots
> of entries, and a username is often a prefix of lots of other usernames.
> For example, when I search for the "js" username, I don't want to have
> dozens of results of usernames that just start with "js" like "jsmith"
> or "jscott".
>
> However, that's what eudcb-ldap does: for reasons I don't understand,
> the eudc-ldap-format-query-as-rfc1558 defun automatically appends the
> wildcard character "*" to the last field. This is annoying as I get
> dozens of results. I want to have the choice of adding a wildcard or
> not to my searches, I don't want that imposed on me.
>
> I propose the attached patch to fix this behaviour. The result is a
> simplification of the existing code. Could you please review it?
>
Hi,
The wildcard is there so you can use partial values with M-x
eudc-expand-inline (and also in M-x eudc-query-form and others).
You can customize eudc-ldap-no-wildcard-attributes, or just let-bind it
around your code.
Thanks.
This bug report was last modified 2 years and 8 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.