2009-08-04 01:44:46 +04:00
#include "idl_types.h"
import "lsa.idl";
2009-07-28 23:06:11 +04:00
[
uuid("bf09192c-ed60-4928-9dff-d0d7bcb03ed8"),
endpoint("ncalrpc:"),
pointer_default(unique),
version(1.0),
helpstring("winbind parent-child protocol")
]
interface wbint
{
void wbint_Ping(
[in] uint32 in_data,
[out] uint32 *out_data
);
2009-08-04 01:44:46 +04:00
NTSTATUS wbint_LookupSid(
[in] dom_sid *sid,
[out] lsa_SidType *type,
[out,string,charset(UTF8)] char **domain,
[out,string,charset(UTF8)] char **name
);
2009-08-04 15:22:34 +04:00
NTSTATUS wbint_LookupName(
[in,string,charset(UTF8)] char *domain,
[in,string,charset(UTF8)] char *name,
[in] uint32 flags,
[out] lsa_SidType *type,
[out] dom_sid *sid
);
2009-08-04 21:28:59 +04:00
NTSTATUS wbint_Sid2Uid(
[in,unique,string,charset(UTF8)] char *dom_name,
[in] dom_sid *sid,
[out] hyper *uid
);
2009-08-04 21:38:52 +04:00
NTSTATUS wbint_Sid2Gid(
[in,unique,string,charset(UTF8)] char *dom_name,
[in] dom_sid *sid,
[out] hyper *gid
);
2009-08-04 21:52:39 +04:00
NTSTATUS wbint_Uid2Sid(
[in,unique,string,charset(UTF8)] char *dom_name,
[in] hyper uid,
[out] dom_sid *sid
);
2009-08-04 22:19:03 +04:00
NTSTATUS wbint_Gid2Sid(
[in,unique,string,charset(UTF8)] char *dom_name,
[in] hyper gid,
[out] dom_sid *sid
);
2009-08-04 23:23:13 +04:00
typedef [public] struct {
[string,charset(UTF8)] char *acct_name;
[string,charset(UTF8)] char *full_name;
[string,charset(UTF8)] char *homedir;
[string,charset(UTF8)] char *shell;
hyper primary_gid;
dom_sid user_sid;
dom_sid group_sid;
} wbint_userinfo;
NTSTATUS wbint_QueryUser(
[in] dom_sid *sid,
[out] wbint_userinfo *info
);
2009-08-04 23:54:05 +04:00
typedef [public] struct {
uint32 num_sids;
[size_is(num_sids)] dom_sid sids[];
} wbint_SidArray;
typedef [public] struct {
uint32 num_rids;
[size_is(num_rids)] uint32 rids[];
} wbint_RidArray;
NTSTATUS wbint_LookupUserAliases(
[in] wbint_SidArray *sids,
[out] wbint_RidArray *rids
);
2009-08-05 00:07:01 +04:00
NTSTATUS wbint_LookupUserGroups(
[in] dom_sid *sid,
[out] wbint_SidArray *sids
);
2009-07-28 23:06:11 +04:00
}