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
3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 | |