title: How to get the ldap url for an AWS Simple AD deployment
body: <p>I have an AWS Simple AD deployment. I need the ldap_url. I have seen it represented in various forms such as simply <a href="http://eng.localytics.com/implementing-a-centralized-directory-service-for-aws-infrastructure-with-amazon-simple-ad-and-sssd/" rel="nofollow noreferrer">ldap://example.com</a> and also <a href="https://auth0.com/blog/simple-guide-to-setup-aws-directory-service/" rel="nofollow noreferrer">ldap://aws-[some-mysterious-id].whatever.com</a> and even in some AWS documentation they simply use the LAN IP of one of the instances, which I can't find anywhere in the AWS console since the EC2 console hides your Simple AD servers just like it does not show your RDS instances either.</p>
  
  <p>When using ldapsearch to query against the value represented by "Directory name" in the AWS Console for Directory Services, the result is <code>ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)</code>, so it does not appear to be that either.</p>