Hi

On 3 February 2011 18:16, Rich Megginson <[email protected]> wrote:
> On 02/03/2011 04:34 AM, Michael Wood wrote:
>> Hi
>>
>> I'm trying to do a search against Samba 4's LDAP server and it works,
>> but the bind and search are both successful, everything hangs when I
>> try to unbind from the LDAP server.  If anyone could enlighten me I
>> would be grateful.
>>
>> I've run into the same issue on various different Linux machines with
>> a range of OpenLDAP and python-ldap versions, but it seems to work
>> fine on a Mac running Leopard.
>>
>> e.g. Ubuntu Lucid Lynx with libldap2-dev version 2.4.21-0ubuntu5.3 and
>> python-ldap 2.3.10-1ubuntu1.
>>
>> I've also tried upgrading python-ldap to 2.3.12, but that does not
>> seep to have helped.
> Try enabling ldap debug logging - before the first call to
> ldap.initialize, add this:
> ldap.set_option(ldap.OPT_DEBUG_LEVEL, 1)

Thanks for the suggestion.  I'll give it a try tomorrow.

In the mean time, someone pointed me at this:

http://www.openldap.org/its/index.cgi/Software%20Bugs?id=6673&selectid=6673&usearchives=1

It did not seem to match my situation because it talks about broken
TCP connections: "When a network connection to the LDAP server fails
(is severed with iptables in my set-up)"

But I thought it was worth a try to recompile OpenLDAP and link with
OpenSSL instead of GnuTLS.

After doing that, the problem went away!

So this seems not to have anything to do with python-ldap.

-- 
Michael Wood <[email protected]>

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Python-LDAP-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev

Reply via email to