ldap.ENCODING_ERROR when trying to use SimplePageResultsControl

Michael Ströder michael at stroeder.com
Mon Mar 16 14:33:26 CET 2009


Zhang Huangbin wrote:
> Michael Ströder wrote:
>> Could somebody with more knowledge of C programming please review
>> function encode_rfc2696() in Modules/ldapcontrol.c?
>>
>> The following var declaration could be problematic on 64-bit systems:
>>
>>     unsigned long size;
>>
>> Another issue could be in decode_rfc2696() (which is not yet reached if
>> encode_rfc2696() fails):
>>
>>     unsigned long count;
> 
> I asked friend and he suggests me change them to:
> 
> unsigned long size; => unsigned int size;
> unsigned long count; => unsigned int count;
> 
> Re-compile and install, but it raises the same error.

I guess both is platform-dependent and hence the error.

Do you see any compiler warnings during build of python-ldap? Can you
please send the output?

Ciao, Michael.



More information about the python-ldap mailing list