Fix the build on Win32, and use NEGOTIATE security (to allow kerberos)
authorAndrew Bartlett <abartlet@samba.org>
Wed, 27 Aug 2008 06:22:45 +0000 (16:22 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 27 Aug 2008 06:22:45 +0000 (16:22 +1000)
testprogs/win32/rpcecho/rpcecho.idl
testprogs/win32/rpcecho/server.c

index 0eb7a35b2760c6bb4c01a5457790978b8efa411c..b0ddb81a3829b8bc701dbea14f7c03844b00b631 100644 (file)
@@ -99,7 +99,7 @@ interface rpcecho
        } echo_Info;
 
        long TestCall2 (
-               [in]                     uint16 level,
+               [in]                     short level,
                [out,switch_is(level)]   echo_Info **info
                );
 
index c93136e2e58f6c7309aa9887eb95bfbfb17300a0..b092852c15b7b44781520b337738c9f0418e380a 100644 (file)
@@ -193,7 +193,7 @@ void main(int argc, char **argv)
                exit(status);
        }
 
-       status = RpcServerRegisterAuthInfo(NULL, RPC_C_AUTHN_WINNT, NULL, NULL);
+       status = RpcServerRegisterAuthInfo(NULL, RPC_C_AUTHN_GSS_NEGOTIATE, NULL, NULL);
        if (status) {
                printf("Failed to setup auth info\n");
        }