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

extract response controls after ldap_sasl_interactive_bind_s()



HI!

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(). But currently there's no way to extract the
server's response controls. The server I'm testing with is returning the
ppolicy response control and others.

I looked at clients/tools/common.c but it seems to me it also uses
ldap_sasl_interactive_bind_s() and no response controls are extracted.

Do I have to use ldap_get_option(ld,LDAP_OPT_SERVER_CONTROLS) separately? Does
that work?

Ciao, Michael.