From e136f1f3123cf4448636f409a4afa5dc8acec653 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 18 Mar 2008 15:47:17 +0100 Subject: [PATCH] wb-ndr: add idl for WINBIND_AUTH_LEVEL_CCACHE_NTLM_AUTH metze --- source/librpc/idl/winbind_protocol.idl | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/source/librpc/idl/winbind_protocol.idl b/source/librpc/idl/winbind_protocol.idl index 295040ecea5..924a054d3e7 100644 --- a/source/librpc/idl/winbind_protocol.idl +++ b/source/librpc/idl/winbind_protocol.idl @@ -91,7 +91,8 @@ import "security.idl", "lsa.idl", "samr.idl", "netlogon.idl"; WINBIND_AUTH_LEVEL_COMPAT_AUTH_RESPONSE = 2, WINBIND_AUTH_LEVEL_COMPAT_LOGOFF = 3, WINBIND_AUTH_LEVEL_CHANGE_PASSWORD_PLAIN= 4, - WINBIND_AUTH_LEVEL_CHANGE_PASSWORD_CRYPT= 5 + WINBIND_AUTH_LEVEL_CHANGE_PASSWORD_CRYPT= 5, + WINBIND_AUTH_LEVEL_CCACHE_NTLM_AUTH = 6 } winbind_auth_level; struct winbind_auth_compat_auth_plain_req { @@ -152,6 +153,14 @@ import "security.idl", "lsa.idl", "samr.idl", "netlogon.idl"; samr_Password *lm_verifier; }; + struct winbind_auth_ccache_ntlm_auth_req { + [string,charset(UTF8)] uint8 account_name[]; + [string,charset(UTF8)] uint8 *domain_name; + hyper uid; + DATA_BLOB initial_blob; + DATA_BLOB challenge_blob; + }; + typedef [switch_type(winbind_auth_level)] union { [case(WINBIND_AUTH_LEVEL_COMPAT_AUTH_PLAIN)] struct winbind_auth_compat_auth_plain_req compat_auth_plain; @@ -163,6 +172,8 @@ import "security.idl", "lsa.idl", "samr.idl", "netlogon.idl"; struct winbind_auth_change_password_plain_req change_password_plain; [case(WINBIND_AUTH_LEVEL_CHANGE_PASSWORD_CRYPT)] struct winbind_auth_change_password_crypt_req change_password_crypt; + [case(WINBIND_AUTH_LEVEL_CCACHE_NTLM_AUTH)] + struct winbind_auth_ccache_ntlm_auth_req ccache_ntlm_auth; [default]; } winbind_auth_req; @@ -174,6 +185,8 @@ import "security.idl", "lsa.idl", "samr.idl", "netlogon.idl"; [case(WINBIND_AUTH_LEVEL_COMPAT_LOGOFF)]; [case(WINBIND_AUTH_LEVEL_CHANGE_PASSWORD_PLAIN)]; [case(WINBIND_AUTH_LEVEL_CHANGE_PASSWORD_CRYPT)]; + [case(WINBIND_AUTH_LEVEL_CCACHE_NTLM_AUTH)] + DATA_BLOB ccache_ntlm_auth; [default]; } winbind_auth_rep; @@ -457,10 +470,4 @@ import "security.idl", "lsa.idl", "samr.idl", "netlogon.idl"; /* Various group queries */ winbind_status winbind_getuserdomgroups(/*TODO*/); - - /* - * Complete the challenge phase of the NTLM authentication - * protocol using cached password. - */ - winbind_status winbind_ccache_ntlmauth(/*TODO*/); } -- 2.34.1