[Date Prev][Date Next]
Re: (ITS#6257) libldap: getopt flag to return the SASL username
> firstname.lastname@example.org wrote:
>>> libldap should be capable of returning SASL username obtained with
>>> sasl_getprop( sasl_context, SASL_USERNAME, ... ) as result of
>> Added to HEAD (LDAP_OPT_X_SASL_USERNAME); please test. Thanks, p.
> Does it simply return a string like LDAP_OPT_URI,
> LDAP_OPT_X_TLS_CACERTFILE etc.?
It returns whatever returned by sasl_getprop(); it should be a pointer to
a zero-terminated string within the SASL context (you don't have to free
it, but it may be invalidated when the context is destroyed).
See ITS#6260 about documenting the behavior with these options :) Note
that SASL documentation is itself relatively poor in this area. I could
infer the above from code samples 'round, for which is which.