diff options
author | Stefan Metzmacher <metze@samba.org> | 2013-09-17 00:46:09 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2014-01-07 12:47:14 +0100 |
commit | 4c99e49898151a514e334a07f38eed83fe608c05 (patch) | |
tree | f48bd6b6a7b2f7aaaa7bfcba648f5594034d2e37 | |
parent | a012e2fdd6733e871ddeb68874a2df8413ad91ed (diff) | |
download | samba-4c99e49898151a514e334a07f38eed83fe608c05.tar.gz |
s3:rpcclient: remove optional auth_level parameter of the 'samlogon' cmd
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
-rw-r--r-- | source3/rpcclient/cmd_netlogon.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/source3/rpcclient/cmd_netlogon.c b/source3/rpcclient/cmd_netlogon.c index 000d65c7fa4..97b79cb6a8e 100644 --- a/source3/rpcclient/cmd_netlogon.c +++ b/source3/rpcclient/cmd_netlogon.c @@ -782,9 +782,9 @@ static NTSTATUS cmd_netlogon_sam_logon(struct rpc_pipe_client *cli, /* Check arguments */ - if (argc < 3 || argc > 7) { + if (argc < 3 || argc > 6) { fprintf(stderr, "Usage: samlogon <username> <password> [workstation]" - "[logon_type (1 or 2)] [auth level (2 or 3)] [logon_parameter]\n"); + "[logon_type (1 or 2)] [logon_parameter]\n"); return NT_STATUS_OK; } @@ -797,11 +797,8 @@ static NTSTATUS cmd_netlogon_sam_logon(struct rpc_pipe_client *cli, if (argc >= 5) sscanf(argv[4], "%i", &logon_type); - if (argc >= 6) - validation_level = atoi(argv[5]); - - if (argc == 7) - sscanf(argv[6], "%x", &logon_param); + if (argc == 6) + sscanf(argv[5], "%x", &logon_param); /* Perform the sam logon */ |