disable_sso
¶
disable_sso(
directory_id: DirectoryId,
*,
config_overrides: Optional[DirectoryServiceClientConfig] = None,
user_name: Optional[UserName] = None,
password: Optional[ConnectPassword] = None,
) -> DisableSsoResult
Disables single-sign on for a directory.
Parameters:
-
directory_id(DirectoryId) –The identifier of the directory for which to disable single-sign on.
-
user_name(Optional[UserName], default:None) –The username of an alternate account to use to disable single-sign on. This is only used for AD Connector directories. This account must have privileges to remove a service principal name.
If the AD Connector service account does not have privileges to remove a service principal name, you can specify an alternate account with the UserName and Password parameters. These credentials are only used to disable single sign-on and are not stored by the service. The AD Connector service account is not changed.
-
password(Optional[ConnectPassword], default:None) –The password of an alternate account to use to disable single-sign on. This is only used for AD Connector directories. For more information, see the UserName parameter.
Raises:
-
AuthenticationFailedException–An authentication error occurred.
-
ClientException–A client exception has occurred.
-
EntityDoesNotExistException–The specified entity could not be found.
-
InsufficientPermissionsException–The account does not have sufficient permission to perform the operation.
-
ServiceException–An exception has occurred in Directory Service.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To disable SSO The following example disables single sign-on for a specified directory.
Source code in docs_src/capo_directory_service/_services/directory_service.py
4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 | |