[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: extract response controls after ldap_sasl_interactive_bind_s()



Michael Ströder wrote:
> Michael Ströder wrote:
>> masarati@aero.polimi.it wrote:
>>>> Disclaimer: I'm not a C programmer.
>>>>
>>>> I'd like to evaluate response controls (e.g. ppolicy) also when doing a 
>>>> SASL bind. I'm using python-ldap which in turn uses OpenLDAP C API's
>>>> function ldap_sasl_interactive_bind_s().
>>>
>>> Not sure about that.  In clients/tools/common.c there is an example of
>>> using ldap_sasl_interactive_bind() asynchronously that purposely allows to
>>> extract controls information from the (last) response
>>
>> I'm staring at line 1473 in clients/tools/common.c of RE24 but I simply don't
>> get it: IMHO in opposite to later call of ldap_sasl_bind() (in a separate else
>> clause starting at line 1490) a msgid is not returned by the API and therefore
>> it seems to me that ldap_result() is not and cannot be called in the SASL part.
> 
> Is the ppolicy control supported by the command-line tools if SASL is used?

It seems I would have to use ldap_sasl_interactive_bind() like done in
./servers/slapd/back-ldap/bind.c:1448

Ciao, Michael.