Secure your Simple AD directory - AWS Directory Service

Secure your Simple AD directory

This section describes considerations for securing your Simple AD environment.

How to reset a Simple AD krbtgt account password

The krbtgt account plays an important role in the Kerberos ticket exchanges. The krbtgt account is a special account used for Kerberos ticket-granting ticket (TGT) encryption, and it plays a crucial role in the security of the Kerberos authentication protocol. In Samba AD, krbtgt is represented as a (disabled) user account. The password to this account is randomly generated at the time the domain is provisioned. Access to this secret can result in undetectable total domain compromise as new Kerberos tickets can be printed without auditing. For more information, see Samba documentation.

It is recommended to change this password regularly every 90 days. You can reset the krbtgt account password from an Amazon EC2 Windows instanced joined to your Simple AD.

Note

AWS Simple AD is powered by Samba-AD. Samba-AD doesn't store N-1 hash for the krbtgt account. Therefore, when the krbtgt account password is reset, the Kerberos client will be required to negotiate a new Ticket Granting Ticket (TGT) during their next Service Ticket (ST) request. To minimize potential service disruptions, you should schedule the krbtgt account password resets outside of business hours. This approach mitigates impacts on ongoing operations and ensures smooth authentication continuity.

The following procedures shows how you can reset the krbtgt account password from an Amazon EC2 Windows instance.

Prerequisites
  • Before you can begin this procedure, complete the following:

    • You have domain joined an EC2 instance to your Simple AD directory.

    • You have the Simple AD directory administrator credentials. You will be signing in as the Simple AD directory administrator for this procedure.

Note

Some AWS services like Amazon WorkDocs and Amazon WorkSpaces, will create a Simple AD on your behalf.

Reset Simple AD krbtgt account password
  1. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.

  2. In the Amazon EC2 console, choose Instances and select the Windows Server instance. Then choose Connect.

  3. In the Connect to instance page, choose RDP client.

  4. In the Windows Security dialog box, copy your local administrator credentials for the Windows Server computer to sign in. The username can be in the following formats: NetBIOS-Name\administrator or DNS-Name\administrator. For example, corp\administrator would be the username if you followed the procedure in Create your Simple AD.

  5. Once signed in to the Windows Server computer, open Windows Administrative Tools from the Start menu by choosing Windows Administrative Tools folder.

    Windows Server start menu showing administrative tools and system management options.
  6. In the Windows Administrative Tools dashboard, open Active Directory Users and Computers by choosing Active Directory User and Computers.

    Windows Administrative Tools dashboard showing various system management shortcuts.
  7. In the Active Directory Users and Computers window, select View and then choose Enable Advanced Features.

    View menu options in a software interface, with "Advanced Features" selected.
  8. In the Active Directory Users and Computers window, select Users from the left panel.

    Active Directory Users and Computers folder structure with Users folder highlighted.
  9. Find the user named krbtgt, right click on it and select Reset Password.

    Context menu with options including Reset Password, Move, Open Home Page, and Send Mail.
  10. In the new window, enter the new password, enter it again, and then choose OK to reset the krbtgt account password.

    Password reset dialog with fields for new password, confirmation, and account options.
  11. In the Windows Administrative Tools dashboard, choose Active Directory Sites and Services.

    Windows Administrative Tools folder showing various Active Directory management shortcuts.
  12. In the Active Directory Sites and Services window, expand Site, Default-First-Site-Name, and Servers.

    Active Directory Sites and Services window showing expanded hierarchy with NTDS Settings.
  13. In the NTDS Settings window, right click on the server and select Replicate Now.

    Context menu showing "Replicate Now" option selected for a server in NTDS Settings window.
  14. Repeat steps 13 - 14 for your other servers.