Displaying 4 results from an estimated 4 matches for "rpcwrapper".
Did you mean:
nicwrapper
2020 Oct 12
2
Lookup sid with libsmbclient (invoked from c# on mono)
...libsmbclient
>
> Thinking about Smb_negox for example. I cannot just call structure->member
> because I'll to translate all structure.
> Working with pointer (IntPtr in c#) is much simpler.
You can write a very simple C wrapper and call the wrapper from C#.
So you would have:
rpcwrapper.c:
void* init_connection(const char *user, const char *pw)
{
// establish connection and return handle
}
const char* name_to_sid(void *con, const char *name)
{
// use con to resolve and return sid
}
const char* sid_to_name(void *con, const char...
2020 Oct 12
0
Lookup sid with libsmbclient (invoked from c# on mono)
...gt; structure->member
>
> > because I'll to translate all structure.
>
> > Working with pointer (IntPtr in c#) is much simpler.
>
>
>
> You can write a very simple C wrapper and call the wrapper from C#.
>
>
>
> So you would have:
>
>
>
> rpcwrapper.c:
>
> void* init_connection(const char *user, const char *pw)
>
> {
>
> // establish connection and return handle
>
> }
>
>
>
> const char* name_to_sid(void *con, const char *name)
>
> {
>
> // use con to resolve a...
2020 Oct 12
2
Lookup sid with libsmbclient (invoked from c# on mono)
Rowland penny via samba <samba at lists.samba.org> writes:
> I have no idea just what you are hoping to achieve, but it is seemingly
> possible without authentication as 'wbinfo -n ACCOUNT_NAME' returns the
> accounts SID. So try looking at the wbinfo code.
wbinfo is talking to winbind which itself is talking to the AD. In this
scenario the client previously joined
2020 Oct 12
2
Lookup sid with libsmbclient (invoked from c# on mono)
...to translate all structure.
>>
>> > Working with pointer (IntPtr in c#) is much simpler.
>>
>>
>>
>> You can write a very simple C wrapper and call the wrapper from C#.
>>
>>
>>
>> So you would have:
>>
>>
>>
>> rpcwrapper.c:
>>
>> void* init_connection(const char *user, const char *pw)
>>
>> {
>>
>> // establish connection and return handle
>>
>> }
>>
>>
>>
>> const char* name_to_sid(void *con, const char *name)
>>...