summaryrefslogtreecommitdiff
path: root/source4/librpc/idl
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-12-01 12:41:54 +0000
committerAndrew Tridgell <tridge@samba.org>2003-12-01 12:41:54 +0000
commitf9e2a8af391f8ecb7cf6aa2d017898503d16985f (patch)
tree0a76b766a8cd901ee518c9dc08256da3e528d3c0 /source4/librpc/idl
parent232d6480a73d2f08edb341c90df01e4e31f7eee8 (diff)
downloadsamba-f9e2a8af391f8ecb7cf6aa2d017898503d16985f.tar.gz
samba-f9e2a8af391f8ecb7cf6aa2d017898503d16985f.tar.bz2
samba-f9e2a8af391f8ecb7cf6aa2d017898503d16985f.zip
neater credentials handling in netlogon client code
(This used to be commit b7d748f499f79415b444e7cebe7d8de7186fbc94)
Diffstat (limited to 'source4/librpc/idl')
-rw-r--r--source4/librpc/idl/netlogon.idl35
1 files changed, 21 insertions, 14 deletions
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;
@@ -90,18 +101,14 @@ interface netlogon
} 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