

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 使用 Microsoft Active Directory
<a name="aws-ad-integration-fsxW"></a>

當您建立 FSx for Windows File Server 檔案系統時，您可以將其加入 Active Directory 網域，以提供使用者身分驗證和檔案和資料夾層級存取控制。Amazon FSx 可與 Microsoft Active Directory 搭配使用，以與您現有的 Microsoft Windows 環境整合。Amazon FSx 透過 Active Directory 使用您的 FSx for Windows File Server 檔案系統提供兩個選項： [搭配 使用 Amazon FSx AWS Directory Service for Microsoft Active Directory](fsx-aws-managed-ad.md)和 [使用自我管理的 Microsoft Active Directory](self-managed-AD.md)。

Active Directory 是 Microsoft 目錄服務，用於儲存網路上物件的相關資訊，並讓管理員和使用者輕鬆尋找和使用此資訊。這些物件通常包含共用資源，例如檔案伺服器、網路使用者和電腦帳戶。

然後，您的使用者可以在 Active Directory 中使用其現有的使用者身分來驗證自己，並存取 FSx for Windows File Server 檔案系統。使用者也可以使用其現有的身分來控制對個別檔案和資料夾的存取。此外，您可以將現有的檔案和資料夾及其安全存取控制清單 (ACL) 組態遷移至 Amazon FSx，而不需進行任何修改。

**注意**  
Amazon FSx 支援 [Microsoft Azure Active Directory Domain Services](https://docs.microsoft.com/en-us/azure/active-directory-domain-services/overview)，您可以加入 [Microsoft Azure Active Directory](https://docs.microsoft.com/en-us/azure/active-directory/fundamentals/active-directory-whatis)。

為檔案系統建立聯結的 Active Directory 組態後，您只能更新下列屬性：
+ 服務使用者登入資料
+ DNS 伺服器 IP 地址

建立檔案系統後，*您無法*變更已加入 Microsoft AD 的下列屬性：
+ DomainName
+ OrganizationalUnitDistinguishedName
+ FileSystemAdministratorsGroup

不過，您可以從備份建立新的檔案系統，並在新檔案系統的 Microsoft Active Directory 整合組態中變更這些屬性。如需詳細資訊，請參閱[將備份還原至新的檔案系統](using-backups.md#restoring-backups)。

**注意**  
Amazon FSx 不支援 [Active Directory Connector](https://docs.aws.amazon.com/directoryservice/latest/admin-guide/directory_ad_connector.html) 和 [Simple Active Directory](https://docs.aws.amazon.com/directoryservice/latest/admin-guide/directory_simple_ad.html)。

如果您的 Active Directory 組態發生變更而中斷與檔案系統的連線，您的 FSx for Windows File Server 可能會設定**錯誤**。若要將檔案系統傳回**可用**狀態，請在 Amazon FSx 主控台中選取**嘗試復原**按鈕，或在 Amazon FSx API 或主控台中使用 `StartMisconfiguredStateRecovery`命令。如需詳細資訊，請參閱 [檔案系統處於設定錯誤狀態](misconfigured-ad-config.md)。

**Topics**
+ [搭配 使用 Amazon FSx AWS Directory Service for Microsoft Active Directory](fsx-aws-managed-ad.md)
+ [使用自我管理的 Microsoft Active Directory](self-managed-AD.md)