<div dir="ltr"><div class="gmail_extra">Hi,</div><div class="gmail_extra">I installed cyrus-sasl-2.1.26</div><div class="gmail_extra">







<p class="gmail-p1">    rc = <span class="gmail-s1">sasl_client_new</span>(service_name, <span class="gmail-s2">/* The service we are using*/</span></p>
<p class="gmail-p1">        host_name_.<span class="gmail-s1">c_str</span>(),</p>
<p class="gmail-p2"><span class="gmail-s3">        </span><span class="gmail-s4">NULL</span><span class="gmail-s3">, </span><span class="gmail-s4">NULL</span><span class="gmail-s3">, </span>/* Local and remote IP address strings</p>
<p class="gmail-p2">                          (NULL disables mechanisms which require this info)*/</p>
<p class="gmail-p2"><span class="gmail-s3">        </span><span class="gmail-s4">NULL</span><span class="gmail-s3">, </span>/*connection-specific <span class="gmail-s1">callbacks</span>*/</p>
<p class="gmail-p2"><span class="gmail-s3">        0 </span>/*security flags*/<span class="gmail-s3">, &</span><span class="gmail-s5">sconn_</span><span class="gmail-s3">);</span></p><p class="gmail-p1">    <span class="gmail-s1">sasl_security_properties_t</span> *props = <span class="gmail-s2">new</span> <span class="gmail-s1">sasl_security_properties_t</span>();</p><p class="gmail-p1">    ::<span class="gmail-s1">memset</span>(props, 0, <span class="gmail-s2">sizeof</span>(<span class="gmail-s1">sasl_security_properties_t</span>));</p><p class="gmail-p1">    props-><span class="gmail-s1">max_ssf</span> = 2;</p><p class="gmail-p2"><span class="gmail-s3">










</span></p><p class="gmail-p1">    <span class="gmail-s1">sasl_setprop</span>(<span class="gmail-s3">sconn_</span>, <span class="gmail-s1">SASL_SEC_PROPS</span>, (<span class="gmail-s2">void</span> *)props);</p><p class="gmail-p1">







</p><p class="gmail-p1">    <span class="gmail-s1">const</span> <span class="gmail-s1">char</span> *mechusing, *mechlist = <span class="gmail-s2">"GSSAPI"</span>;</p><p class="gmail-p1"><span class="gmail-s1">      </span><span class="gmail-s2">currentReturnCode</span><span class="gmail-s1"> = </span><span class="gmail-s3">sasl_client_start</span><span class="gmail-s1">(</span><span class="gmail-s2">sconn_</span><span class="gmail-s1">, </span>/* the same context from above */</p><p class="gmail-p1"><span class="gmail-s1">           mechlist, </span>/* the list of mechanisms</p><p class="gmail-p1">            from the server */</p><p class="gmail-p2">            <span class="gmail-s4">NULL</span>, <span class="gmail-s5">/* filled in if an</span></p><p class="gmail-p1">            interaction is needed */</p><p class="gmail-p1"><span class="gmail-s1">            &out, </span>/* filled in on success */</p><p class="gmail-p1"><span class="gmail-s1">            &outlen, </span>/* filled in on success */</p><p class="gmail-p1">














</p><p class="gmail-p2">            &mechusing);</p><p class="gmail-p2">Return value from <span class="gmail-s1">sasl_client_new</span>() was <span style="text-decoration:underline;font-family:monaco;font-size:11px">SASL_OK</span></p>







<p class="gmail-p2">The return value from <span class="gmail-s1" style="font-family:monaco;font-size:11px">sasl_client_start</span><span style="font-family:monaco;font-size:11px">() was -4.</span></p><p class="gmail-p2">Can someone tell me whether I missed any parameter(s) ?</p>







</div></div>