From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jens Schmidt via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#64089: 30.0.50; `ldap-search' errors out with `wrong-type-argument listp' when called WITHDN == t Date: Thu, 15 Jun 2023 23:28:33 +0200 Message-ID: Reply-To: Jens Schmidt Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9456"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 To: 64089@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 15 23:29:31 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 1q9uX4-0002IB-Pw for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Jun 2023 23:29:30 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q9uWf-0005lY-AM; Thu, 15 Jun 2023 17:29:05 -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 1q9uWd-0005lJ-FH for bug-gnu-emacs@gnu.org; Thu, 15 Jun 2023 17:29:03 -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 1q9uWd-0003FE-6x for bug-gnu-emacs@gnu.org; Thu, 15 Jun 2023 17:29:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q9uWc-0008Kn-LZ for bug-gnu-emacs@gnu.org; Thu, 15 Jun 2023 17:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jens Schmidt Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Jun 2023 21:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64089 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.168686453832024 (code B ref -1); Thu, 15 Jun 2023 21:29:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Jun 2023 21:28:58 +0000 Original-Received: from localhost ([127.0.0.1]:48119 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q9uWY-0008KR-B1 for submit@debbugs.gnu.org; Thu, 15 Jun 2023 17:28:58 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:36920) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q9uWW-0008KJ-RU for submit@debbugs.gnu.org; Thu, 15 Jun 2023 17:28:57 -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 1q9uWU-0005kp-VL for bug-gnu-emacs@gnu.org; Thu, 15 Jun 2023 17:28:56 -0400 Original-Received: from mr5.vodafonemail.de ([145.253.228.165]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q9uWS-00035T-QS for bug-gnu-emacs@gnu.org; Thu, 15 Jun 2023 17:28:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vodafonemail.de; s=vfde-mb-mr2-21dec; t=1686864525; bh=B99pS5b6JhZU5hHM6TEBpWYwuUK4y/QYftZccq5Xroo=; h=Message-ID:Date:User-Agent:Content-Language:From:Subject:To: Content-Type:From; b=XRF+icMpzdR80FUsbSv8+K/msVlay0qJHSZ0mKEt1IOOiI8Ayl2xaxcPCn9Jyaudc PKqkxF89zVdzRs5QMjdSZohCyp6ydew329rUE5KjKTLWsVWD/+al5/EMj53WUq+K+9 i3mbKVKcW8gaakN97RUZq+oYs7+2nsoe/LKbsT8o= Original-Received: from smtp.vodafone.de (unknown [10.0.0.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mr5.vodafonemail.de (Postfix) with ESMTPS id 4QhwQP42Ypz1yYW for ; Thu, 15 Jun 2023 21:28:45 +0000 (UTC) Original-Received: from [192.168.178.41] (port-92-194-178-141.dynamic.as20676.net [92.194.178.141]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp.vodafone.de (Postfix) with ESMTPSA id 4QhwQK1TdyzHpxb for ; Thu, 15 Jun 2023 21:28:38 +0000 (UTC) Content-Language: de-DE-frami, en-US X-purgate-type: clean X-purgate: clean X-purgate-size: 1142 X-purgate-ID: 155817::1686864521-CA7FDD81-AD902682/0/0 Received-SPF: pass client-ip=145.253.228.165; envelope-from=jschmidt4gnu@vodafonemail.de; helo=mr5.vodafonemail.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:263438 Archived-At: Start emacs -Q. Then: (require 'ldap) => ldap (setq ldap-host-parameters-alist '(("ldap://" . (auth simple base "dc=,dc=com")))) => (("ldap://" auth simple base "dc=,dc=com")) (ldap-search "(uid=)" "ldap://" '("mail")) => ((("mail" "@.com"))) (ldap-search "(uid=)" "ldap://" '("mail") nil t) Error stack: Debugger entered--Lisp error: (wrong-type-argument listp "dn: cn=,L=,DC=,DC=COM") ldap-decode-attribute("dn: cn=,L=,DC=,DC=COM") mapcar(ldap-decode-attribute ("dn: cn=,L=,DC=,DC=COM" ("mail" "@.com"))) Error cause is pretty obvious: Function `ldap-decode-attribute' expects a pair ("dn" "") and not a string "dn: " generated by the sexp `(setq dn (buffer-substring (point) (line-end-position)))' in `ldap-search-internal'. This bug is also present in Emacs 29. Patch available, will provide in next bug update.