summaryrefslogtreecommitdiff
path: root/source3/rpcclient/cmd_netlogon.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-01-21 16:58:32 +0100
committerGünther Deschner <gd@samba.org>2011-01-24 16:56:00 +0100
commit99437614fa8028d60356ee79611d94051ec756ec (patch)
treeb139d046570a03c4065c022fef704357e8ede0a8 /source3/rpcclient/cmd_netlogon.c
parentef0a3903f007cee5a564699fc9750d6e8a472d7d (diff)
downloadsamba-99437614fa8028d60356ee79611d94051ec756ec.tar.gz
samba-99437614fa8028d60356ee79611d94051ec756ec.tar.bz2
samba-99437614fa8028d60356ee79611d94051ec756ec.zip
s3-rpcclient: allow to define validation level for samlogon.
Guenther
Diffstat (limited to 'source3/rpcclient/cmd_netlogon.c')
-rw-r--r--source3/rpcclient/cmd_netlogon.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/rpcclient/cmd_netlogon.c b/source3/rpcclient/cmd_netlogon.c
index 1942352939..c909efe53f 100644
--- a/source3/rpcclient/cmd_netlogon.c
+++ b/source3/rpcclient/cmd_netlogon.c
@@ -718,7 +718,7 @@ static NTSTATUS cmd_netlogon_sam_logon(struct rpc_pipe_client *cli,
NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
int logon_type = NetlogonNetworkInformation;
const char *username, *password;
- int auth_level = 2;
+ uint16_t validation_level = 3;
uint32 logon_param = 0;
const char *workstation = NULL;
@@ -740,14 +740,14 @@ static NTSTATUS cmd_netlogon_sam_logon(struct rpc_pipe_client *cli,
sscanf(argv[4], "%i", &logon_type);
if (argc >= 6)
- sscanf(argv[5], "%i", &auth_level);
+ validation_level = atoi(argv[5]);
if (argc == 7)
sscanf(argv[6], "%x", &logon_param);
/* Perform the sam logon */
- result = rpccli_netlogon_sam_logon(cli, mem_ctx, logon_param, lp_workgroup(), username, password, workstation, logon_type);
+ result = rpccli_netlogon_sam_logon(cli, mem_ctx, logon_param, lp_workgroup(), username, password, workstation, validation_level, logon_type);
if (!NT_STATUS_IS_OK(result))
goto done;