From nobody@FreeBSD.org  Mon Mar  2 17:06:08 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 7812E106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  2 Mar 2009 17:06:08 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 6588D8FC1B
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  2 Mar 2009 17:06:08 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n22H68sF042780
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 2 Mar 2009 17:06:08 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n22H67Qh042779;
	Mon, 2 Mar 2009 17:06:07 GMT
	(envelope-from nobody)
Message-Id: <200903021706.n22H67Qh042779@www.freebsd.org>
Date: Mon, 2 Mar 2009 17:06:07 GMT
From: Martin <nakal@web.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: openldap-client-2.4.15 crashes on simple queries
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         132261
>Category:       ports
>Synopsis:       net/openldap24-client: 2.4.15 crashes on simple queries
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    delphij
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 02 17:10:01 UTC 2009
>Closed-Date:    Mon Apr 06 02:00:27 UTC 2009
>Last-Modified:  Mon Apr 06 02:00:27 UTC 2009
>Originator:     Martin
>Release:        -CURRENT
>Organization:
>Environment:
More than one machine:
FreeBSD zelda.local 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Mon Mar  2 01:13:45 CET 2009
FreeBSD blinky 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Thu Jan  8 14:05:37 CET 2009
>Description:

ldapsearch segfaults when using simply queries since update on 2.4.14. openldap-client-2.4.13 does not have this problem. The query on which the client crashes has to use a valid binddn "-D" option with a valid password. First it seems to show the response correctly, but the last line shows a crash "Segmentation fault (core dumped)".

It is quite dangerous, if you use ldap for login (pam_ldap). The crash does not allow to login anymore. That's why I gave it severity "serious".

I suspect the crash somewhere inside liblber-2.4.so.5, but all tracedumps are broken, so I cannot really tell.
>How-To-Repeat:
It's easy to reproduce:

> ldapsearch -D "cn=Manager,dc=home" -W "(uid=*)"

(assuming you have an admin user with binddn "cn=Manager,dc=home" and enter the correct password)

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->delphij 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Mar 2 18:18:40 UTC 2009 
Responsible-Changed-Why:  
Fix synopsis and assign. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=132261 

From: Martin <nakal@web.de>
To: bug-followup@FreeBSD.org, nakal@web.de
Cc:  
Subject: Re: ports/132261: net/openldap24-client: 2.4.15 crashes on simple
 queries
Date: Thu, 5 Mar 2009 16:41:15 +0100

 Hi.
 
 I've tested the latest openldap client on -STABLE. I have the same
 problem there.
 
 FreeBSD 7.1-STABLE #1: Sat Feb 28 19:30:18 CET 2009
 
 Tested against:
 openldap-client-2.4.15
 openldap-client-2.4.15_1
 
 I have a correction for the description above. I wrote "assuming you
 have an admin user" this can be misunderstood. The segmentation fault
 occures after a query for any authenticated user you choose by
 specifying "-D".
 
 I hope it will be fixed soon. This is a real blocker, because I see
 that every port now depends on the new ldap library.
 
 --
 Martin
State-Changed-From-To: open->closed 
State-Changed-By: delphij 
State-Changed-When: Mon Apr 6 02:00:11 UTC 2009 
State-Changed-Why:  
Fixed with OpenLDAP 2.4.16. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=132261 
>Unformatted:
