2003-11-28 08:20:11 +03:00
/*
2003-12-01 04:41:38 +03:00
netlogon interface
much of this was derived from the ethereal sources - thanks to everyone
who contributed!
2003-11-28 08:20:11 +03:00
*/
2003-12-01 04:41:38 +03:00
#include "idl_types.h"
2003-11-28 08:20:11 +03:00
[
uuid(12345678-1234-abcd-ef00-01234567cffb),
2003-12-01 06:19:43 +03:00
version(1.0),
pointer_default(unique)
2003-11-28 08:20:11 +03:00
]
2003-12-01 04:41:38 +03:00
2003-11-28 08:20:11 +03:00
interface netlogon
{
2003-12-01 06:19:43 +03:00
2003-11-28 08:20:11 +03:00
/*****************/
/* Function 0x00 */
2003-12-01 06:19:43 +03:00
2003-12-01 04:41:38 +03:00
typedef struct {
2003-12-01 12:28:10 +03:00
unistr *account_name;
2003-12-01 04:41:38 +03:00
uint32 priv;
uint32 auth_flags;
uint32 logon_count;
uint32 bad_pw_count;
time_t last_logon;
time_t last_logoff;
time_t logoff_time;
time_t kickoff_time;
uint32 password_age;
time_t pw_can_change;
time_t pw_must_change;
unistr *computer;
unistr *domain;
unistr *script_path;
uint32 unknown;
} netr_UasInfo;
WERROR netr_LogonUasLogon(
[in] unistr *server_name,
[in] unistr username,
[in] unistr workstation,
[out] netr_UasInfo *info
);
2003-12-01 06:19:43 +03:00
/*****************/
/* Function 0x01 */
2003-12-01 04:41:38 +03:00
typedef struct {
uint32 duration;
2003-12-01 06:19:43 +03:00
uint16 logon_count;
} netr_UasLogoffInfo;
WERROR netr_LogonUasLogoff(
[in] unistr *server_name,
[in] unistr username,
[in] unistr workstation,
[out] netr_UasLogoffInfo info
2003-12-01 04:41:38 +03:00
);
2003-12-01 06:19:43 +03:00
/*****************/
/* Function 0x02 */
2003-12-01 15:41:54 +03:00
typedef [flag(NDR_PAHEX)] struct {
uint8 data[8];
} netr_Credential;
typedef [flag(NDR_PAHEX)] struct {
uint8 session_key[8];
uint32 sequence;
netr_Credential client_cred;
netr_Credential server_cred;
} netr_CredentialState;
2003-12-01 06:19:43 +03:00
typedef struct {
2003-12-01 12:28:10 +03:00
[value(strlen_m(r->string)*2)] uint16 size;
[value(r->size)] uint16 length;
unistr_noterm *string;
2003-12-01 06:19:43 +03:00
} netr_String;
2003-12-01 04:41:38 +03:00
typedef struct {
2003-12-01 12:28:10 +03:00
netr_String domain_name;
uint32 parameter_control;
uint32 logon_id_low;
uint32 logon_id_high;
2003-12-01 06:19:43 +03:00
netr_String username;
netr_String workstation;
2003-12-01 12:28:10 +03:00
} netr_IdentityInfo;
2003-12-01 06:19:43 +03:00
2003-12-01 12:28:10 +03:00
typedef [flag(NDR_PAHEX)] struct {
2003-12-01 06:19:43 +03:00
uint8 password[16];
2003-12-01 12:28:10 +03:00
} netr_Password;
2003-12-01 06:19:43 +03:00
2003-12-01 04:41:38 +03:00
typedef struct {
2003-12-01 12:28:10 +03:00
netr_IdentityInfo identity_info;
netr_Password lmpassword;
netr_Password ntpassword;
} netr_PasswordInfo;
2003-12-01 06:19:43 +03:00
2003-12-01 12:28:10 +03:00
typedef [flag(NDR_PAHEX)] struct {
uint16 length;
[value(r->length)] uint16 size;
[size_is(size),length_is(length)] uint8 *data;
} netr_ChallengeResponse;
2003-12-01 06:19:43 +03:00
2003-12-01 15:41:54 +03:00
typedef [flag(NDR_PAHEX)] struct {
2003-12-01 12:28:10 +03:00
netr_IdentityInfo logon_info;
2003-12-01 15:41:54 +03:00
uint8 challenge[8];
2003-12-01 12:28:10 +03:00
netr_ChallengeResponse nt;
netr_ChallengeResponse lm;
} netr_NetworkInfo;
2003-12-01 06:19:43 +03:00
typedef union {
2003-12-01 12:28:10 +03:00
[case(1)] netr_PasswordInfo *interactive;
[case(2)] netr_NetworkInfo *network;
[case(3)] netr_PasswordInfo *service;
2003-12-01 06:19:43 +03:00
} netr_LogonLevel;
2003-12-01 04:41:38 +03:00
typedef struct {
2003-12-01 06:19:43 +03:00
netr_Credential cred;
2003-12-01 07:13:43 +03:00
time_t timestamp;
2003-12-01 06:19:43 +03:00
} netr_Authenticator;
2003-12-01 04:41:38 +03:00
typedef struct {
uint32 user_id;
uint32 attributes;
2003-12-01 12:28:10 +03:00
} netr_GroupMembership;
2003-12-01 06:19:43 +03:00
2003-12-01 12:28:10 +03:00
typedef [flag(NDR_PAHEX)] struct {
2003-12-01 06:19:43 +03:00
uint8 user_session_key[16];
2003-12-01 12:28:10 +03:00
} netr_UserSessionKey;
2003-12-01 06:19:43 +03:00
2003-12-01 04:41:38 +03:00
typedef struct {
2003-12-01 12:28:10 +03:00
NTTIME logon_time;
NTTIME logoff_time;
NTTIME kickoff_time;
NTTIME passwd_last_set;
NTTIME passwd_can_change;
NTTIME passwd_must_change;
netr_String account_name;
netr_String full_name;
netr_String logon_script;
netr_String profile_path;
netr_String home_dir;
netr_String home_drive;
uint16 logon_count;
uint16 bad_passwd_count;
2003-12-01 04:41:38 +03:00
uint32 userid;
2003-12-01 12:28:10 +03:00
uint32 primary_group;
uint32 group_count;
[size_is(group_count)] netr_GroupMembership *groupids;
uint32 user_flags;
netr_UserSessionKey key;
netr_String logon_server;
netr_String domain;
dom_sid2 *domain_sid;
2003-12-01 04:41:38 +03:00
uint32 expansionroom[10];
2003-12-01 12:28:10 +03:00
} netr_SamInfo;
typedef struct {
dom_sid2 *sid;
uint32 attribute;
} netr_SidAttr;
2003-12-01 06:19:43 +03:00
2003-12-01 04:41:38 +03:00
typedef struct {
2003-12-01 12:28:10 +03:00
NTTIME logon_time;
NTTIME logoff_time;
NTTIME kickoff_time;
NTTIME passwd_last_set;
NTTIME passwd_can_change;
NTTIME passwd_must_change;
netr_String account_name;
netr_String full_name;
netr_String logon_script;
netr_String profile_path;
netr_String home_dir;
netr_String home_drive;
uint16 logon_count;
uint16 bad_passwd_count;
2003-12-01 04:41:38 +03:00
uint32 userid;
2003-12-01 12:28:10 +03:00
uint32 primary_group;
uint32 group_count;
[size_is(group_count)] netr_GroupMembership *groupids;
uint32 user_flags;
netr_UserSessionKey key;
netr_String logon_server;
netr_String domain;
dom_sid2 *domain_sid;
2003-12-01 04:41:38 +03:00
uint32 expansionroom[10];
uint32 sidcount;
2003-12-01 12:28:10 +03:00
[size_is(sidcount)] netr_SidAttr *sids;
} netr_SamInfo2;
2003-12-01 06:19:43 +03:00
2003-12-01 04:41:38 +03:00
typedef struct {
2003-12-01 06:19:43 +03:00
uint32 pac_size;
[size_is(pac_size)] uint8 *pac;
2003-12-01 12:28:10 +03:00
netr_String logon_domain;
netr_String logon_server;
netr_String principal_name;
2003-12-01 04:41:38 +03:00
uint32 auth_size;
2003-12-01 06:19:43 +03:00
[size_is(auth_size)] uint8 *auth;
2003-12-01 12:28:10 +03:00
netr_UserSessionKey user_session_key;
2003-12-01 04:41:38 +03:00
uint32 expansionroom[10];
2003-12-01 12:28:10 +03:00
netr_String unknown1;
netr_String unknown2;
netr_String unknown3;
netr_String unknown4;
} netr_PacInfo;
2003-12-01 06:19:43 +03:00
typedef union {
2003-12-01 12:28:10 +03:00
[case(2)] netr_SamInfo *sam;
[case(3)] netr_SamInfo2 *sam2;
[case(4)] netr_PacInfo *pac;
[case(5)] netr_PacInfo *pac2;
2003-12-01 06:19:43 +03:00
} netr_Validation;
2003-12-01 12:28:10 +03:00
NTSTATUS netr_LogonSamLogon(
2003-12-01 06:19:43 +03:00
[in] unistr *server_name,
[in] unistr *workstation,
[in] netr_Authenticator *credential,
[in][out] netr_Authenticator *authenticator,
[in] uint16 logon_level,
[in] [switch_is(logon_level)] netr_LogonLevel logon,
[in] uint16 validation_level,
[out] [switch_is(validation_level)] netr_Validation validation,
[out] uint32 authoritative
2003-12-01 04:41:38 +03:00
);
2003-12-01 06:19:43 +03:00
WERROR netr_LogonSamLogoff(
[in] unistr *server_name,
[in] unistr *computer_name,
[in] netr_Authenticator credential,
[in] netr_Authenticator return_authenticator,
[in] uint16 logon_level,
[in] [switch_is(logon_level)] netr_LogonLevel logon
2003-12-01 04:41:38 +03:00
);
2003-12-01 06:19:43 +03:00
WERROR netr_ServerReqChallenge(
2003-12-01 15:41:54 +03:00
[in] unistr *server_name,
[in] unistr computer_name,
[in][out] netr_Credential credentials
2003-12-01 04:41:38 +03:00
);
2003-12-01 06:19:43 +03:00
WERROR netr_ServerAuthenticate(
2003-12-01 15:41:54 +03:00
[in] unistr *server_name,
[in] unistr username,
[in] uint16 secure_challenge_type,
[in] unistr computer_name,
[in,out] netr_Credential credentials
2003-12-01 04:41:38 +03:00
);
2003-12-01 06:19:43 +03:00
#if 0
2003-12-01 04:41:38 +03:00
typedef struct {
2003-12-01 06:19:43 +03:00
uint8 encrypted_password[16];
2003-12-01 04:41:38 +03:00
} ENCRYPTED_LM_OWF_PASSWORD;
2003-12-01 06:19:43 +03:00
WERROR netr_ServerPasswordSet(
[in] unistr *server_name,
[in] unistr username,
[in] uint16 secure_challenge_type,
[in] unistr ComputerName,
2003-12-01 04:41:38 +03:00
[in][ref] AUTHENTICATOR credential,
[in][ref] LM_OWF_PASSWORD UasNewPassword,
[out][ref] AUTHENTICATOR return_authenticator
);
typedef struct {
2003-12-01 06:19:43 +03:00
unistr *username;
netr_String dummy1;
netr_String dummy2;
netr_String dummy3;
netr_String dummy4;
2003-12-01 04:41:38 +03:00
uint32 dummy5;
uint32 dummy6;
uint32 dummy7;
uint32 dummy8;
} DELTA_DELETE_USER;
typedef struct {
bool SensitiveDataFlag;
uint32 DataLength;
2003-12-01 06:19:43 +03:00
[size_is(DataLength)] uint8 *SensitiveData;
2003-12-01 04:41:38 +03:00
} USER_PRIVATE_INFO;
typedef struct {
2003-12-01 06:19:43 +03:00
netr_String username;
netr_String FullName;
2003-12-01 04:41:38 +03:00
uint32 UserID;
uint32 PrimaryGroupID;
2003-12-01 06:19:43 +03:00
netr_String HomeDir;
netr_String HomeDirDrive;
netr_String LogonScript;
netr_String Comment;
netr_String workstations;
2003-12-01 04:41:38 +03:00
NTTIME LastLogon;
NTTIME LastLogoff;
LOGON_HOURS logonhours;
2003-12-01 06:19:43 +03:00
uint16 BadPwCount;
uint16 LogonCount;
2003-12-01 04:41:38 +03:00
NTTIME PwLastSet;
NTTIME AccountExpires;
uint32 AccountControl;
LM_OWF_PASSWORD lmpw;
NT_OWF_PASSWORD ntpw;
bool NTPwPresent;
bool LMPwPresent;
bool PwExpired;
2003-12-01 06:19:43 +03:00
netr_String UserComment;
netr_String Parameters;
uint16 CountryCode;
uint16 CodePage;
2003-12-01 04:41:38 +03:00
USER_PRIVATE_INFO user_private_info;
uint32 SecurityInformation;
LSA_SECURITY_DESCRIPTOR sec_desc;
2003-12-01 06:19:43 +03:00
netr_String dummy1;
netr_String dummy2;
netr_String dummy3;
netr_String dummy4;
2003-12-01 04:41:38 +03:00
uint32 dummy5;
uint32 dummy6;
uint32 dummy7;
uint32 dummy8;
} DELTA_USER;
typedef struct {
2003-12-01 06:19:43 +03:00
netr_String DomainName;
netr_String OEMInfo;
2003-12-01 04:41:38 +03:00
NTTIME forcedlogoff;
2003-12-01 06:19:43 +03:00
uint16 minpasswdlen;
uint16 passwdhistorylen;
2003-12-01 04:41:38 +03:00
NTTIME pwd_must_change_time;
NTTIME pwd_can_change_time;
NTTIME domain_modify_time;
NTTIME domain_create_time;
uint32 SecurityInformation;
LSA_SECURITY_DESCRIPTOR sec_desc;
2003-12-01 06:19:43 +03:00
netr_String dummy1;
netr_String dummy2;
netr_String dummy3;
netr_String dummy4;
2003-12-01 04:41:38 +03:00
uint32 dummy5;
uint32 dummy6;
uint32 dummy7;
uint32 dummy8;
} DELTA_DOMAIN;
typedef struct {
2003-12-01 06:19:43 +03:00
netr_String groupname;
2003-12-01 04:41:38 +03:00
GROUP_MEMBERSHIP group_membership;
2003-12-01 06:19:43 +03:00
netr_String comment;
2003-12-01 04:41:38 +03:00
uint32 SecurityInformation;
LSA_SECURITY_DESCRIPTOR sec_desc;
2003-12-01 06:19:43 +03:00
netr_String dummy1;
netr_String dummy2;
netr_String dummy3;
netr_String dummy4;
2003-12-01 04:41:38 +03:00
uint32 dummy5;
uint32 dummy6;
uint32 dummy7;
uint32 dummy8;
} DELTA_GROUP;
typedef struct {
2003-12-01 06:19:43 +03:00
netr_String OldName;
netr_String NewName;
netr_String dummy1;
netr_String dummy2;
netr_String dummy3;
netr_String dummy4;
2003-12-01 04:41:38 +03:00
uint32 dummy5;
uint32 dummy6;
uint32 dummy7;
uint32 dummy8;
} DELTA_RENAME;
typedef struct {
2003-12-01 06:19:43 +03:00
[size_is(num_rids)] uint32 *rids;
[size_is(num_rids)] uint32 *attribs;
2003-12-01 04:41:38 +03:00
uint32 num_rids;
uint32 dummy1;
uint32 dummy2;
uint32 dummy3;
uint32 dummy4;
} DELTA_GROUP_MEMBER;
typedef struct {
2003-12-01 06:19:43 +03:00
netr_String alias_name;
2003-12-01 04:41:38 +03:00
uint32 rid;
uint32 SecurityInformation;
LSA_SECURITY_DESCRIPTOR sec_desc;
2003-12-01 06:19:43 +03:00
netr_String dummy1;
netr_String dummy2;
netr_String dummy3;
netr_String dummy4;
2003-12-01 04:41:38 +03:00
uint32 dummy5;
uint32 dummy6;
uint32 dummy7;
uint32 dummy8;
} DELTA_ALIAS;
typedef struct {
2003-12-01 06:19:43 +03:00
SID_ARRAY sids;
2003-12-01 04:41:38 +03:00
uint32 dummy1;
uint32 dummy2;
uint32 dummy3;
uint32 dummy4;
} DELTA_ALIAS_MEMBER;
typedef struct {
uint32 pagedpoollimit;
uint32 nonpagedpoollimit;
uint32 minimumworkingsetsize;
uint32 maximumworkingsetsize;
uint32 pagefilelimit;
NTTIME timelimit;
} QUOTA_LIMITS;
typedef struct {
uint32 maxlogsize;
NTTIME auditretentionperiod;
bool auditingmode;
uint32 maxauditeventcount;
2003-12-01 06:19:43 +03:00
[size_is(maxauditeventcount)] uint32 *eventauditoptions;
netr_String primarydomainname;
dom_sid2 *sid;
2003-12-01 04:41:38 +03:00
QUOTA_LIMITS quota_limits;
NTTIME db_modify_time;
NTTIME db_create_time;
uint32 SecurityInformation;
LSA_SECURITY_DESCRIPTOR sec_desc;
2003-12-01 06:19:43 +03:00
netr_String dummy1;
netr_String dummy2;
netr_String dummy3;
netr_String dummy4;
2003-12-01 04:41:38 +03:00
uint32 dummy5;
uint32 dummy6;
uint32 dummy7;
uint32 dummy8;
} DELTA_POLICY;
typedef struct {
2003-12-01 06:19:43 +03:00
netr_String DomainName;
2003-12-01 04:41:38 +03:00
uint32 num_controllers;
2003-12-01 06:19:43 +03:00
[size_is(num_controllers)] netr_String *controller_names;
2003-12-01 04:41:38 +03:00
uint32 SecurityInformation;
LSA_SECURITY_DESCRIPTOR sec_desc;
2003-12-01 06:19:43 +03:00
netr_String dummy1;
netr_String dummy2;
netr_String dummy3;
netr_String dummy4;
2003-12-01 04:41:38 +03:00
uint32 dummy5;
uint32 dummy6;
uint32 dummy7;
uint32 dummy8;
} DELTA_TRUSTED_DOMAINS;
typedef struct {
uint32 privilegeentries;
uint32 provolegecontrol;
2003-12-01 06:19:43 +03:00
[size_is(privilege_entries)] uint32 *privilege_attrib;
[size_is(privilege_entries)] netr_String *privilege_name;
2003-12-01 04:41:38 +03:00
QUOTALIMITS quotalimits;
uint32 SecurityInformation;
LSA_SECURITY_DESCRIPTOR sec_desc;
2003-12-01 06:19:43 +03:00
netr_String dummy1;
netr_String dummy2;
netr_String dummy3;
netr_String dummy4;
2003-12-01 04:41:38 +03:00
uint32 dummy5;
uint32 dummy6;
uint32 dummy7;
uint32 dummy8;
} DELTA_ACCOUNTS;
typedef struct {
uint32 len;
uint32 maxlen;
2003-12-01 06:19:43 +03:00
[size_is(maxlen)][length_is(len)] uint8 *cipher_data;
2003-12-01 04:41:38 +03:00
} CIPHER_VALUE;
typedef struct {
CIPHER_VALUE current_cipher;
NTTIME current_cipher_set_time;
CIPHER_VALUE old_cipher;
NTTIME old_cipher_set_time;
uint32 SecurityInformation;
LSA_SECURITY_DESCRIPTOR sec_desc;
2003-12-01 06:19:43 +03:00
netr_String dummy1;
netr_String dummy2;
netr_String dummy3;
netr_String dummy4;
2003-12-01 04:41:38 +03:00
uint32 dummy5;
uint32 dummy6;
uint32 dummy7;
uint32 dummy8;
} DELTA_SECRET;
typedef struct {
uint32 low_value;
uint32 high_value;
} xxx;
typedef [switch_type(short)] union {
2003-12-01 06:19:43 +03:00
[case(1)] DELTA_DOMAIN *domain;
[case(2)] DELTA_GROUP *group;
[case(4)] DELTA_RENAME_GROUP *rename_group;
[case(5)] DELTA_USER *user;
[case(7)] DELTA_RENAME_USER *rename_user;
[case(8)] DELTA_GROUP_MEMBER *group_member;
[case(9)] DELTA_ALIAS *alias;
[case(11)] DELTA_RENAME_ALIAS *rename_alias;
[case(12)] DELTA_ALIAS_MEMBER *alias_member;
[case(13)] DELTA_POLICY *policy;
[case(14)] DELTA_TRUSTED_DOMAINS *trusted_domains;
[case(16)] DELTA_ACCOUNTS *accounts;
[case(18)] DELTA_SECRET *secret;
[case(20)] DELTA_DELETE_USER *delete_group;
[case(21)] DELTA_DELETE_USER *delete_user;
[case(22)] MODIFIED_COUNT *modified_count;
2003-12-01 04:41:38 +03:00
} DELTA_UNION;
typedef [switch_type(short)] union {
[case(1)] uint32 rid;
[case(2)] uint32 rid;
[case(3)] uint32 rid;
[case(4)] uint32 rid;
[case(5)] uint32 rid;
[case(6)] uint32 rid;
[case(7)] uint32 rid;
[case(8)] uint32 rid;
[case(9)] uint32 rid;
[case(10)] uint32 rid;
[case(11)] uint32 rid;
[case(12)] uint32 rid;
2003-12-01 06:19:43 +03:00
[case(13)] dom_sid2 *sid;
[case(14)] dom_sid2 *sid;
[case(15)] dom_sid2 *sid;
[case(16)] dom_sid2 *sid;
[case(17)] dom_sid2 *sid;
2003-12-01 04:41:38 +03:00
[case(18)] unistr *Name ;
[case(19)] unistr *Name ;
[case(20)] uint32 rid;
[case(21)] uint32 rid;
} DELTA_ID_UNION;
typedef struct {
2003-12-01 06:19:43 +03:00
uint16 delta_type;
2003-12-01 04:41:38 +03:00
DELTA_ID_UNION delta_id_union;
DELTA_UNION delta_union;
} DELTA_ENUM;
typedef struct {
uint32 num_deltas;
2003-12-01 06:19:43 +03:00
[size_is(num_deltas)] DELTA_ENUM *delta_enum;
2003-12-01 04:41:38 +03:00
} DELTA_ENUM_ARRAY;
2003-12-01 06:19:43 +03:00
WERROR netr_DatabaseDeltas(
2003-12-01 04:41:38 +03:00
[in][string][ref] wchar_t *logonserver, # REF!!!
[in][string][ref] wchar_t *computername,
[in][ref] AUTHENTICATOR credential,
[in][out][ref] AUTHENTICATOR return_authenticator,
[in] uint32 database_id,
[in][out][ref] MODIFIED_COUNT domain_modify_count,
[in] uint32 preferredmaximumlength,
2003-12-01 06:19:43 +03:00
[out] DELTA_ENUM_ARRAY *delta_enum_array
2003-12-01 04:41:38 +03:00
);
2003-12-01 06:19:43 +03:00
WERROR netr_DatabaseSync(
2003-12-01 04:41:38 +03:00
[in][string][ref] wchar_t *logonserver, # REF!!!
[in][string][ref] wchar_t *computername,
[in][ref] AUTHENTICATOR credential,
[in][out][ref] AUTHENTICATOR return_authenticator,
[in] uint32 database_id,
[in][out][ref] uint32 sync_context,
[in] uint32 preferredmaximumlength,
2003-12-01 06:19:43 +03:00
[out] DELTA_ENUM_ARRAY *delta_enum_array
2003-12-01 04:41:38 +03:00
);
typedef struct {
2003-12-01 06:19:43 +03:00
uint8 computer_name[16];
2003-12-01 04:41:38 +03:00
uint32 timecreated;
uint32 serial_number;
} UAS_INFO_0;
2003-12-01 06:19:43 +03:00
WERROR netr_AccountDeltas(
[in][string] wchar_t *logonserver,
2003-12-01 04:41:38 +03:00
[in][string][ref] wchar_t *computername,
[in][ref] AUTHENTICATOR credential,
[in][out][ref] AUTHENTICATOR return_authenticator,
2003-12-01 06:19:43 +03:00
[out][ref][size_is(count_returned)] uint8 *Buffer,
2003-12-01 04:41:38 +03:00
[out][ref] uint32 count_returned,
[out][ref] uint32 total_entries,
[in][out][ref] UAS_INFO_0 recordid,
[in][long] count,
[in][long] level,
[in][long] buffersize,
);
2003-12-01 06:19:43 +03:00
WERROR netr_AccountSync(
[in][string] wchar_t *logonserver,
2003-12-01 04:41:38 +03:00
[in][string][ref] wchar_t *computername,
[in][ref] AUTHENTICATOR credential,
[in][out][ref] AUTHENTICATOR return_authenticator,
2003-12-01 06:19:43 +03:00
[out][ref][size_is(count_returned)] uint8 *Buffer,
2003-12-01 04:41:38 +03:00
[out][ref] uint32 count_returned,
[out][ref] uint32 total_entries,
[out][ref] uint32 next_reference,
[in][long] reference,
[in][long] level,
[in][long] buffersize,
[in][out][ref] UAS_INFO_0 recordid,
);
2003-12-01 06:19:43 +03:00
WERROR netr_GetDcName(
[in] unistr logon_server,
2003-12-01 04:41:38 +03:00
[in] unistr *domainname,
[out]unistr *dcname,
};
typedef struct {
uint32 flags;
uint32 pdc_connection_status;
} NETLOGON_INFO_1;
typedef struct {
uint32 flags;
uint32 pdc_connection_status;
unistrtrusted_dc_name;
uint32 tc_connection_status;
} NETLOGON_INFO_2;
typedef struct {
uint32 flags;
uint32 logon_attempts;
uint32 reserved;
uint32 reserved;
uint32 reserved;
uint32 reserved;
uint32 reserved;
} NETLOGON_INFO_3;
typedef [switch_type(long)] union {
2003-12-01 06:19:43 +03:00
[case(1)] NETLOGON_INFO_1 *i1;
[case(2)] NETLOGON_INFO_2 *i2;
[case(3)] NETLOGON_INFO_3 *i3;
2003-12-01 04:41:38 +03:00
} CONTROL_QUERY_INFORMATION;
2003-12-01 06:19:43 +03:00
WERROR netr_LogonControl(
[in][string] wchar_t *logonserver,
2003-12-01 04:41:38 +03:00
[in] uint32 function_code,
[in] uint32 level,
[out][ref] CONTROL_QUERY_INFORMATION
);
2003-12-01 06:19:43 +03:00
WERROR netr_GetAnyDCName(
2003-12-01 04:41:38 +03:00
[in] unistr *logon_server,
[in] unistr *domainname,
[out]unistr *dcname,
};
typedef [switch_type(long)] union {
[case(5)] unistr *unknown;
[case(6)] unistr *unknown;
[case(0xfffe)] uint32 unknown;
[case(7)] unistry*unknown;
} CONTROL_DATA_INFORMATION;
2003-12-01 06:19:43 +03:00
WERROR netr_LogonControl2(
[in][string] wchar_t *logonserver,
2003-12-01 04:41:38 +03:00
[in] uint32 function_code,
[in] uint32 level,
[in][ref] CONTROL_DATA_INFORMATION *data,
[out][ref] CONTROL_QUERY_INFORMATION *query
);
2003-12-01 06:19:43 +03:00
WERROR netr_ServerAuthenticate2(
[in][string] wchar_t *logonserver,
[in] unistr username,
[in] uint16 secure_channel_type,
[in] unistr computername,
2003-12-01 04:41:38 +03:00
[in][ref] CREDENTIAL *client_chal,
[out][ref] CREDENTIAL *server_chal,
[in][out][ref] uint32 *negotiate_flags,
);
2003-12-01 06:19:43 +03:00
WERROR netr_DatabaseSync2(
2003-12-01 04:41:38 +03:00
[in][string][ref] wchar_t *logonserver, # REF!!!
[in][string][ref] wchar_t *computername,
[in][ref] AUTHENTICATOR credential,
[in][out][ref] AUTHENTICATOR return_authenticator,
[in] uint32 database_id,
2003-12-01 06:19:43 +03:00
[in] uint16 restart_state,
2003-12-01 04:41:38 +03:00
[in][out][ref] uint32 *sync_context,
[in] uint32 preferredmaximumlength,
2003-12-01 06:19:43 +03:00
[out] DELTA_ENUM_ARRAY *delta_enum_array
2003-12-01 04:41:38 +03:00
);
2003-12-01 06:19:43 +03:00
WERROR netr_DatabaseRedo(
2003-12-01 04:41:38 +03:00
[in][string][ref] wchar_t *logonserver, # REF!!!
[in][string][ref] wchar_t *computername,
[in][ref] AUTHENTICATOR credential,
[in][out][ref] AUTHENTICATOR return_authenticator,
2003-12-01 06:19:43 +03:00
[in][ref][size_is(change_log_entry_size)] uint8 *change_log_entry,
2003-12-01 04:41:38 +03:00
[in] uint32 change_log_entry_size,
2003-12-01 06:19:43 +03:00
[out] DELTA_ENUM_ARRAY *delta_enum_array
2003-12-01 04:41:38 +03:00
);
2003-12-01 06:19:43 +03:00
WERROR netr_LogonControl2Ex(
[in][string] wchar_t *logonserver,
2003-12-01 04:41:38 +03:00
[in] uint32 function_code,
[in] uint32 level,
[in][ref] CONTROL_DATA_INFORMATION *data,
[out][ref] CONTROL_QUERY_INFORMATION *query
);
#endif
2003-11-28 08:20:11 +03:00
}