Taking a step back and looking at the cache refresh setup. Test LDAP connection just times out when trying to connect a Microsoft AD server
```
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request POST /identity/organization/cacherefresh.
Reason: Error reading from remote server
```
I have the following:
Bind DN: CN=binduser,CN=Users,DC=mydomain,DC=net
Server: mydomain.net:389
Base DN: CN=Users,DC=wscsnet,DC=net
I also set the Bind Password
I was able to authenticate in a sample php script to the same Microsoft AD server with following:
```
<?php
$ldap = ldap_connect('LDAP://mydomain.net')
or die('Could not connect to LDAP server.');
echo '<p></p>';
echo 'LDAP SERVER STATUS: '.$ldap;
// active directory DN (base location of ldap search)
$ldap_dn = 'CN=Users,DC=mydomain,DC=net';
$user = 'mydomain\binduser';
$pass = 'mypassword';
```
This is being done via ec2 instances in AWS in that helps.