Displaying 6 results from an estimated 6 matches for "rpccli_lsa_lookup_sid".
Did you mean:
rpccli_lsa_lookup_sids
2020 Oct 10
2
Lookup sid with libsmbclient (invoked from c# on mono)
....so.0)
>
> I didn't find an easy export of LsarLookupSid because in general SID
> resolution is authenticated.
> I read (a lot) the samba source code and I found out many "kind" of lsa
> rpc implementation.
> The main one (and exported symbol on libsmbclient) is
> rpccli_lsa_lookup_sids. (I'm using nm -D)
> I also found dcerpc_lsa_lookup_sids in liblibcli-lsa.3
>
> The problem is by writting c# call, I've to write a lot of stuff and magic
> (called pinvoke) and I'm wasting a lot of time calling some functions,
> before finding out that there is no expor...
2020 Oct 12
2
Lookup sid with libsmbclient (invoked from c# on mono)
...tu:/usr/lib/x86_64-linux-gnu$ nm -D libsmbclient.so.0 |grep
cli_rpc_pipe_open
U cli_rpc_pipe_open_noauth
adiant at ubuntu:/usr/lib/x86_64-linux-gnu$ nm -D libsmbclient.so.0 |grep lsa
U ndr_table_lsarpc
U rpccli_lsa_lookup_names
U rpccli_lsa_lookup_sids
U rpccli_lsa_open_policy
So I need to call rpccli_lsa_open_policy you need struct
rpc_pipe_client *lsa_pipe
(ex:
https://gitlab.com/samba-team/devel/samba/-/blob/master/source3/lib/netapi/localgroup.c
)
This structure is transformed from struct cli_state *cli, into struct
rpc_pip...
2020 Oct 18
1
Lookup sid with libsmbclient (invoked from c# on mono)
...internal static extern int rpccli_lsa_open_policy(IntPtr cli,
IntPtr mem_ctx,
bool sec_qos, uint des_access,
ref policy_handle pol);
[DllImport("libsmbclient.so.0", CharSet = CharSet.Ansi)]
internal static extern int rpccli_lsa_lookup_sids(IntPtr cli,
IntPtr mem_ctx,
ref policy_handle pol,
int num_sids,
byte[] sids,
out SambaTallocHandle pdomains,
out SambaTallocHandle pnames,
out SambaTallocHandle ptypes);
[DllIm...
2006 Apr 25
1
[3.0.20b]connection reset caused winbind to panic
...inbindd(smb_panic+0x19) [0x80da549]
#2 /usr/sbin/winbindd [0x80c720b]
#3 /lib/i686/libc.so.6 [0x42028518]
#4 /usr/sbin/winbindd(cli_receive_trans+0xc0) [0x81051a0]
#5 /usr/sbin/winbindd [0x8136dc1]
#6 /usr/sbin/winbindd(rpc_api_pipe_req_int+0x333) [0x81386e3]
#7 /usr/sbin/winbindd(rpccli_lsa_lookup_sids+0x126) [0x8127046]
#8 /usr/sbin/winbindd(msrpc_sid_to_name+0xd2) [0x8088f72]
#9 /usr/sbin/winbindd [0x807e3df]
#10 /usr/sbin/winbindd(winbindd_lookup_name_by_sid+0x56) [0x807a596]
#11 /usr/sbin/winbindd(winbindd_getgrgid+0x15d) [0x8076cad]
#12 /usr/sbin/winbindd(strftime+0x1599) [0x...
2020 Oct 13
0
Lookup sid with libsmbclient (invoked from c# on mono)
...nm -D libsmbclient.so.0 |grep
> cli_rpc_pipe_open
> U cli_rpc_pipe_open_noauth
> adiant at ubuntu:/usr/lib/x86_64-linux-gnu$ nm -D libsmbclient.so.0 |grep lsa
> U ndr_table_lsarpc
> U rpccli_lsa_lookup_names
> U rpccli_lsa_lookup_sids
> U rpccli_lsa_open_policy
>
> So I need to call rpccli_lsa_open_policy you need struct
> rpc_pipe_client *lsa_pipe
> (ex:
> https://gitlab.com/samba-team/devel/samba/-/blob/master/source3/lib/netapi/localgroup.c
> )
> This structure is transformed from str...
2020 Oct 12
2
Lookup sid with libsmbclient (invoked from c# on mono)
Vincent Le Toux via samba <samba at lists.samba.org> writes:
> Indeed, rpcclient is the program I looked for the first time.
>
> I cannot invoke it in a command line because I have at least 1000 SID to
> resolve
> (I discover them one by one so I'll have to run rpcclient at least 1000
> times)
You can pass multiples SID at a time to these commands. But you would
have