diff options
author | Tim Potter <tpot@samba.org> | 2001-10-30 05:41:07 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2001-10-30 05:41:07 +0000 |
commit | c79e94ea27aab31423b1bdc34e9cff25688dbe5f (patch) | |
tree | 4545dc3c52ebe38bd2decae2deb4a5dcaf3b4cfe | |
parent | 0758c0ea845dd0b552e4dab3ce05f0811fa9658e (diff) | |
download | samba-c79e94ea27aab31423b1bdc34e9cff25688dbe5f.tar.gz samba-c79e94ea27aab31423b1bdc34e9cff25688dbe5f.tar.xz samba-c79e94ea27aab31423b1bdc34e9cff25688dbe5f.zip |
Allow the logon level to be passed to cli_netlogon_sam_logon() rather than
the validation level.
-rw-r--r-- | source/rpcclient/cmd_netlogon.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/rpcclient/cmd_netlogon.c b/source/rpcclient/cmd_netlogon.c index 180d0cc771c..524ff5fb49f 100644 --- a/source/rpcclient/cmd_netlogon.c +++ b/source/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 <username> <password> " - "[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; |