RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1095603 - Any negative error code number reported as Illegal error by ldclt.
Summary: Any negative error code number reported as Illegal error by ldclt.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: 389-ds-base
Version: 7.0
Hardware: x86_64
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Noriko Hosoi
QA Contact: Viktor Ashirov
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-08 06:56 UTC by Amita Sharma
Modified: 2020-09-13 21:05 UTC (History)
3 users (show)

Fixed In Version: 389-ds-base-1.3.4.0-6.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-19 11:42:00 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github 389ds 389-ds-base issues 1130 0 None None None 2020-09-13 21:05:10 UTC
Red Hat Product Errata RHBA-2015:2351 0 normal SHIPPED_LIVE 389-ds-base bug fix and enhancement update 2015-11-19 10:28:44 UTC

Description Amita Sharma 2014-05-08 06:56:14 UTC
Description of problem:
Any -ve error code number reported as Illegal error by ldclt.

Version-Release number of selected component (if applicable):
389-ds-base-1.3.1.6-25.el7.x86_64


How reproducible:
Always

Steps to Reproduce:
1. Perform any OpenLDAP operation with ldclt which should give negative error for example 
/usr/bin/ldclt-bin -h dhcp201-149.englab.pnq.redhat.com -p 34004 -e
esearch -e bindeach -e randomauthid -e randomauthidlow=1 -e
randomauthidhigh=9999 -o mech=DIGEST-MD5 -o authid=loginXXXX -w redhat
-s base -b o=saslstress.com -f uid=modify* -V -q -E 10004 -n 10 -N
20000 -T 1000 -W 2

2. It will give ldclt[12170]: Illegal error number -6 in SASL

Actual results:
ldclt[12170]: Illegal error number -6 in SASL

Expected results:
It should report better error message.

More Info::(By Nathan)
Negative LDAP errors are local (client-side) errors in OpenLDAP.  Here
is how -6 is defined:

--------------------------------------------------------------
#define LDAP_AUTH_UNKNOWN                               (-6)
--------------------------------------------------------------

In mozldap, there were no negative error codes at all.  It might be that
ldclt doesn't expect a negative code, and reports a poor error message
when it encounters it.  This error code could be returned if an unknown
SASL mechanism was attempted (though I haven't confirmed this).

There is a minor ldclt bug in that it should expect that negative error
codes could be encountered.  This code is the culprit:

----------------------------------------------------------------
  /*
   * Update the counters
   */
  if ((err <= 0) || (err >= MAX_ERROR_NB))
  {
    fprintf (stderr, "ldclt[%d]: Illegal error number %d\n", mctx.pid, err);
    fflush (stderr);
    mctx.errorsBad++;
  }
----------------------------------------------------------------

Comment 2 Noriko Hosoi 2014-05-09 20:00:16 UTC
Upstream ticket:
https://fedorahosted.org/389/ticket/47799

Comment 5 Amita Sharma 2015-09-01 09:31:42 UTC
No more illegal error notification, I could see ::
=====================================================
dclt[10280]: Global average rate:   68.80/thr  (  3.82/sec), total:    344
ldclt[10280]: Global number times "no activity" reports: never
ldclt[10280]: Global number of dead threads: 1
ldclt[10280]: Global error -6 (Unknown authentication method) occurs     1 times
Catch SIGINT - exit...
ldclt[10280]: Ending at Tue Sep  1 14:52:11 2015
ldclt[10280]: Exit status 0 - No problem during execution.


[root@dhcp201-167 ~]# rpm -qa | grep 389
389-ds-base-devel-1.3.4.0-14.el7.x86_64
389-ds-base-libs-1.3.4.0-14.el7.x86_64
389-ds-base-debuginfo-1.3.4.0-14.el7.x86_64
389-ds-base-1.3.4.0-14.el7.x86_64

Hence marking bug as VERIFIED.

Comment 6 errata-xmlrpc 2015-11-19 11:42:00 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.

https://rhn.redhat.com/errata/RHBA-2015-2351.html


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