please review encode_assertion_control()

Michael Ströder michael at stroeder.com
Thu Mar 3 21:28:34 CET 2011


HI!

(Sigh!) I'm not a C programmer.

Could somebody please look what's wrong with encode_assertion_control() in
Modules/ldapcontrol.c? It seg faults.

$ python -c "import ldap;print
repr(ldap.encode_assertion_control('(objectClass=*)'))"
Segmentation fault (core dumped)

You have to set

extra_compile_args = -g -DLIBLDAP_HAS_ASSERTION_CONTROL_FUNC

in setup.cfg and have a fairly recent OpenLDAP 2.4 installation to get it
compiled.

Ciao, Michael.


More information about the python-ldap mailing list