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

Re: (ITS#6257) libldap: getopt flag to return the SASL username

> masarati@aero.polimi.it wrote:
>>> libldap should be capable of returning SASL username obtained with
>>> sasl_getprop( sasl_context, SASL_USERNAME, ... ) as result of
>>> ldap_get_option()
>> Added to HEAD (LDAP_OPT_X_SASL_USERNAME); please test.  Thanks, p.
> Does it simply return a string like LDAP_OPT_URI,

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.