Skip to content

Commit

Permalink
add suppport for ds ldaps for ad connector
Browse files Browse the repository at this point in the history
  • Loading branch information
zkarpinski committed Nov 20, 2024
1 parent 8d67306 commit 53abb95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions moto/ds/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
)
Expand Down Expand Up @@ -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."
)
Expand Down

0 comments on commit 53abb95

Please sign in to comment.