<div dir="ltr"><div style>Hi,</div><div style><br></div><div style>I am trying to develop a DCE-RPC based client which talks to a MSRPC based server running on Windows.</div><div style><br></div><div style>I configured the DCE/RPC build     with --enable gss-negotiate.<br>
</div><div style><br></div><div style>The security nego flow on the linux rpc client is as follows</div><div style><br></div><div style><div> unsigned32 authn_protocol = rpc_c_authn_gss_negotiate;</div><div> unsigned32 authn_level = rpc_c_authn_level_pkt_privacy;</div>
<div><br></div><div><div>  rpc_binding_set_auth_info (hello_IfHandle, (unsigned_char_p_t)principal,</div><div>                        authn_level,</div><div>                        authn_protocol,NULL,</div><div>                        rpc_c_authz_name, &amp;st);</div>
<div>        if (st != rpc_s_ok) {</div><div>                dce_error_inq_text(st, error_text, &amp;error_inq_st);</div><div>                fprintf(stderr, &quot;Cannot set security authorization for server %s: %s\n&quot;, entry_name, error_text);</div>
<div>        }</div></div><div><br></div><div style>Is there anything else that need to be done.I have developed a similar windows client  which works fine.But when i do the same security api flow and set the protocol and auth level it fails on linux with the following</div>
<div style><br></div><div style><br></div><div style><div>[pid: 020951] [time: 000001] [thread: 099547a8] STATE CLIENT ASSOC: 0x9954610 state-&gt;INIT_WAIT event-&gt;REJ_CONF</div><div>[pid: 020951] [time: 000001] [thread: 099547a8]     [file: cnrcvr.c, line: 1259]</div>
<div>[pid: 020951] [time: 000001] [thread: 099547a8] (rpc__mem_free) type 23 @ 0xb6900468</div><div>[pid: 020951] [time: 000001] [thread: 099547a8]     [file: rpcmem.c, line: 171]</div><div>[pid: 020951] [time: 000001] [thread: 099547a8] STATE CLIENT ASSOC: 0x9954610 new state-&gt;CLOSED</div>
<div>[pid: 020951] [time: 000001] [thread: 099547a8]     [file: cnrcvr.c, line: 1259]</div><div>[pid: 020951] [time: 000001] [thread: 09919008] CN: call_rep-&gt;0x994e400 assoc-&gt;0x9954610 desc-&gt;0x994e258 presentation negotiation failed st = 16c9a046</div>
<div>[pid: 020951] [time: 000001] [thread: 09919008]     [file: cnassoc.c, line: 819]</div><div>[pid: 020951] [time: 000001] [thread: 09919008] (rpc__cn_call_start) STATE CLIENT CALL:   0 new state-&gt;CALL_FAILED_DNE  </div>
<div><br></div><div><br></div><div style>I would be grateful if anyone could guide me on this.Thanks!</div></div><div><br></div></div><div><br></div><br clear="all"><div><br></div>-- <br><b style="color:rgb(102,102,204)">Regards,<br>
Santosh</b><br>
</div>