search for: rpccli_lsa_open_policy

Displaying 4 results from an estimated 4 matches for "rpccli_lsa_open_policy".

2020 Oct 12
2
Lookup sid with libsmbclient (invoked from c# on mono)
...bclient.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_pipe_client *rpccli; you may call cli_rpc_pip...
2020 Oct 13
0
Lookup sid with libsmbclient (invoked from c# on mono)
...e_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_pipe_cl...
2020 Oct 18
1
Lookup sid with libsmbclient (invoked from c# on mono)
...RPCTable table, out IntPtr presult); internal struct policy_handle { public UInt32 handle_type; public Guid uuid; } [DllImport("libsmbclient.so.0", CharSet = CharSet.Ansi)] 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...
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