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

Re: setting max ssf with ldap_set_option

On Mon, Aug 15, 2011 at 4:15 PM, Howard Chu <hyc@symas.com> wrote:
> Ken Dreyer wrote:
>> sasl_ssf_t max_ssf = 0;
>> printf( "setting max ssf to %d\n", max_ssf );
>> ldap_set_option(ld, LDAP_OPT_X_SASL_SSF_MAX,&max_ssf)
>> Subsequent ldap_get_option() calls show that the value is not
>> changing, as does the output when I bind with
>> ldap_sasl_interactive_bind_s(). I would at the very least expect
>> ldap_set_option() to return something other than LDAP_OPT_SUCCESS
>> here. Am I hitting a bug in OpenLDAP, or am I really off track ? Â:)
> Read the ldap_get_option(3) manpage. You're using the wrong variable type.

I tried using ber_len_t instead of sasl_ssf_t, but the problem
persisted. I did some digging with git-bisect between 2.4.23 and
2.4.24, and problem first shows up with
769083f84816a380a4ae9bb48ab55631ff596751 .

Quanah's suggestion of testing with 2.4.26 was a good one, because the
problem is solved in this version. Thank you for your help!

- Ken