please review encode_assertion_control()

Michael Ströder michael at stroeder.com
Fri Mar 4 14:15:02 CET 2011


Rich Megginson wrote:
> On 03/03/2011 01:28 PM, Michael Ströder wrote:
>> Could somebody please look what's wrong with
>> encode_assertion_control() in
>> Modules/ldapcontrol.c? It seg faults.
>     err =
> ldap_create_assertion_control_value(NULL,assertion_filterstr,&ctrl_val);
> The NULL should be an LDAP* and it must be valid.
> 
> It needs the LDAP* handle because it calls ldap_alloc_ber_with_options()
> to allocate the BER for the control value.

Thanks for the hint. But how can I create a LDAP* handle locally without
having to pass in the connection object as argument?

Ciao, Michael.


More information about the python-ldap mailing list