SASL binds

Michael Ströder michael at stroeder.com
Mon Mar 11 12:43:33 CET 2002


Hans Aschauer wrote:
> 
> SASL binds are still on the TODO list for python-ldap.

Yes.

> A few days ago I started experimenting with this topic, and I succeeded 
> in doing SASL binds from python. However, my sasl_bind_s() method for 
> the ldap class is at the moment only a proof of concept and has many 
> shortcomings (works only with the gssapi-method or methods which do not 
> require user interaction,

GSS-API means Kerberos?
Which LDAP server are you using?
What's your motivation for doing SASL binds?

> links to a "private" openldap lib (liblutil.a),

For what reason?

Note that unlike python-ldap 1.x which wrapped LDAP C APIs of different 
vendors python-ldap 2.x is closely tied to OpenLDAP 2.x libs. Therefore it's 
no problem to use everything which is shipped with recent OpenLDAP 2.0.23+ 
nowadays.

 > does not implement interaction callbacks, to name only a
 > few).

Hmm, implementing callbacks is a messy thing anyway. If we can make most 
things without it I'd be glad to follow your approach.

> However, I am not really an experienced C programmer,

Welcome to the club...

> and I think I 
> would need some help with several topics (memory management, how to do 
> callbacks to user-supplied python functions from C, and so on).

Hmm, unfortunately experienced C programmers seem to be rare on this list...

Best bet is that you send your patches to the list and we'll see...

Ciao, Michael.





More information about the python-ldap mailing list