From 53abb95cef899d2026c7e5eeca82be48ddb535e5 Mon Sep 17 00:00:00 2001 From: Zachary Karpinski Date: Wed, 20 Nov 2024 10:57:00 -0500 Subject: [PATCH] add suppport for ds ldaps for ad connector --- moto/ds/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moto/ds/models.py b/moto/ds/models.py index 25f0e78c2e2b..bab4168ed4cc 100644 --- a/moto/ds/models.py +++ b/moto/ds/models.py @@ -222,7 +222,7 @@ def enable_ldaps(self, enable: bool) -> None: """Enable/disable ldaps based on whether new_state is True or False. This method is only for MicrosoftAD. """ - if self.directory_type != "MicrosoftAD": + if self.directory_type not in ("MicrosoftAD","ADConnector"): raise UnsupportedOperationException( "LDAPS operations are not supported for this Directory Type." ) @@ -673,7 +673,7 @@ def describe_ldaps_settings( """Describe LDAPS settings for a Directory""" self._validate_directory_id(directory_id) directory = self.directories[directory_id] - if directory.directory_type != "MicrosoftAD": + if directory.directory_type not in ("MicrosoftAD","ADConnector"): raise UnsupportedOperationException( "LDAPS operations are not supported for this Directory Type." )