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
3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 | |