Skip to content

Steps and Requirements for AD connector between on-prem AD server and cognito

0

Hi,

I would like to ask for references/guides on how to setup my AWS cognito to an existing on-prem AD server

asked a year ago505 views

1 Answer
0

To set up AWS Cognito with an existing on-premises Active Directory server using AD Connector, you'll need to follow these steps and meet certain requirements:

  1. Network Configuration:
  • Set up an Amazon Virtual Private Cloud (VPC) with at least two subnets in different Availability Zones.
  • Establish a connection between your VPC and on-premises network using either a hardware VPN or AWS Direct Connect.
  1. Active Directory Requirements:
  • Ensure your on-premises Active Directory has a functional level of Windows Server 2003 or higher.
  • Create a service account in your Active Directory with necessary permissions, including read users and groups, join computers to the domain, and create computer objects.
  1. AD Connector Setup:
  • Use the AWS Management Console to create an AD Connector.
  • Provide the required information, such as your on-premises Active Directory name, DNS server details, and the service account credentials.
  1. Network Security:
  • Configure security groups to allow traffic on the required ports (typically LDAP on port 389 and/or LDAPS on port 636) between the AD Connector and your on-premises AD.
  1. AWS Cognito Configuration:
  • In the AWS Cognito console, set up a new user pool or modify an existing one.
  • Configure the user pool to use the AD Connector as an identity provider for authentication.
  1. Testing:
  • Verify the connectivity between AD Connector and your on-premises Active Directory.
  • Test the authentication flow using AWS Cognito to ensure it can successfully communicate with your on-premises AD through the AD Connector.

Remember that AD Connector acts as a proxy, allowing AWS services like Cognito to make LDAP and Kerberos calls to your self-hosted Active Directory domain. This setup enables you to leverage your existing on-premises user directory for authentication in AWS Cognito without replicating your directory data to the cloud.

It's important to note that you may need to adjust your on-premises firewall rules to allow traffic from the AD Connector. Additionally, ensure that your AD Connector has the necessary permissions to read user information and authenticate users against your on-premises Active Directory.

By following these steps and meeting the requirements, you should be able to successfully integrate your on-premises Active Directory with AWS Cognito using AD Connector.
Sources
AWS Directory Service – Other Directory Types – Amazon Web Services
Getting started with AD Connector - AWS Directory Service
AD Connector Private WebServer | AWS re:Post

answered a year ago

  • Just an add-on

    How would I setup my AWS cognito to an existing on-prem AD server without ADFS?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.