_ldap problem and current resolution. -- found api change

Joe Little jlittle at open-it.org
Tue Oct 2 18:40:51 CEST 2001


Sorry. I _will try_ to ascertain when this broke. I didn't mean to add 
the "not". Looking at the change log, it would appear that 2.0.12 is the 
likely culprit, as very extraneous files were removed. More 
specifically, one of the last lines is "Removed -lldap UFN search 
support".

Michael, does Python-LDAP expect this to be there? It might be in the 
headers still and so is included (since python-ldap is mostly an 
openldap 1.x beast).

Also, this could very well be my fault since I am not CVS-current. 
However, Christian has already attempted to build against such. Again, I 
suspect some lingering requirement/inclusion in the python-ldap code. 
Still searching..


On Tuesday, October 2, 2001, at 09:32 AM, Joe Little wrote:

> Early analysis of the problem:
>
> OpenLDAP 2.0.11 does not exhibit this problem. The only other newer 
> versions of OpenLDAP that have been packaged by Open-IT are 2.0.14 and 
> 2.0.15.
>
> This likely means an API change in OpenLDAP that is subtle. I rebuilt 
> my RPMs against 2.0.15 and I still see the problem Christian Wiese 
> noted. However, regardless of OpenLDAP built against, the python-ldap 
> module works as long as the openldap 2.0.11 libraries are present. I 
> will not ascertain when this broke post 2.0.11. Likely it means that 
> python-ldap itself needs to address this condition, as it _currently_ 
> appears to be unrelated to the packaging. I of course may still be 
> wrong on that note.
>
>
> On Tuesday, October 2, 2001, at 09:12 AM, Christian Wiese wrote:
>
>> Hi,
>>
>> thank you for your reply and support.
>> In the readme file the module is imported with
>>
>>>>> import _ldap
>>
>> but if I try
>>
>>>>> import ldap
>>
>> I get the a similar error message.
>>
>> -----------------------------------------------
>>
>>>>> import ldap
>> Traceback (innermost last):
>>   File "<stdin>", line 1, in ?
>>   File "/usr/lib/python1.5/site-packages/python-ldap/ldap.py", line 2, 
>> in ?
>>     from _ldap import __version__
>> ImportError: /usr/lib/python1.5/site-packages/_ldapmodule.so: 
>> undefined symbol: ldap_ufn_setfilter
>>>>>
>>
>> ------------------------------------------------
>>
>> Greetings,
>>
>> Christian
>>
>> Am Tuesday 02 October 2001 17:57 schrieb jmlittle at mac.com:
>>> I'll look into this immediately. I also hate to bring up a dead horse,
>>> but are we supposed to import ldap or _ldap?
>>>
>>> On Tuesday, October 2, 2001, at 04:09 AM, Christian Wiese wrote:
>>>> Hi,
>>>>
>>>> I want to write some python apps for accessing our LDAP server 
>>>> (OpenLDAP
>>>> 2.0.15 on RedHat 7.1), but I've problems importing the _ldap module.
>>>> I'm using the latest module from Joe Little, which compiles well with
>>>> OpenLDAP 2.0.15
>>>>
>>>> This is the error message I get from python:
>>>>
>>>> 


More information about the python-ldap mailing list