On Fri, Oct 28, 2011 at 08:30:48AM -0700, Quanah Gibson-Mount wrote:
> Reading the code in libraries/libldap/sasl.c, specifically the
> function ldap_sasl_bind_s. This is from OpenLDAP 2.1.30. Note that
> ldap_result2error is still called after ldap_parse_sasl_bind_result.
Use of a function internally in OpenLDAP does not constitute an
endorsement of that function as a public interface. If the function
is deprecated we should not use it. We have a hard-enough time getting
consistent behaviour from the public interface.
The more complicated ldap_parse_result() function is, I believe,
what they expect us to use. For some reason sometime back around
OpenLDAP 2.1 they decided to deprecate many of the simple (common
use case) API entries in favour of more complex general case
interfaces (which with the right set of NULL arguments and result
arguments provide a superset of the desired information) Can't say
I agree with making the simple things difficult.
--
Viktor.