Bug 743781

Summary: ldapsearch crashes with invalid prameters
Product: Red Hat Enterprise Linux 6 Reporter: Dmitri Pal <dpal>
Component: openldapAssignee: Jan Vcelak <jvcelak>
Status: CLOSED ERRATA QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.1CC: dspurek, jplans, jvcelak, tsmetana
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openldap-2.4.23-21.el6 Doc Type: Bug Fix
Doc Text:
- mutually exclusive options "-w" and "-W" were passed to any OpenLDAP client tools - the tool crashes with assertion error - applied upstream fix - the client tools refuse to start if mutually exclusive options "-w" and "-W" are passed on the command line
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-20 07:29:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
verified upstream patch none

Description Dmitri Pal 2011-10-06 02:04:58 UTC
Description of problem:

ldapsearch -D "cn=Directory Manager" -b "dc=dpal,dc=redhat,dc=com" -w "password" -W


Version-Release number of selected component (if applicable):
Name        : openldap
Arch        : x86_64
Version     : 2.4.23
Release     : 19.el6


How reproducible:
Always

Steps to Reproduce:
1. Run the command above with real password
  
Actual results:
ldapsearch: ../../../clients/tools/common.c:1363: tool_bind: Assertion `passwd.bv_val == ((void *)0) && passwd.bv_len == 0' failed.
Aborted (core dumped)


Expected results:
mismatch or arguments is detected and -W option is either ignored or error is returned.

Additional info:

Comment 3 Jan Vcelak 2011-10-06 12:03:31 UTC
Created attachment 526685 [details]
verified upstream patch

Comment 4 RHEL Program Management 2011-10-07 16:01:57 UTC
Since RHEL 6.2 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.

Comment 9 Jan Vcelak 2012-03-01 10:56:54 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
- mutually exclusive options "-w" and "-W" were passed to any OpenLDAP client tools
- the tool crashes with assertion error
- applied upstream fix
- the client tools refuse to start if mutually exclusive options "-w" and "-W" are passed on the command line

Comment 11 errata-xmlrpc 2012-06-20 07:29:06 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2012-0899.html