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: Acknowledgement (30.0.50; `ldap-search' errors out with `wrong-type-argument listp' when called WITHDN == t) Date: Fri, 16 Jun 2023 00:11:15 +0200 Message-ID: References: Reply-To: Jens Schmidt Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------lVF2QCPaCzi7XkmVAasEeVpd" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13853"; 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 Fri Jun 16 00:12:15 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 1q9vCQ-0003M9-VQ for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Jun 2023 00:12:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q9vCG-0002sA-Q8; Thu, 15 Jun 2023 18:12: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 1q9vCE-0002rt-SN for bug-gnu-emacs@gnu.org; Thu, 15 Jun 2023 18:12: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 1q9vCE-0007Fv-Jh for bug-gnu-emacs@gnu.org; Thu, 15 Jun 2023 18:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q9vCE-0003cR-Fg for bug-gnu-emacs@gnu.org; Thu, 15 Jun 2023 18:12: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 22:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64089 X-GNU-PR-Package: emacs Original-Received: via spool by 64089-submit@debbugs.gnu.org id=B64089.168686709713872 (code B ref 64089); Thu, 15 Jun 2023 22:12:02 +0000 Original-Received: (at 64089) by debbugs.gnu.org; 15 Jun 2023 22:11:37 +0000 Original-Received: from localhost ([127.0.0.1]:48154 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q9vBo-0003bg-Pl for submit@debbugs.gnu.org; Thu, 15 Jun 2023 18:11:37 -0400 Original-Received: from mr6.vodafonemail.de ([145.253.228.166]:49852) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q9vBm-0003bR-Ew for 64089@debbugs.gnu.org; Thu, 15 Jun 2023 18:11:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vodafonemail.de; s=vfde-mb-mr2-21dec; t=1686867087; bh=tD9zbApAqLCze+oVleVgGnKDOizPI0X732EXe6ShXDA=; h=Content-Type:Message-ID:Date:User-Agent:From:Subject:To: References:Content-Language:In-Reply-To:From; b=NecyqdCfDTuiRfN0Kd7dsK2DwvzcIQbrUzicJwyZxOOFaFdzPUgI0+ApfbZEzYOfM RHwaMZjlp0F9S2Nu0K1C6ZyLgRRAn+Z28lbBjKsonwF9ze9NiYdwgnZziHtkfk+FpY a/CeE6QFYJT7RcLG8+LReLZ1jnAJVfMDYcbRVuTQ= 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 mr6.vodafonemail.de (Postfix) with ESMTPS id 4QhxMg5YHvz1y3G for <64089@debbugs.gnu.org>; Thu, 15 Jun 2023 22:11:27 +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 4QhxMb2k4VzMkry for <64089@debbugs.gnu.org>; Thu, 15 Jun 2023 22:11:20 +0000 (UTC) Content-Language: de-DE-frami, en-US In-Reply-To: X-purgate-type: clean X-purgate: clean X-purgate-size: 3240 X-purgate-ID: 155817::1686867083-5AFFAEE7-088A4619/0/0 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:263440 Archived-At: This is a multi-part message in MIME format. --------------lVF2QCPaCzi7XkmVAasEeVpd Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit With the following patch things work as expected: (ldap-search "(uid=)" "ldap://" '("mail") nil t) => ((("dn" "cn=,L=,DC=,DC=COM") ("mail" "@.com"))) I tried to make the patch as conservative as possible and intentionally do not check syntax of the dn line if its parsing is not required. --------------lVF2QCPaCzi7XkmVAasEeVpd Content-Type: text/x-patch; charset=UTF-8; name="0001-Fix-parsing-of-dn-line-if-WITHDN-is-non-nil.patch" Content-Disposition: attachment; filename="0001-Fix-parsing-of-dn-line-if-WITHDN-is-non-nil.patch" Content-Transfer-Encoding: base64 RnJvbSBhNjQ2ZjVhYTIzZjA1MWYxOTkxMDI4NmMxYmY5ZjQ1ODBhODU4ZjBmIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBKZW5zIFNjaG1pZHQgPGpzY2htaWR0NGdudUB2b2Rh Zm9uZW1haWwuZGU+CkRhdGU6IEZyaSwgMTYgSnVuIDIwMjMgMDA6MDQ6MDQgKzAyMDAKU3Vi amVjdDogW1BBVENIXSBGaXggcGFyc2luZyBvZiBkbiBsaW5lIGlmIFdJVEhETiBpcyBub24t bmlsCgpGdW5jdGlvbiBgbGRhcC1zZWFyY2gnIGVycm9ycyBvdXQgd2l0aCBgd3JvbmctdHlw ZS1hcmd1bWVudCBsaXN0cCcKd2hlbiBjYWxsZWQgd2l0aCBXSVRIRE4gbm9uLW5pbC4KKiBs aXNwL25ldC9sZGFwLmVsIChsZGFwLXNlYXJjaC1pbnRlcm5hbCk6IFBhcnNlIHRoZSBkbiBs aW5lCmNvcnJlY3RseSBzbyB0aGF0IGBsZGFwLXNlYXJjaCcgY2FuIGdyb2sgaXQuICAoQnVn IzY0MDg5KQotLS0KIGxpc3AvbmV0L2xkYXAuZWwgfCAxMiArKysrKysrKysrKy0KIDEgZmls ZSBjaGFuZ2VkLCAxMSBpbnNlcnRpb25zKCspLCAxIGRlbGV0aW9uKC0pCgpkaWZmIC0tZ2l0 IGEvbGlzcC9uZXQvbGRhcC5lbCBiL2xpc3AvbmV0L2xkYXAuZWwKaW5kZXggNzg0MDU0MTRh MjguLjQyNzViNDVlNmY1IDEwMDY0NAotLS0gYS9saXNwL25ldC9sZGFwLmVsCisrKyBiL2xp c3AvbmV0L2xkYXAuZWwKQEAgLTcwMyw3ICs3MDMsMTcgQEAgbGRhcC1zZWFyY2gtaW50ZXJu YWwKIAkod2hpbGUgKHByb2duCiAJCSAoc2tpcC1jaGFycy1mb3J3YXJkICIgXHRcbiIpCiAJ CSAobm90IChlb2JwKSkpCi0gICAgICAgICAgKHNldHEgZG4gKGJ1ZmZlci1zdWJzdHJpbmcg KHBvaW50KSAobGluZS1lbmQtcG9zaXRpb24pKSkKKyAgICAgICAgICA7OyBJZ25vcmUgZmly c3QgKGRuKSBsaW5lIGlmIFdJVEhETiBlcXVhbHMgbmlsLiAgSWYgV0lUSEROCisgICAgICAg ICAgOzsgaXMgbm9uLW5pbCwgY2hlY2sgc3ludGF4IG9mIHRoZSBsaW5lIGFuZCBzcGxpdCBp dCBpbnRvIGEKKyAgICAgICAgICA7OyBwYWlyIGFzIGV4cGVjdGVkIGJ5IGBsZGFwLWRlY29k ZS1hdHRyaWJ1dGUnIChCdWcjNjQwODkpLgorICAgICAgICAgIDs7IElmIHRoZSBzeW50YXgg aXMgd3JvbmcsIGJldHRlciB0aHJvdyBhbiBlcnJvciBoZXJlLCBzaW5jZQorICAgICAgICAg IDs7IG90aGVyd2lzZSBgbGRhcC1kZWNvZGUtYXR0cmlidXRlJyB3b3VsZCB0aHJvdyBhIG11 Y2ggbGVzcworICAgICAgICAgIDs7IGNvbXByZWhlbnNpYmxlIGVycm9yIGxhdGVyLgorICAg ICAgICAgIChjb25kICgobm90IHdpdGhkbikpCisgICAgICAgICAgICAgICAgKChsb29raW5n LWF0ICJeZG5bPTpcdCBdK1xcKC4qXFwpJCIpCisgICAgICAgICAgICAgICAgIChzZXRxIGRu IChsaXN0ICJkbiIgKG1hdGNoLXN0cmluZyAxKSkpKQorICAgICAgICAgICAgICAgICh0IChl cnJvciAiSW5jb3JyZWN0IGRuIGxpbmUgXCIlc1wiIGluIGxkYXBzZWFyY2ggcmVzdWx0Igor ICAgICAgICAgICAgICAgICAgICAgICAgICAoYnVmZmVyLXN1YnN0cmluZyAocG9pbnQpIChs aW5lLWVuZC1wb3NpdGlvbikpKSkpCiAJICAoZm9yd2FyZC1saW5lIDEpCiAgICAgICAgICAg KHdoaWxlIChsb29raW5nLWF0ICJeXFwoW0EtWmEtel1bLUEtWmEtejAtOV0qXAogXFx8WzAt OV0rXFwoPzpcXC5bMC05XStcXCkqXFwpXFwoO1stQS1aYS16MC05XStcXCkqWz06XHQgXStc Ci0tIAoyLjMwLjIKCg== --------------lVF2QCPaCzi7XkmVAasEeVpd--