title: Cannot connect to Azure Active Directory Secure Ldap
body: <p>I have an app that lets users authenticate with LDAP. In order to test it I wanted to deploy it on a cloud virtual machine and connect it to an Azure Active Directory instance.</p>
  
  <p>I was trying to follow <a href="http://www.rebeladmin.com/2016/04/step-step-guide-enable-azure-ad-domain-services/" rel="nofollow noreferrer">this</a> and <a href="http://www.rebeladmin.com/2016/06/step-step-guide-enable-secure-ldap-lightweight-directory-access-protocol-azure-ad-managed-domain/" rel="nofollow noreferrer">this</a> guide. The steps I have taken:</p>
  
  <ol>
  <li>Create a virtual network in Azure.</li>
  <li>Create an Active Directory in Azure.</li>
  <li>Activate ENABLE DOMAIN SERVICES FOR THIS DIRECTORY option.</li>
  <li>Upload a self-signed certificate setup for *.mydomainname.onmicrosoft.com.</li>
  <li>Activate ENABLE SECURE LDAP ACCESS OVER THE INTERNET.</li>
  </ol>
  
  <p>At this moment I suppose that I should be able to connect to the Ldap server with the IP provided in Azure as EXTERNAL IP ADDRESS FOR LDAPS ACCESS. Unfortunately, I have failed trying to connect to it with Apache Directory Studio.</p>
  
  <p><a href="https://i.stack.imgur.com/xHeAx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xHeAx.png" alt="Apache Directory Studio LDAP connection setup"></a></p>
  
  <p>What additional steps should I take?</p>