Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 836386 - slapi_ldap_bind() doesn't check bind results
slapi_ldap_bind() doesn't check bind results
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: 389-ds-base (Show other bugs)
6.4
Unspecified Unspecified
medium Severity unspecified
: rc
: ---
Assigned To: Rich Megginson
Sankar Ramalingam
:
: 836385 (view as bug list)
Depends On:
Blocks: 856089
  Show dependency treegraph
 
Reported: 2012-06-28 17:44 EDT by Nathan Kinder
Modified: 2013-02-28 11:29 EST (History)
2 users (show)

See Also:
Fixed In Version: 389-ds-base-1.2.11.12-1.el6
Doc Type: Bug Fix
Doc Text:
Cause: Internally, we only checked the bind result, if LDAP controls were passed in for internal connections Consequence: We would report success regardless if there was an error. Fix: Always check the result, regardless if control were passed in or not. Result: Correct bind result
Story Points: ---
Clone Of:
: 856089 (view as bug list)
Environment:
Last Closed: 2013-02-21 03:19:58 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2013:0503 normal SHIPPED_LIVE Moderate: 389-ds-base security, bug fix, and enhancement update 2013-02-21 03:18:44 EST

  None (edit)
Description Nathan Kinder 2012-06-28 17:44:49 EDT
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/389/ticket/399

The slapi_ldap_bind() function does not properly check the bind operation results.  It currently only calls ldap_parse_result() if returnedctrls was passed in by the caller.  We need to call ldap_parse_result() even if we don't need to get the returned controls, as it's how we get the LDAP response code for the BIND operation.  With the current code, slapi_ldap_bind() will end up returning 0 for a failed BIND operation if returnedctrls is not passed in.
Comment 1 Nathan Kinder 2012-07-02 16:14:38 EDT
*** Bug 836385 has been marked as a duplicate of this bug. ***
Comment 2 Jenny Galipeau 2012-07-09 15:20:48 EDT
Please add steps to reproduce this bug
Comment 3 mreynolds 2012-08-24 11:53:10 EDT
Created testcase (bug836386()) in mmrepl/accept/ as replication uses slapi_ldap_bind.
Comment 5 Jenny Galipeau 2013-01-14 10:31:39 EST
verified ::

200|0 24 17:32:28|TP Start
520|0 24 16496 1 1|
520|0 24 16496 1 2|bug836386 - make sure slapi_ldap_bind complains when an invalid password is used
520|0 24 16496 1 3|bug836386 Restore agreement for S2->S1: SIMPLE to SSL
520|0 24 16496 1 4|bug836386 Restored
520|0 24 16496 1 5|slapi_ldap_bind correctly indentified the failure, nsDS5ReplicaCredentials is correctly restored to secret12, Return code-0
520|0 24 16496 1 6|TestCase [bug836386] result-> [PASS]
220|0 24 0 17:32:41|PASS

version :: 389-ds-base-1.2.11.15-8.el6
Comment 6 errata-xmlrpc 2013-02-21 03:19:58 EST
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-2013-0503.html

Note You need to log in before you can comment on or make changes to this bug.