Fix the build on Win32, and use NEGOTIATE security (to allow kerberos)
[kai/samba.git] / testprogs / win32 / rpcecho / server.c
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");
        }