<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, "James Peach" <<a href="mailto:jpeach@apple.com">jpeach@apple.com</a>> 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 <<a href="mailto:santosh.yesoptus@gmail.com">santosh.yesoptus@gmail.com</a>> wrote:<br>
<br>
> Hi,<br>
><br>
> I am trying to develop a DCE-RPC based client which talks to a MSRPC based server running on Windows.<br>
><br>
> I configured the DCE/RPC build with --enable gss-negotiate.<br>
><br>
> The security nego flow on the linux rpc client is as follows<br>
><br>
> unsigned32 authn_protocol = rpc_c_authn_gss_negotiate;<br>
> unsigned32 authn_level = rpc_c_authn_level_pkt_privacy;<br>
><br>
> rpc_binding_set_auth_info (hello_IfHandle, (unsigned_char_p_t)principal,<br>
> authn_level,<br>
> authn_protocol,NULL,<br>
> rpc_c_authz_name, &st);<br>
> if (st != rpc_s_ok) {<br>
> dce_error_inq_text(st, error_text, &error_inq_st);<br>
> fprintf(stderr, "Cannot set security authorization for server %s: %s\n", entry_name, error_text);<br>
> }<br>
><br>
> 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'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'd be happy to merge any patches ...<br>
<br>
J<br>
<br>
><br>
><br>
> [pid: 020951] [time: 000001] [thread: 099547a8] STATE CLIENT ASSOC: 0x9954610 state->INIT_WAIT event->REJ_CONF<br>
> [pid: 020951] [time: 000001] [thread: 099547a8] [file: cnrcvr.c, line: 1259]<br>
> [pid: 020951] [time: 000001] [thread: 099547a8] (rpc__mem_free) type 23 @ 0xb6900468<br>
> [pid: 020951] [time: 000001] [thread: 099547a8] [file: rpcmem.c, line: 171]<br>
> [pid: 020951] [time: 000001] [thread: 099547a8] STATE CLIENT ASSOC: 0x9954610 new state->CLOSED<br>
> [pid: 020951] [time: 000001] [thread: 099547a8] [file: cnrcvr.c, line: 1259]<br>
> [pid: 020951] [time: 000001] [thread: 09919008] CN: call_rep->0x994e400 assoc->0x9954610 desc->0x994e258 presentation negotiation failed st = 16c9a046<br>
> [pid: 020951] [time: 000001] [thread: 09919008] [file: cnassoc.c, line: 819]<br>
> [pid: 020951] [time: 000001] [thread: 09919008] (rpc__cn_call_start) STATE CLIENT CALL: 0 new state->CALL_FAILED_DNE<br>
><br>
><br>
> I would be grateful if anyone could guide me on this.Thanks!<br>
><br>
><br>
><br>
><br>
> --<br>
> Regards,<br>
> Santosh<br>
> _______________________________________________<br>
> dcerpc-dev mailing list<br>
> <a href="mailto:dcerpc-dev@lists.macosforge.org">dcerpc-dev@lists.macosforge.org</a><br>
> <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>