[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
extract response controls after ldap_sasl_interactive_bind_s()
- To: "openldap-technical@openldap.org" <openldap-technical@openldap.org>
- Subject: extract response controls after ldap_sasl_interactive_bind_s()
- From: Michael Ströder <michael@stroeder.com>
- Date: Fri, 02 Dec 2011 19:23:17 +0100
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1322850205; l=641; s=domk; d=stroeder.de; h=Content-Transfer-Encoding:Content-Type:Subject:To:MIME-Version:From: Date:X-RZG-CLASS-ID:X-RZG-AUTH; bh=rZfJtPrwqAsubcOEcMqin6XIyic=; b=Pvyqt4gImN3yNsw7fqqDWpMnfSfrOZcCkQrLlcilmzEtR44qg0e3mJZgAs71yhfzkRy /sqIshpjFKdz9kNmBd7QOC63yrV9BMNLS8tsHZgYEHPxPDNA+pPYh98yYp88GyIM9/AG9 kH9QJzGD/G9UbkM8SImrH6p1uT/zVjU2GII=
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0.1) Gecko/20111121 Firefox/8.0.1 SeaMonkey/2.5
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.