From 35e44b3a83d53005d562b18695068a76bebd61e5 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Tue, 30 Oct 2001 05:41:07 +0000 Subject: Allow the logon level to be passed to cli_netlogon_sam_logon() rather than the validation level. (This used to be commit c79e94ea27aab31423b1bdc34e9cff25688dbe5f) --- source3/rpcclient/cmd_netlogon.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source3/rpcclient/cmd_netlogon.c b/source3/rpcclient/cmd_netlogon.c index 180d0cc771..524ff5fb49 100644 --- a/source3/rpcclient/cmd_netlogon.c +++ b/source3/rpcclient/cmd_netlogon.c @@ -266,14 +266,14 @@ static NTSTATUS cmd_netlogon_sam_logon(struct cli_state *cli, { unsigned char trust_passwd[16]; NTSTATUS result = NT_STATUS_UNSUCCESSFUL; - int validation_level = 3; + int logon_type = NET_LOGON_TYPE; char *username, *password; /* Check arguments */ if (argc < 3 || argc > 4) { fprintf(stderr, "Usage: samlogon " - "[validation level]\n"); + "[logon_type]\n"); return NT_STATUS_OK; } @@ -281,7 +281,7 @@ static NTSTATUS cmd_netlogon_sam_logon(struct cli_state *cli, password = argv[2]; if (argc == 4) - sscanf(argv[3], "%i", &validation_level); + sscanf(argv[3], "%i", &logon_type); /* Authenticate ourselves with the domain controller */ @@ -306,7 +306,7 @@ static NTSTATUS cmd_netlogon_sam_logon(struct cli_state *cli, /* Perform the sam logon */ result = cli_netlogon_sam_logon(cli, mem_ctx, username, password, - validation_level); + logon_type); if (!NT_STATUS_IS_OK(result)) goto done; -- cgit