use kerberos command-line suboptions for KDC URL

This commit is contained in:
Marc-André Moreau 2022-09-30 10:14:41 -04:00 committed by David Fort
parent fddb0dac75
commit cd6fcaacb4
2 changed files with 1 additions and 6 deletions

View File

@ -862,11 +862,6 @@ 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;
@ -876,6 +871,7 @@ static int freerdp_client_command_line_post_filter(void* context, COMMAND_LINE_A
{
size_t x;
const CmdLineSubOptions opts[] = {
{ "kdc-url:", FreeRDP_KerberosKdcUrl, CMDLINE_SUBOPTION_STRING, NULL },
{ "start-time:", FreeRDP_KerberosStartTime, CMDLINE_SUBOPTION_STRING, NULL },
{ "lifetime:", FreeRDP_KerberosLifeTime, CMDLINE_SUBOPTION_STRING, NULL },
{ "renewable-lifetime:", FreeRDP_KerberosRenewableLifeTime,

View File

@ -224,7 +224,6 @@ 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>]",