wb-ndr: add idl for WINBIND_AUTH_LEVEL_CCACHE_NTLM_AUTH
authorStefan Metzmacher <metze@sernet.de>
Tue, 18 Mar 2008 14:47:17 +0000 (15:47 +0100)
committerStefan Metzmacher <metze@sernet.de>
Fri, 2 May 2008 14:13:52 +0000 (16:13 +0200)
metze

source/librpc/idl/winbind_protocol.idl

index 295040ecea55d4df4930c77d927291e6b5db1252..924a054d3e7ed189733a63e8a1e16352b70e6894 100644 (file)
@@ -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*/);
 }