enable_radius
¶
enable_radius(
directory_id: DirectoryId,
radius_settings: RadiusSettings,
*,
config_overrides: Optional[DirectoryServiceClientConfig] = 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.
>>> 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/directory_service.py
3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 | |