PATCH samba cache and read-ahead
Amin Azez
azez at ufomechanic.net
Fri Jan 11 15:09:52 GMT 2008
* Jelmer Vernooij wrote, On 11/01/08 15:08:
> Hi Amin,
>
> Am Freitag, den 11.01.2008, 14:46 +0000 schrieb Amin Azez:
>
>>
>> This suggests to me that the users credentials can be used when opening
>> the rpc pipe, although I'm not sure if it is any better that using the
>> machine credentials, as I will be recovering and passing the clients tid
>> in the context of any rpc calls anyway.
>>
> You can either specify user credentials or machine credentials. See also
> cli_credentials_set_machine().
>
>
>> Please could you advise me on the different rpc pipe open calls. I will
>> want to be doing syncronous and asyncronous calls in both directions?
>>
> Basically, if you need to connect synchronously, use
> dcerpc_pipe_connect() and use
> dcerpc_pipe_connect_send()/dcerpc_pipe_connect_recv() when you need to
> connect asynchronously. There is also dcerpc_pipe_connect_b() (and
> matching async functions) which allows you to specify a binding struct
> rather than a binding string.
>
> Cheers,
>
> Jelmer
>
>
More information about the samba-technical
mailing list