From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Filipp Gunbin Newsgroups: gmane.emacs.bugs Subject: bug#62721: 30.0.50; EUDC: stop adding a wildcard to LDAP searches Date: Mon, 10 Apr 2023 22:36:18 +0300 Message-ID: References: <874jpqalh7.fsf@fedora.home> <873557pn9h.fsf@fedora.home> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25051"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 62721@debbugs.gnu.org To: Fabrice Bauzac-Stehly Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 10 21:37:40 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1plxKb-0006FJ-JV for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 10 Apr 2023 21:37:40 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1plxK4-0006fw-Sn; Mon, 10 Apr 2023 15:37:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1plxK2-0006fI-Cr for bug-gnu-emacs@gnu.org; Mon, 10 Apr 2023 15:37:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1plxK2-0003FD-38 for bug-gnu-emacs@gnu.org; Mon, 10 Apr 2023 15:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1plxK1-0002pv-Sl for bug-gnu-emacs@gnu.org; Mon, 10 Apr 2023 15:37:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Filipp Gunbin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Apr 2023 19:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62721 X-GNU-PR-Package: emacs Original-Received: via spool by 62721-submit@debbugs.gnu.org id=B62721.168115539110866 (code B ref 62721); Mon, 10 Apr 2023 19:37:01 +0000 Original-Received: (at 62721) by debbugs.gnu.org; 10 Apr 2023 19:36:31 +0000 Original-Received: from localhost ([127.0.0.1]:35980 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1plxJX-0002pB-9F for submit@debbugs.gnu.org; Mon, 10 Apr 2023 15:36:31 -0400 Original-Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:56563) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1plxJV-0002ox-NY for 62721@debbugs.gnu.org; Mon, 10 Apr 2023 15:36:30 -0400 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 977233200035; Mon, 10 Apr 2023 15:36:23 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 10 Apr 2023 15:36:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1681155383; x=1681241783; bh=bD pWc2Qcq6GnUg5KUJThFtIfj0+4iibYRf2iGCsdNB4=; b=p5nST0p3oMJ/KdCQp9 JCgHOpcn9NUKjL92NOWUbX6TEl7Eh7C+VoIG7Wdm1K33ikuiUuwB8AqydtLhaqv9 SsWWP8eQdqtkNFAOKcoGwmbpr+ylNsdke0W804s7EXHCkA1CzCclEVTxzaQTzlNV N8f+OKcKWCWTPevEGPGIBX+sDRFM8+wNPxKpx9eYapaw2XsgJMAtzFVH7PVqNjsr 68vm8/0CxEFqLjleH9FAmKY7TuAJMzaVcyXdZqdfKPbpVa+8jg/IBQY/h7bVGK3W Dic95/BEaf5RQaIj3+g3eb44/BxIFvMypXUKx8DSJrN415o6fJHwNoH2uytopvWv O76w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1681155383; x=1681241783; bh=bDpWc2Qcq6GnU g5KUJThFtIfj0+4iibYRf2iGCsdNB4=; b=PTQiZ3ZbZZvLd0CUZZe2XJoBSrwDr DD8P+I8bCHVhQviUvVfEDJInm0q7T2+YJM20lukRW60rvxHTlMiVJhGzxtWZpFZC SG/c9ckh1Sqny7BK51oz6rF5OdVAuMRukhf+ZTJadgilDnto8vJDMWaygkDlYG1R onUF56R1aWjMr+LFwXRgc8Q/CmR8CnMvF+7U1UasPIC7c0UMZjIxx/EHoD/I7iBk rLykLYmzMIjDsjpHHPY3dD5rt/pRCAbFGPeRjL9C6mdr1QBbHoTAVL8RCWnaZEMp HdFgvCWi+4jfTaT8Tw+l7+sqStAXq2tWO5rRSMGf3MQKhdQ7goxf+IY3w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdekvddgudefkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvvefujghffgffkfggtgesth dtredttdertdenucfhrhhomhephfhilhhiphhpucfiuhhnsghinhcuoehfghhunhgsihhn sehfrghsthhmrghilhdrfhhmqeenucggtffrrghtthgvrhhnpeffhfejveeiieeiudetgf ehffelieevfeeffedtkeelheeludefueeuudehveeiffenucevlhhushhtvghrufhiiigv pedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehfghhunhgsihhnsehfrghsthhmrghilh drfhhm X-ME-Proxy: Feedback-ID: id48c41f1:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 10 Apr 2023 15:36:22 -0400 (EDT) In-Reply-To: <873557pn9h.fsf@fedora.home> (Fabrice Bauzac-Stehly's message of "Mon, 10 Apr 2023 21:09:46 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:259601 Archived-At: On 10/04/2023 21:09 +0200, Fabrice Bauzac-Stehly wrote: > Hello, > > Sorry, I have not put sufficient information in my initial message. In > my case, I'm using eudc-query-form, where I know I can add wildcards to > the fields if I want. My complaint is about the fact that a wildcard is > imposed on me in this case, with annoying consequences. Thanks to your > message, I understand though that this automatic wildcard may be useful > in other contexts where `eudc-ldap-format-query-as-rfc1558' is called. > > Customizing `eudc-ldap-no-wildcard-attributes' would work in the sense > that I could disable the wildcards in all cases, but I suspect this > solution is not ideal as it would also disable it in the case of > eudc-expand-inline where (as I understand from your message) it would > actually be useful. > > I think that in the case of eudc-query-form, no wildcard should ever be > added. What do you think? Should we pass some parameter so that > eudc-ldap-format-query-as-rfc1558 knows what to do? > > Thanks! To me, it's always useful to have wildcard. Would this simple advice help in your case? I tried it with mail, replace it with your attributes. (defun my/eudc-process-form (orig &rest args) (let ((eudc-ldap-no-wildcard-attributes (cons 'mail eudc-ldap-no-wildcard-attributes))) (apply orig args))) (advice-add 'eudc-process-form :around #'my/eudc-process-form) Thanks.