mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2025-06-03 00:00:20 +00:00
Add 'restricted-admin' flag to shadow server
This commit is contained in:
parent
8a0f0acc39
commit
0a10fe8ce3
@ -62,6 +62,8 @@ int main(int argc, char** argv)
|
||||
"Clients must authenticate" },
|
||||
{ "remote-guard", COMMAND_LINE_VALUE_BOOL, NULL, BoolValueFalse, NULL, -1, NULL,
|
||||
"Remote credential guard" },
|
||||
{ "restricted-admin", COMMAND_LINE_VALUE_BOOL, NULL, BoolValueTrue, NULL, -1, NULL,
|
||||
"Restricted Admin" },
|
||||
{ "may-view", COMMAND_LINE_VALUE_BOOL, NULL, BoolValueTrue, NULL, -1, NULL,
|
||||
"Clients may view without prompt" },
|
||||
{ "may-interact", COMMAND_LINE_VALUE_BOOL, NULL, BoolValueTrue, NULL, -1, NULL,
|
||||
|
@ -389,6 +389,12 @@ int shadow_server_parse_command_line(rdpShadowServer* server, int argc, char** a
|
||||
arg->Value ? TRUE : FALSE))
|
||||
return fail_at(arg, COMMAND_LINE_ERROR);
|
||||
}
|
||||
CommandLineSwitchCase(arg, "restricted-admin")
|
||||
{
|
||||
if (!freerdp_settings_set_bool(settings, FreeRDP_RestrictedAdminModeSupported,
|
||||
arg->Value ? TRUE : FALSE))
|
||||
return fail_at(arg, COMMAND_LINE_ERROR);
|
||||
}
|
||||
CommandLineSwitchCase(arg, "sec")
|
||||
{
|
||||
if (strcmp("rdp", arg->Value) == 0) /* Standard RDP */
|
||||
|
Loading…
Reference in New Issue
Block a user