summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-10-30 05:41:07 +0000
committerTim Potter <tpot@samba.org>2001-10-30 05:41:07 +0000
commit35e44b3a83d53005d562b18695068a76bebd61e5 (patch)
tree9469e8f1242533d2cc712f3876de585eebb76b0d
parentf441ccd4844915c25b8b3420b2c6c10aa31212bd (diff)
downloadsamba-35e44b3a83d53005d562b18695068a76bebd61e5.tar.gz
samba-35e44b3a83d53005d562b18695068a76bebd61e5.tar.bz2
samba-35e44b3a83d53005d562b18695068a76bebd61e5.zip
Allow the logon level to be passed to cli_netlogon_sam_logon() rather than
the validation level. (This used to be commit c79e94ea27aab31423b1bdc34e9cff25688dbe5f)
-rw-r--r--source3/rpcclient/cmd_netlogon.c8
1 files 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 <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;