[aad,avx] improve AzureAD support

* New setting GatewayAzureActiveDirectory to fetch wellknown from
* Clean up command line arguments, rename to make function better
  understandable
This commit is contained in:
Armin Novak
2024-11-28 10:42:01 +01:00
committed by akallabeth
parent 6506fb6b43
commit f17c1830b7
10 changed files with 30 additions and 16 deletions

View File

@@ -3716,7 +3716,7 @@ static int parse_aad_options(rdpSettings* settings, const COMMAND_LINE_ARGUMENT_
};
const struct app_map amap[] = { { "tenantid:", FreeRDP_GatewayAvdAadtenantid,
parse_app_option_program },
{ "base:", FreeRDP_GatewayAvdArmpath, NULL } };
{ "ad:", FreeRDP_GatewayAzureActiveDirectory, NULL } };
for (size_t x = 0; x < count; x++)
{
BOOL handled = FALSE;
@@ -4614,7 +4614,7 @@ static int freerdp_client_settings_parse_command_line_arguments_int(
return fail_at(arg, COMMAND_LINE_ERROR_UNEXPECTED_VALUE);
}
#endif
CommandLineSwitchCase(arg, "aad")
CommandLineSwitchCase(arg, "azure")
{
int rc = parse_aad_options(settings, arg);
if (rc != 0)