From f9e2a8af391f8ecb7cf6aa2d017898503d16985f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 1 Dec 2003 12:41:54 +0000 Subject: neater credentials handling in netlogon client code (This used to be commit b7d748f499f79415b444e7cebe7d8de7186fbc94) --- source4/librpc/idl/netlogon.idl | 35 +++++++++++++++++++++-------------- 1 file changed, 21 insertions(+), 14 deletions(-) (limited to 'source4/librpc/idl') diff --git a/source4/librpc/idl/netlogon.idl b/source4/librpc/idl/netlogon.idl index f6749b4e57..38df1c48da 100644 --- a/source4/librpc/idl/netlogon.idl +++ b/source4/librpc/idl/netlogon.idl @@ -64,6 +64,17 @@ interface netlogon /*****************/ /* Function 0x02 */ + 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; + typedef struct { [value(strlen_m(r->string)*2)] uint16 size; [value(r->size)] uint16 length; @@ -89,19 +100,15 @@ interface netlogon netr_Password ntpassword; } netr_PasswordInfo; - typedef [flag(NDR_PAHEX)] struct { - uint8 data[8]; - } netr_Credential; - typedef [flag(NDR_PAHEX)] struct { uint16 length; [value(r->length)] uint16 size; [size_is(size),length_is(length)] uint8 *data; } netr_ChallengeResponse; - typedef struct { + typedef [flag(NDR_PAHEX)] struct { netr_IdentityInfo logon_info; - netr_Credential challenge; + uint8 challenge[8]; netr_ChallengeResponse nt; netr_ChallengeResponse lm; } netr_NetworkInfo; @@ -232,17 +239,17 @@ interface netlogon ); WERROR netr_ServerReqChallenge( - [in] unistr *server_name, - [in] unistr computer_name, - [in][out][ref] netr_Credential *credential + [in] unistr *server_name, + [in] unistr computer_name, + [in][out] netr_Credential credentials ); WERROR netr_ServerAuthenticate( - [in] unistr *server_name, - [in] unistr username, - [in] uint16 secure_challenge_type, - [in] unistr computer_name, - [in,out,ref] netr_Credential *client_challenge + [in] unistr *server_name, + [in] unistr username, + [in] uint16 secure_challenge_type, + [in] unistr computer_name, + [in,out] netr_Credential credentials ); #if 0 -- cgit