ldap.open() SSL patch

ygormutti at dcc.ufba.br ygormutti at dcc.ufba.br
Sat Apr 17 17:39:44 CEST 2010


I'm a member of GrudeSL (Free Software Development Group) at UFBA  
(Federal University of Bahia). We were trying to integrate our new  
Django site authentication with the existing LDAP server, so we ran  
for python-ldap and I can say it does its job very well (thank you  
very much! :D).

But, we are unable to connect using ldap.open() because our server use  
the non-standardized LDAP over SSL scheme "ldaps", along with LDAPv3.  
Although it worked when we used ldap.initialize(). So I wrote a patch  
[1] that fix this tiny little issue, while mantaining backward  

I hope you find it useful.

[1] - http://pastebin.com/HxtgRAzg

Best regards,

Ygor Mutti (http://icaju.com - @Mamutti)

More information about the python-ldap mailing list