1998-03-12 00:11:04 +03:00
/*
Unix SMB / Netbios implementation .
Version 1.9 .
SMB parameters and setup
Copyright ( C ) Andrew Tridgell 1992 - 1997
Copyright ( C ) Luke Kenneth Casson Leighton 1996 - 1997
Copyright ( C ) Paul Ashton 1997
This program is free software ; you can redistribute it and / or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 2 of the License , or
( at your option ) any later version .
This program is distributed in the hope that it will be useful ,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
GNU General Public License for more details .
You should have received a copy of the GNU General Public License
along with this program ; if not , write to the Free Software
Foundation , Inc . , 675 Mass Ave , Cambridge , MA 0213 9 , USA .
*/
# ifndef _RPC_LSA_H /* _RPC_LSA_H */
# define _RPC_LSA_H
# include "rpc_misc.h"
enum SID_NAME_USE
{
2001-03-11 03:32:10 +03:00
SID_NAME_USE_NONE = 0 , /* NOTUSED */
1998-11-10 22:05:00 +03:00
SID_NAME_USER = 1 , /* user */
1998-03-12 00:11:04 +03:00
SID_NAME_DOM_GRP = 2 , /* domain group */
1998-11-10 22:05:00 +03:00
SID_NAME_DOMAIN = 3 , /* domain: don't know what this is */
SID_NAME_ALIAS = 4 , /* local group */
SID_NAME_WKN_GRP = 5 , /* well-known group */
SID_NAME_DELETED = 6 , /* deleted account: needed for c2 rating */
SID_NAME_INVALID = 7 , /* invalid account */
SID_NAME_UNKNOWN = 8 /* oops. */
1998-03-12 00:11:04 +03:00
} ;
2001-09-13 11:15:35 +04:00
/* Opcodes available on this pipe */
1998-06-09 06:26:26 +04:00
# define LSA_CLOSE 0x00
2001-09-13 11:15:35 +04:00
# define LSA_DELETE 0x01
2001-09-14 04:20:38 +04:00
# define LSA_ENUM_PRIVS 0x02
2001-09-13 11:15:35 +04:00
# define LSA_QUERYSECOBJ 0x03
# define LSA_SETSECOBJ 0x04
# define LSA_CHANGEPASSWORD 0x05
2001-07-09 22:32:54 +04:00
# define LSA_OPENPOLICY 0x06
1998-03-12 00:11:04 +03:00
# define LSA_QUERYINFOPOLICY 0x07
2001-09-13 11:15:35 +04:00
# define LSA_SETINFOPOLICY 0x08
# define LSA_CLEARAUDITLOG 0x09
# define LSA_CREATEACCOUNT 0x0a
2001-07-09 22:32:54 +04:00
# define LSA_ENUM_ACCOUNTS 0x0b
2001-09-13 11:15:35 +04:00
# define LSA_CREATETRUSTDOM 0x0c
1998-03-12 00:11:04 +03:00
# define LSA_ENUMTRUSTDOM 0x0d
1998-06-09 06:26:26 +04:00
# define LSA_LOOKUPNAMES 0x0e
1998-03-12 00:11:04 +03:00
# define LSA_LOOKUPSIDS 0x0f
2001-09-13 11:15:35 +04:00
# define LSA_CREATESECRET 0x10
# define LSA_OPENACCOUNT 0x11
# define LSA_ENUMPRIVSACCOUNT 0x12
# define LSA_ADDPRIVS 0x13
# define LSA_REMOVEPRIVS 0x14
# define LSA_GETQUOTAS 0x15
# define LSA_SETQUOTAS 0x16
# define LSA_GETSYSTEMACCOUNT 0x17
# define LSA_SETSYSTEMACCOUNT 0x18
# define LSA_OPENTRUSTDOM 0x19
# define LSA_QUERYTRUSTDOM 0x1a
# define LSA_SETINFOTRUSTDOM 0x1b
# define LSA_OPENSECRET 0x1c
# define LSA_SETSECRET 0x1d
# define LSA_QUERYSECRET 0x1e
# define LSA_LOOKUPPRIVVALUE 0x1f
# define LSA_LOOKUPPRIVNAME 0x20
2001-07-09 22:32:54 +04:00
# define LSA_PRIV_GET_DISPNAME 0x21
2001-09-13 11:15:35 +04:00
# define LSA_DELETEOBJECT 0x22
# define LSA_ENUMACCTWITHRIGHT 0x23
# define LSA_ENUMACCTRIGHTS 0x24
# define LSA_ADDACCTRIGHTS 0x25
# define LSA_REMOVEACCTRIGHTS 0x26
# define LSA_QUERYTRUSTDOMINFO 0x27
# define LSA_SETTRUSTDOMINFO 0x28
# define LSA_DELETETRUSTDOM 0x29
# define LSA_STOREPRIVDATA 0x2a
# define LSA_RETRPRIVDATA 0x2b
2001-07-09 22:32:54 +04:00
# define LSA_OPENPOLICY2 0x2c
2001-06-30 03:12:55 +04:00
# define LSA_UNK_GET_CONNUSER 0x2d /* LsaGetConnectedCredentials ? */
1998-03-12 00:11:04 +03:00
1999-12-13 16:27:58 +03:00
/* XXXX these are here to get a compile! */
# define LSA_LOOKUPRIDS 0xFD
# define LSA_MAX_GROUPS 96
2000-09-06 05:06:39 +04:00
# define LSA_MAX_SIDS 128
1998-03-12 00:11:04 +03:00
/* DOM_QUERY - info class 3 and 5 LSA Query response */
typedef struct dom_query_info
{
uint16 uni_dom_max_len ; /* domain name string length * 2 */
uint16 uni_dom_str_len ; /* domain name string length * 2 */
uint32 buffer_dom_name ; /* undocumented domain name string buffer pointer */
uint32 buffer_dom_sid ; /* undocumented domain SID string buffer pointer */
UNISTR2 uni_domain_name ; /* domain name (unicode string) */
DOM_SID2 dom_sid ; /* domain SID */
} DOM_QUERY ;
/* level 5 is same as level 3. we hope. */
typedef DOM_QUERY DOM_QUERY_3 ;
typedef DOM_QUERY DOM_QUERY_5 ;
2001-01-25 05:35:50 +03:00
/* level 2 is auditing settings */
typedef struct dom_query_2
{
uint32 auditing_enabled ;
uint32 count1 ; /* usualy 7, at least on nt4sp4 */
uint32 count2 ; /* the same */
uint32 * auditsettings ;
} DOM_QUERY_2 ;
/* level 6 is server role information */
typedef struct dom_query_6
{
uint16 server_role ; /* 2=backup, 3=primary */
} DOM_QUERY_6 ;
1998-09-30 23:09:57 +04:00
typedef struct seq_qos_info
{
uint32 len ; /* 12 */
uint16 sec_imp_level ; /* 0x02 - impersonation level */
uint8 sec_ctxt_mode ; /* 0x01 - context tracking mode */
uint8 effective_only ; /* 0x00 - effective only */
uint32 unknown ; /* 0x2000 0000 - not known */
} LSA_SEC_QOS ;
1998-03-12 00:11:04 +03:00
typedef struct obj_attr_info
{
uint32 len ; /* 0x18 - length (in bytes) inc. the length field. */
uint32 ptr_root_dir ; /* 0 - root directory (pointer) */
uint32 ptr_obj_name ; /* 0 - object name (pointer) */
uint32 attributes ; /* 0 - attributes (undocumented) */
uint32 ptr_sec_desc ; /* 0 - security descriptior (pointer) */
1998-09-30 23:09:57 +04:00
uint32 ptr_sec_qos ; /* security quality of service */
LSA_SEC_QOS * sec_qos ;
1998-03-12 00:11:04 +03:00
} LSA_OBJ_ATTR ;
/* LSA_Q_OPEN_POL - LSA Query Open Policy */
typedef struct lsa_q_open_pol_info
{
1998-10-15 09:47:29 +04:00
uint32 ptr ; /* undocumented buffer pointer */
2000-12-12 05:45:11 +03:00
uint16 system_name ; /* 0x5c - system name */
1998-10-15 09:47:29 +04:00
LSA_OBJ_ATTR attr ; /* object attributes */
1998-03-12 00:11:04 +03:00
uint32 des_access ; /* desired access attributes */
} LSA_Q_OPEN_POL ;
/* LSA_R_OPEN_POL - response to LSA Open Policy */
typedef struct lsa_r_open_pol_info
{
POLICY_HND pol ; /* policy handle */
2001-08-27 21:52:23 +04:00
NTSTATUS status ; /* return code */
1998-03-12 00:11:04 +03:00
} LSA_R_OPEN_POL ;
1998-10-15 09:47:29 +04:00
/* LSA_Q_OPEN_POL2 - LSA Query Open Policy */
typedef struct lsa_q_open_pol2_info
{
uint32 ptr ; /* undocumented buffer pointer */
UNISTR2 uni_server_name ; /* server name, starting with two '\'s */
LSA_OBJ_ATTR attr ; /* object attributes */
uint32 des_access ; /* desired access attributes */
} LSA_Q_OPEN_POL2 ;
/* LSA_R_OPEN_POL2 - response to LSA Open Policy */
typedef struct lsa_r_open_pol2_info
{
POLICY_HND pol ; /* policy handle */
2001-08-27 21:52:23 +04:00
NTSTATUS status ; /* return code */
1998-10-15 09:47:29 +04:00
} LSA_R_OPEN_POL2 ;
2000-09-21 02:07:56 +04:00
/* LSA_Q_QUERY_SEC_OBJ - LSA query security */
typedef struct lsa_query_sec_obj_info
{
POLICY_HND pol ; /* policy handle */
uint32 sec_info ;
} LSA_Q_QUERY_SEC_OBJ ;
/* LSA_R_QUERY_SEC_OBJ - probably an open */
typedef struct r_lsa_query_sec_obj_info
{
uint32 ptr ;
SEC_DESC_BUF * buf ;
2001-08-27 21:52:23 +04:00
NTSTATUS status ; /* return status */
2000-09-21 02:07:56 +04:00
} LSA_R_QUERY_SEC_OBJ ;
1998-03-12 00:11:04 +03:00
/* LSA_Q_QUERY_INFO - LSA query info policy */
typedef struct lsa_query_info
{
POLICY_HND pol ; /* policy handle */
1999-12-13 16:27:58 +03:00
uint16 info_class ; /* info class */
1998-03-12 00:11:04 +03:00
} LSA_Q_QUERY_INFO ;
2001-01-25 05:35:50 +03:00
/* LSA_INFO_UNION */
typedef union lsa_info_union
{
DOM_QUERY_2 id2 ;
DOM_QUERY_3 id3 ;
DOM_QUERY_5 id5 ;
DOM_QUERY_6 id6 ;
} LSA_INFO_UNION ;
1998-03-12 00:11:04 +03:00
/* LSA_R_QUERY_INFO - response to LSA query info policy */
typedef struct lsa_r_query_info
{
uint32 undoc_buffer ; /* undocumented buffer pointer */
uint16 info_class ; /* info class (same as info class in request) */
2001-01-25 05:35:50 +03:00
LSA_INFO_UNION dom ;
1998-03-12 00:11:04 +03:00
2001-08-27 21:52:23 +04:00
NTSTATUS status ; /* return code */
1998-03-12 00:11:04 +03:00
} LSA_R_QUERY_INFO ;
/* LSA_Q_ENUM_TRUST_DOM - LSA enumerate trusted domains */
typedef struct lsa_enum_trust_dom_info
{
POLICY_HND pol ; /* policy handle */
1999-12-13 16:27:58 +03:00
uint32 enum_context ; /* enumeration context handle */
uint32 preferred_len ; /* preferred maximum length */
1998-03-12 00:11:04 +03:00
} LSA_Q_ENUM_TRUST_DOM ;
/* LSA_R_ENUM_TRUST_DOM - response to LSA enumerate trusted domains */
typedef struct lsa_r_enum_trust_dom_info
{
uint32 enum_context ; /* enumeration context handle */
uint32 num_domains ; /* number of domains */
uint32 ptr_enum_domains ; /* buffer pointer to num domains */
/* this lot is only added if ptr_enum_domains is non-NULL */
2001-01-12 01:51:54 +03:00
uint32 num_domains2 ; /* number of domains */
UNIHDR2 * hdr_domain_name ;
UNISTR2 * uni_domain_name ;
DOM_SID2 * domain_sid ;
1998-03-12 00:11:04 +03:00
2001-08-27 21:52:23 +04:00
NTSTATUS status ; /* return code */
1998-03-12 00:11:04 +03:00
} LSA_R_ENUM_TRUST_DOM ;
/* LSA_Q_CLOSE */
typedef struct lsa_q_close_info
{
POLICY_HND pol ; /* policy handle */
} LSA_Q_CLOSE ;
/* LSA_R_CLOSE */
typedef struct lsa_r_close_info
{
POLICY_HND pol ; /* policy handle. should be all zeros. */
2001-08-27 21:52:23 +04:00
NTSTATUS status ; /* return code */
1998-03-12 00:11:04 +03:00
} LSA_R_CLOSE ;
1999-12-13 16:27:58 +03:00
# define MAX_REF_DOMAINS 32
1998-03-12 00:11:04 +03:00
1998-09-30 23:09:57 +04:00
/* DOM_TRUST_HDR */
typedef struct dom_trust_hdr
{
UNIHDR hdr_dom_name ; /* referenced domain unicode string headers */
uint32 ptr_dom_sid ;
} DOM_TRUST_HDR ;
/* DOM_TRUST_INFO */
typedef struct dom_trust_info
{
UNISTR2 uni_dom_name ; /* domain name unicode string */
DOM_SID2 ref_dom ; /* referenced domain SID */
} DOM_TRUST_INFO ;
1998-03-12 00:11:04 +03:00
/* DOM_R_REF */
typedef struct dom_ref_info
{
1999-12-13 16:27:58 +03:00
uint32 num_ref_doms_1 ; /* num referenced domains */
uint32 ptr_ref_dom ; /* pointer to referenced domains */
uint32 max_entries ; /* 32 - max number of entries */
uint32 num_ref_doms_2 ; /* num referenced domains */
1998-03-12 00:11:04 +03:00
1999-12-13 16:27:58 +03:00
DOM_TRUST_HDR hdr_ref_dom [ MAX_REF_DOMAINS ] ; /* referenced domains */
DOM_TRUST_INFO ref_dom [ MAX_REF_DOMAINS ] ; /* referenced domains */
1998-03-12 00:11:04 +03:00
} DOM_R_REF ;
1998-09-30 23:09:57 +04:00
/* the domain_idx points to a SID associated with the name */
1998-03-12 00:11:04 +03:00
/* LSA_TRANS_NAME - translated name */
typedef struct lsa_trans_name_info
{
2000-09-21 02:07:56 +04:00
uint16 sid_name_use ; /* value is 5 for a well-known group; 2 for a domain group; 1 for a user... */
1998-09-30 23:09:57 +04:00
UNIHDR hdr_name ;
uint32 domain_idx ; /* index into DOM_R_REF array of SIDs */
1998-03-12 00:11:04 +03:00
} LSA_TRANS_NAME ;
1998-08-22 06:52:25 +04:00
# define MAX_LOOKUP_SIDS 30
1998-03-12 00:11:04 +03:00
/* LSA_TRANS_NAME_ENUM - LSA Translated Name Enumeration container */
typedef struct lsa_trans_name_enum_info
{
uint32 num_entries ;
uint32 ptr_trans_names ;
uint32 num_entries2 ;
2000-12-12 05:45:11 +03:00
LSA_TRANS_NAME * name ; /* translated names */
UNISTR2 * uni_name ;
1998-03-12 00:11:04 +03:00
} LSA_TRANS_NAME_ENUM ;
/* LSA_SID_ENUM - LSA SID enumeration container */
typedef struct lsa_sid_enum_info
{
uint32 num_entries ;
uint32 ptr_sid_enum ;
uint32 num_entries2 ;
2000-12-12 05:45:11 +03:00
uint32 * ptr_sid ; /* domain SID pointers to be looked up. */
DOM_SID2 * sid ; /* domain SIDs to be looked up. */
1998-03-12 00:11:04 +03:00
} LSA_SID_ENUM ;
/* LSA_Q_LOOKUP_SIDS - LSA Lookup SIDs */
typedef struct lsa_q_lookup_sids
{
1998-09-30 23:09:57 +04:00
POLICY_HND pol ; /* policy handle */
1998-03-12 00:11:04 +03:00
LSA_SID_ENUM sids ;
LSA_TRANS_NAME_ENUM names ;
LOOKUP_LEVEL level ;
uint32 mapped_count ;
} LSA_Q_LOOKUP_SIDS ;
/* LSA_R_LOOKUP_SIDS - response to LSA Lookup SIDs */
typedef struct lsa_r_lookup_sids
{
1999-03-24 15:18:28 +03:00
uint32 ptr_dom_ref ;
1998-09-29 21:56:12 +04:00
DOM_R_REF * dom_ref ; /* domain reference info */
1999-03-24 15:18:28 +03:00
1998-03-12 00:11:04 +03:00
LSA_TRANS_NAME_ENUM * names ;
uint32 mapped_count ;
2001-08-27 21:52:23 +04:00
NTSTATUS status ; /* return code */
1998-03-12 00:11:04 +03:00
} LSA_R_LOOKUP_SIDS ;
1998-11-25 22:57:04 +03:00
/* LSA_Q_LOOKUP_NAMES - LSA Lookup NAMEs */
typedef struct lsa_q_lookup_names
1998-03-12 00:11:04 +03:00
{
1999-12-13 16:27:58 +03:00
POLICY_HND pol ; /* policy handle */
uint32 num_entries ;
uint32 num_entries2 ;
2000-12-13 15:13:22 +03:00
UNIHDR * hdr_name ; /* name buffer pointers */
UNISTR2 * uni_name ; /* names to be looked up */
1998-03-12 00:11:04 +03:00
1999-12-13 16:27:58 +03:00
uint32 num_trans_entries ;
uint32 ptr_trans_sids ; /* undocumented domain SID buffer pointer */
uint32 lookup_level ;
uint32 mapped_count ;
1998-03-12 00:11:04 +03:00
1998-11-25 22:57:04 +03:00
} LSA_Q_LOOKUP_NAMES ;
1998-03-12 00:11:04 +03:00
1998-11-25 22:57:04 +03:00
/* LSA_R_LOOKUP_NAMES - response to LSA Lookup NAMEs by name */
typedef struct lsa_r_lookup_names
{
1999-03-24 15:18:28 +03:00
uint32 ptr_dom_ref ;
1998-11-25 22:57:04 +03:00
DOM_R_REF * dom_ref ; /* domain reference info */
1998-03-12 00:11:04 +03:00
1998-11-25 22:57:04 +03:00
uint32 num_entries ;
1999-03-24 15:18:28 +03:00
uint32 ptr_entries ;
1999-12-13 16:27:58 +03:00
uint32 num_entries2 ;
1998-11-25 22:57:04 +03:00
DOM_RID2 * dom_rid ; /* domain RIDs being looked up */
1998-03-12 00:11:04 +03:00
1999-12-13 16:27:58 +03:00
uint32 mapped_count ;
1998-03-12 00:11:04 +03:00
2001-08-27 21:52:23 +04:00
NTSTATUS status ; /* return code */
1998-11-25 22:57:04 +03:00
} LSA_R_LOOKUP_NAMES ;
1998-03-12 00:11:04 +03:00
2001-02-26 11:10:51 +03:00
/* This is probably a policy handle but at the moment we
never read it - so use a dummy struct . */
typedef struct lsa_q_open_secret
{
uint32 dummy ;
} LSA_Q_OPEN_SECRET ;
/* We always return "not found" at present - so just marshal the minimum. */
typedef struct lsa_r_open_secret
{
uint32 dummy1 ;
uint32 dummy2 ;
uint32 dummy3 ;
uint32 dummy4 ;
2001-08-27 21:52:23 +04:00
NTSTATUS status ;
2001-02-26 11:10:51 +03:00
} LSA_R_OPEN_SECRET ;
2001-07-09 22:32:54 +04:00
typedef struct lsa_enum_priv_entry
{
UNIHDR hdr_name ;
uint32 luid_low ;
uint32 luid_high ;
UNISTR2 name ;
} LSA_PRIV_ENTRY ;
/* LSA_Q_ENUM_PRIVS - LSA enum privileges */
typedef struct lsa_q_enum_privs
{
POLICY_HND pol ; /* policy handle */
uint32 enum_context ;
uint32 pref_max_length ;
} LSA_Q_ENUM_PRIVS ;
typedef struct lsa_r_enum_privs
{
uint32 enum_context ;
uint32 count ;
uint32 ptr ;
uint32 count1 ;
LSA_PRIV_ENTRY * privs ;
2001-08-27 21:52:23 +04:00
NTSTATUS status ;
2001-07-09 22:32:54 +04:00
} LSA_R_ENUM_PRIVS ;
/* LSA_Q_PRIV_GET_DISPNAME - LSA get privilege display name */
typedef struct lsa_q_priv_get_dispname
{
POLICY_HND pol ; /* policy handle */
UNIHDR hdr_name ;
UNISTR2 name ;
uint16 lang_id ;
uint16 lang_id_sys ;
} LSA_Q_PRIV_GET_DISPNAME ;
typedef struct lsa_r_priv_get_dispname
{
uint32 ptr_info ;
UNIHDR hdr_desc ;
UNISTR2 desc ;
/* Don't align ! */
uint16 lang_id ;
/* align */
2001-08-27 21:52:23 +04:00
NTSTATUS status ;
2001-07-09 22:32:54 +04:00
} LSA_R_PRIV_GET_DISPNAME ;
/* LSA_Q_ENUM_ACCOUNTS */
typedef struct lsa_q_enum_accounts
{
POLICY_HND pol ; /* policy handle */
uint32 enum_context ;
uint32 pref_max_length ;
} LSA_Q_ENUM_ACCOUNTS ;
/* LSA_R_ENUM_ACCOUNTS */
typedef struct lsa_r_enum_accounts
{
uint32 enum_context ;
LSA_SID_ENUM sids ;
2001-08-27 21:52:23 +04:00
NTSTATUS status ;
2001-07-09 22:32:54 +04:00
} LSA_R_ENUM_ACCOUNTS ;
2001-06-30 03:12:55 +04:00
/* LSA_Q_UNK_GET_CONNUSER - gets username\domain of connected user
called when " Take Ownership " is clicked - SK */
typedef struct lsa_q_unk_get_connuser
{
uint32 ptr_srvname ;
UNISTR2 uni2_srvname ;
uint32 unk1 ; /* 3 unknown uint32's are seen right after uni2_srvname */
uint32 unk2 ; /* unk2 appears to be a ptr, unk1 = unk3 = 0 usually */
uint32 unk3 ;
} LSA_Q_UNK_GET_CONNUSER ;
/* LSA_R_UNK_GET_CONNUSER */
typedef struct lsa_r_unk_get_connuser
{
uint32 ptr_user_name ;
UNIHDR hdr_user_name ;
UNISTR2 uni2_user_name ;
uint32 unk1 ;
uint32 ptr_dom_name ;
UNIHDR hdr_dom_name ;
UNISTR2 uni2_dom_name ;
2001-08-27 21:52:23 +04:00
NTSTATUS status ;
2001-06-30 03:12:55 +04:00
} LSA_R_UNK_GET_CONNUSER ;
2001-07-09 22:32:54 +04:00
typedef struct lsa_q_openaccount
{
POLICY_HND pol ; /* policy handle */
DOM_SID2 sid ;
uint32 access ; /* desired access */
} LSA_Q_OPENACCOUNT ;
typedef struct lsa_r_openaccount
{
POLICY_HND pol ; /* policy handle */
2001-08-27 21:52:23 +04:00
NTSTATUS status ;
2001-07-09 22:32:54 +04:00
} LSA_R_OPENACCOUNT ;
typedef struct lsa_q_enumprivsaccount
{
POLICY_HND pol ; /* policy handle */
} LSA_Q_ENUMPRIVSACCOUNT ;
typedef struct LUID
{
uint32 low ;
uint32 high ;
} LUID ;
typedef struct LUID_ATTR
{
LUID luid ;
uint32 attr ;
} LUID_ATTR ;
typedef struct privilege_set
{
uint32 count ;
uint32 control ;
LUID_ATTR * set ;
} PRIVILEGE_SET ;
typedef struct lsa_r_enumprivsaccount
{
uint32 ptr ;
uint32 count ;
PRIVILEGE_SET set ;
2001-08-27 21:52:23 +04:00
NTSTATUS status ;
2001-07-09 22:32:54 +04:00
} LSA_R_ENUMPRIVSACCOUNT ;
typedef struct lsa_q_getsystemaccount
{
POLICY_HND pol ; /* policy handle */
} LSA_Q_GETSYSTEMACCOUNT ;
typedef struct lsa_r_getsystemaccount
{
uint32 access ;
2001-08-27 21:52:23 +04:00
NTSTATUS status ;
2001-07-09 22:32:54 +04:00
} LSA_R_GETSYSTEMACCOUNT ;
2001-11-24 03:13:41 +03:00
typedef struct lsa_q_lookupprivvalue
{
POLICY_HND pol ; /* policy handle */
UNIHDR hdr_right ;
UNISTR2 uni2_right ;
} LSA_Q_LOOKUPPRIVVALUE ;
typedef struct lsa_r_lookupprivvalue
{
LUID luid ;
NTSTATUS status ;
} LSA_R_LOOKUPPRIVVALUE ;
1998-03-12 00:11:04 +03:00
# endif /* _RPC_LSA_H */
2001-07-09 22:32:54 +04:00
/*
opnum 11 : opensid : query : handle du domaine , sid du user
reply : handle , status
opnum 12 : getlistofprivs : query : handle du user
reply : ptr , nombre , nombre , tableau de 3 uint32 : flag + priv . low + priv . high
uint32 0 , status
opnum 17 : ? ? query : handle
reply : uint32 + status
*/