<p>Thank you for the timely reply.</p>
<p>Sent from my Sony Xperia™ smartphone</p>
<div class="gmail_quote">On Mar 5, 2013 10:18 AM, &quot;James Peach&quot; &lt;<a href="mailto:jpeach@apple.com">jpeach@apple.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 25/02/2013, at 5:53 AM, SaNtosh kuLkarni &lt;<a href="mailto:santosh.yesoptus@gmail.com">santosh.yesoptus@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Hi,<br>
&gt;<br>
&gt; I am trying to develop a DCE-RPC based client which talks to a MSRPC based server running on Windows.<br>
&gt;<br>
&gt; I configured the DCE/RPC build     with --enable gss-negotiate.<br>
&gt;<br>
&gt; The security nego flow on the linux rpc client is as follows<br>
&gt;<br>
&gt;  unsigned32 authn_protocol = rpc_c_authn_gss_negotiate;<br>
&gt;  unsigned32 authn_level = rpc_c_authn_level_pkt_privacy;<br>
&gt;<br>
&gt;   rpc_binding_set_auth_info (hello_IfHandle, (unsigned_char_p_t)principal,<br>
&gt;                         authn_level,<br>
&gt;                         authn_protocol,NULL,<br>
&gt;                         rpc_c_authz_name, &amp;st);<br>
&gt;         if (st != rpc_s_ok) {<br>
&gt;                 dce_error_inq_text(st, error_text, &amp;error_inq_st);<br>
&gt;                 fprintf(stderr, &quot;Cannot set security authorization for server %s: %s\n&quot;, entry_name, error_text);<br>
&gt;         }<br>
&gt;<br>
&gt; 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<br>

<br>
I&#39;m not sure that we ever worked on the GSS mechanism. We did implement NETLOGON and local auth mechs, but you might have to make some changes to implement GSS. I&#39;d be happy to merge any patches ...<br>
<br>
J<br>
<br>
&gt;<br>
&gt;<br>
&gt; [pid: 020951] [time: 000001] [thread: 099547a8] STATE CLIENT ASSOC: 0x9954610 state-&gt;INIT_WAIT event-&gt;REJ_CONF<br>
&gt; [pid: 020951] [time: 000001] [thread: 099547a8]     [file: cnrcvr.c, line: 1259]<br>
&gt; [pid: 020951] [time: 000001] [thread: 099547a8] (rpc__mem_free) type 23 @ 0xb6900468<br>
&gt; [pid: 020951] [time: 000001] [thread: 099547a8]     [file: rpcmem.c, line: 171]<br>
&gt; [pid: 020951] [time: 000001] [thread: 099547a8] STATE CLIENT ASSOC: 0x9954610 new state-&gt;CLOSED<br>
&gt; [pid: 020951] [time: 000001] [thread: 099547a8]     [file: cnrcvr.c, line: 1259]<br>
&gt; [pid: 020951] [time: 000001] [thread: 09919008] CN: call_rep-&gt;0x994e400 assoc-&gt;0x9954610 desc-&gt;0x994e258 presentation negotiation failed st = 16c9a046<br>
&gt; [pid: 020951] [time: 000001] [thread: 09919008]     [file: cnassoc.c, line: 819]<br>
&gt; [pid: 020951] [time: 000001] [thread: 09919008] (rpc__cn_call_start) STATE CLIENT CALL:   0 new state-&gt;CALL_FAILED_DNE<br>
&gt;<br>
&gt;<br>
&gt; I would be grateful if anyone could guide me on this.Thanks!<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Regards,<br>
&gt; Santosh<br>
&gt; _______________________________________________<br>
&gt; dcerpc-dev mailing list<br>
&gt; <a href="mailto:dcerpc-dev@lists.macosforge.org">dcerpc-dev@lists.macosforge.org</a><br>
&gt; <a href="https://lists.macosforge.org/mailman/listinfo/dcerpc-dev" target="_blank">https://lists.macosforge.org/mailman/listinfo/dcerpc-dev</a><br>
<br>
</blockquote></div>