Bug 490343

Summary: possible bug for python-ldap on RHEL 5.3 x86_64 (code works on i386)
Product: Red Hat Enterprise Linux 5 Reporter: Zhang Huangbin <michaelbibby>
Component: python-ldapAssignee: Matthew Barnes <mbarnes>
Status: CLOSED WONTFIX QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: medium Docs Contact:
Priority: low    
Version: 5.0CC: dspurek, michaelbibby, p.mayers, yasuma
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
URL: http://code.google.com/p/iredmail/
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-02 13:21:57 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
fix this bug none

Description Zhang Huangbin 2009-03-15 14:38:15 UTC
Strange issue: Sample code (from python-ldap-2.3.6/Demo/page_control.py) works on RHEL 5.3 i386, but failed on RHEL 5.3 x86_64. It seems it's a platform depended bug.

Below is error msg:

----
Traceback (most recent call last):
  File "1.py", line 23, in ?
    serverctrls=[lc]
  File "/usr/lib/python2.4/site-packages/python_ldap-2.3.5-py2.4-linux-x86_64.egg/ldap/ldapobject.py", line 495, in search_ext
    EncodeControlTuples(serverctrls),
  File "/usr/lib/python2.4/site-packages/python_ldap-2.3.5-py2.4-linux-x86_64.egg/ldap/controls.py", line 110, in EncodeControlTuples
    result = [
  File "/usr/lib/python2.4/site-packages/python_ldap-2.3.5-py2.4-linux-x86_64.egg/ldap/controls.py", line 45, in getEncodedTuple
    return (self.controlType,self.criticality,self.encodeControlValue(self.controlValue))
  File "/usr/lib/python2.4/site-packages/python_ldap-2.3.5-py2.4-linux-x86_64.egg/ldap/controls.py", line 78, in encodeControlValue
    return _ldap.encode_page_control(size,cookie)
ldap.ENCODING_ERROR
----

My env:

OS: RHEL 5.3, x86_64
Python: python-2.4.3-24.el5 (shipped within RHEL)
python-ldap: 2.2.0-2.1 (shippd within RHEL)
openldap: 2.3.43-3.el5 (shipped within RHEL)

Comment 1 TAKEDA Yasuma 2010-02-20 11:50:20 UTC
This bug is fixed in upstream.

http://www.mail-archive.com/python-ldap-dev@lists.sourceforge.net/msg00458.html

I'll atache a patch.

Comment 2 TAKEDA Yasuma 2010-02-20 11:51:06 UTC
Created attachment 395245 [details]
fix this bug

Comment 3 Phil Mayers 2011-11-28 11:22:17 UTC
This bug is still present in RHEL 5.7 - the 64 bit bugs referenced at the mailing list post above still prevent use of LDAP controls on 64-bit platforms.

Can we get the bug acknowledged, at least?

Comment 4 RHEL Program Management 2013-05-01 06:55:16 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.

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

Comment 5 RHEL Program Management 2014-03-07 13:53:21 UTC
This bug/component is not included in scope for RHEL-5.11.0 which is the last RHEL5 minor release. This Bugzilla will soon be CLOSED as WONTFIX (at the end of RHEL5.11 development phase (Apr 22, 2014)). Please contact your account manager or support representative in case you need to escalate this bug.

Comment 6 RHEL Program Management 2014-06-02 13:21:57 UTC
Thank you for submitting this request for inclusion in Red Hat Enterprise Linux 5. We've carefully evaluated the request, but are unable to include it in RHEL5 stream. If the issue is critical for your business, please provide additional business justification through the appropriate support channels (https://access.redhat.com/site/support).