add --kdc-url command-line parameter

This commit is contained in:
Marc-André Moreau 2022-09-28 16:37:06 -04:00 committed by David Fort
parent b324e49131
commit 21d28ab62d
2 changed files with 6 additions and 0 deletions

View File

@ -862,6 +862,11 @@ static int freerdp_client_command_line_post_filter(void* context, COMMAND_LINE_A
free(ptr.p);
}
CommandLineSwitchCase(arg, "kdc-url")
{
if (!freerdp_settings_set_string(settings, FreeRDP_KerberosKdcUrl, arg->Value))
return COMMAND_LINE_ERROR_MEMORY;
}
CommandLineSwitchCase(arg, "kerberos")
{
size_t count;

View File

@ -224,6 +224,7 @@ static const COMMAND_LINE_ARGUMENT_A global_cmd_args[] = {
{ "kbd-unicode", COMMAND_LINE_VALUE_FLAG, "", NULL, NULL, -1, NULL,
"Send unicode symbols, e.g. use the local keyboard map. ATTENTION: Does not work with every "
"RDP server!" },
{ "kdc-url", COMMAND_LINE_VALUE_REQUIRED, "<url>", NULL, NULL, -1, NULL, "KDC server URL" },
{ "kerberos", COMMAND_LINE_VALUE_REQUIRED,
"[lifetime:<time>,start-time:<time>,renewable-lifetime:<time>,cache:<path>,armor:<path>,"
"pkinit-anchors:<path>,pkcs11-module:<name>]",