unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Filipp Gunbin <fgunbin@fastmail.fm>
To: Fabrice Bauzac-Stehly <libnoon@orange.fr>
Cc: 62721@debbugs.gnu.org
Subject: bug#62721: 30.0.50; EUDC: stop adding a wildcard to LDAP searches
Date: Mon, 10 Apr 2023 17:29:35 +0300	[thread overview]
Message-ID: <m2pm8b7quo.fsf@fastmail.fm> (raw)
In-Reply-To: <874jpqalh7.fsf@fedora.home> (Fabrice Bauzac-Stehly's message of "Sat, 08 Apr 2023 09:20:36 +0200")

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.





  reply	other threads:[~2023-04-10 14:29 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-08  7:20 bug#62721: 30.0.50; EUDC: stop adding a wildcard to LDAP searches Fabrice Bauzac-Stehly
2023-04-10 14:29 ` Filipp Gunbin [this message]
2023-04-10 19:09   ` Fabrice Bauzac-Stehly
2023-04-10 19:36     ` Filipp Gunbin
2023-04-19 12:48       ` Thomas Fitzsimmons
2023-05-14 19:10         ` Fabrice Bauzac-Stehly
2023-05-15 18:28           ` Thomas Fitzsimmons
2023-05-15 20:15             ` Fabrice Bauzac-Stehly
2023-05-15 20:36               ` Thomas Fitzsimmons
2023-05-15 20:40                 ` Thomas Fitzsimmons
2023-05-15 21:56                   ` Thomas Fitzsimmons
2023-05-16  8:24                   ` Fabrice Bauzac-Stehly
2023-05-16  8:14                 ` Fabrice Bauzac-Stehly
2023-05-16 10:57                   ` Thomas Fitzsimmons
2023-05-17  6:12                     ` Fabrice Bauzac-Stehly
2023-05-17 11:01                       ` Thomas Fitzsimmons

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2pm8b7quo.fsf@fastmail.fm \
    --to=fgunbin@fastmail.fm \
    --cc=62721@debbugs.gnu.org \
    --cc=libnoon@orange.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).