enable_radius
async
¶
enable_radius(
directory_id: DirectoryId,
radius_settings: RadiusSettings,
*,
config_overrides: Optional[AsyncDirectoryServiceClientConfig] = None,
) -> EnableRadiusResult
Enables multi-factor authentication (MFA) with the Remote Authentication Dial In User Service (RADIUS) server for an AD Connector or Microsoft AD directory.
Parameters:
-
directory_id(DirectoryId) –The identifier of the directory for which to enable MFA.
-
radius_settings(RadiusSettings) –A RadiusSettings object that contains information about the RADIUS server.
Raises:
-
ClientException–A client exception has occurred.
-
EntityAlreadyExistsException–The specified entity already exists.
-
EntityDoesNotExistException–The specified entity could not be found.
-
InvalidParameterException–One or more parameters are not valid.
-
ServiceException–An exception has occurred in Directory Service.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To enable radius The following example enables multi-factor authentication (MFA) with the Remote Authentication Dial In User Service (RADIUS) server for an AD Connector directory.
>>> await client.enable_radius(directory_id='d-92654abfed', radius_settings={'DisplayLabel': 'MyRadius', 'UseSameUsername': True, 'RadiusTimeout': 1, 'AuthenticationProtocol': 'PAP', 'RadiusPort': 1200, 'RadiusRetries': 2, 'SharedSecret': '123456789', 'RadiusServers': ['172.168.111.12']})
Source code in docs_src/capo_directory_service/_services/async_directory_service.py
4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 | |