title: Intermittent: The Server is not operational
body: <p>The below error is shown when running TEST Connection in AD Production / AD Stage and AD Test.</p>
  <p>The user server for ou=someusers, ou=anOU,dc=more,dc=morestuff,dc=stuff: The server is not operational. . HRESULT:.(0x8007203AJ”, “Failed to connect to the server for ou=someusers,ou=anOUusers,dc=more,dc=more, dc=stuff: The server is not operational. . HRESULT:[0x8007203A)” [ InvalidConfigurationException ] [ Possible suggestions ] Ensure that: a) SearchDN is valid. b) The user is active. c) The user is not locked. d) Domain certificate is available in trusted root folder on IQService machine if Domain Configuration TLS is enabled. [ Error details ]</p>
  <p>The IQService is installed on a windows server on the same network as the Domain controllers. We have TLS turned on in IQService, and looking at the Wireshark captures; there appears to be a pause (approx 15-20 seconds)  before the error comes back. The window server is 2019, and the operational level is 2012R2. Identity IQ is version: 8.2p1. We have turned off the domain controllers (everything but Primary) to only have one domain controller (in the lower environment)- to ensure there isn't an issue with clustering. There doesn't appear to be a heavy load on the servers; we have checked the usage, and it's always been low (less than 80% of usage, memory, and CPU). The IQService server is not being overwhelmed either as it sees maybe a request every few hours. We have stressed the lower environment to see about trying to capture more issues and have put out (test requests) at about one a min. These test requests are not write requests, only read. (As a note, we see this coming across in write as well). Thoughts on things to test and how to run those tests?</p>
  <p>I can validate:</p>
  <ol>
  <li>The SearchDN is valid (had three pairs of eyes validate, I supposed there could be a white space character etc I will double check that...)</li>
  <li>The user is not locked else none of the requests would work</li>
  <li>The user is active</li>
  <li>Would have to validate the domain certificate being in the proper place, but would assume that all requests would fail if it wasn't.</li>
  </ol>
  <p>One thought that was presented is that there might be an issue with ephemeral ports (1024-65535) between IQService and the Domain Controllers. Any suggestions on an approach to testing and validating that theory? thanks!!</p>
  <p>UPDATE:</p>
  <p>Have opened the validated the ports with the following commands:</p>
  <pre><code>netsh int ipv4 set dynamicport tcp start=1024 num=64511
  netsh int ipv4 show dynamicport TCP
  </code></pre>
  <p>Update: adding partial application.xml</p>
  <pre><code>  &lt;entry key=&quot;domainSettings&quot;&gt;
      &lt;value&gt;
        &lt;List&gt;
          &lt;Map&gt;
            &lt;entry key=&quot;authenticationType&quot; value=&quot;simple&quot;/&gt;
            &lt;entry key=&quot;authorizationType&quot; value=&quot;simple&quot;/&gt;
            &lt;entry key=&quot;domainDN&quot; value=&quot;%%AD_DOMAIN_DN%%&quot;/&gt;
            &lt;entry key=&quot;domainIterateSearchFilter&quot;/&gt;
            &lt;entry key=&quot;domainNetBiosName&quot;/&gt;
            &lt;entry key=&quot;forestName&quot; value=&quot;%%AD_FOREST%%&quot;/&gt;
            &lt;entry key=&quot;password&quot; value=&quot;%%AD_PASSWORD%%&quot;/&gt;
            &lt;entry key=&quot;port&quot; value=&quot;636&quot;/&gt;
            &lt;entry key=&quot;servers&quot;&gt;
              &lt;value&gt;
                &lt;List&gt;
                  &lt;String&gt;%%AD_DOMAIN_SERVER%%&lt;/String&gt;
                &lt;/List&gt;
              &lt;/value&gt;
            &lt;/entry&gt;
            &lt;entry key=&quot;useSSL&quot;&gt;
              &lt;value&gt;
                &lt;Boolean&gt;%%AD_IQSERVICE_TLS%%&lt;/Boolean&gt;
              &lt;/value&gt;
            &lt;/entry&gt;
            &lt;entry key=&quot;user&quot; value=&quot;%%AD_USER%%&quot;/&gt;
          &lt;/Map&gt;
        &lt;/List&gt;
      &lt;/value&gt;
    &lt;/entry&gt;
  </code></pre>
  <p>Some additional logs from IQService:</p>
  <pre><code>03/04/2022 11:40:19 : RpcHandler [ Thread-11 ] DEBUG : &quot;Initiating the serviceState for 122&quot;
  03/04/2022 11:40:19 : RpcHandler [ Thread-11 ] INFO : &quot;Calling Service [ADConnector] and method[testConfiguration] &quot;
  03/04/2022 11:40:19 : Impersonator [ Thread-11 ] DEBUG : &quot;Authenticating as User [svcAccount] domain [dom]&quot;
  03/04/2022 11:40:19 : Impersonator [ Thread-11 ] DEBUG : &quot;User [svcAccount] domain [dom] -&gt; Authenticated&quot;
  03/04/2022 11:40:19 : AbstractConnector [ Thread-11 ] DEBUG : &quot;ENTER AbstractConnector&quot;
  03/04/2022 11:40:19 : AbstractConnector [ Thread-11 ] DEBUG : &quot;EXIT AbstractConnector&quot;
  03/04/2022 11:40:19 : ADConnectorServices [ Thread-11 ] DEBUG : &quot;ENTER prepare&quot;
  03/04/2022 11:40:19 : ADConnectorServices [ Thread-11 ] DEBUG : &quot;EXIT prepare&quot;
  03/04/2022 11:40:19 : ADConnectorServices [ Thread-11 ] DEBUG : &quot;ENTER testConfiguration&quot;
  03/04/2022 11:40:19 : ADConnectorServices [ Thread-11 ] DEBUG : &quot;ENTER bind&quot;
  03/04/2022 11:40:19 : ADConnectorServices [ Thread-11 ] DEBUG : &quot;ENTER buildURLFromIdentity&quot;
  03/04/2022 11:40:19 : ADConnectorServices [ Thread-11 ] INFO : &quot;Server [server.dom.foo.test] DN [ou=users,ou=tii,dc=dom,dc=foo,dc=test]&quot;
  03/04/2022 11:40:19 : Util [ Thread-11 ] DEBUG : &quot;FQDN for server.dom.foo.test: server.dom.foo.test&quot;
  03/04/2022 11:40:19 : ADConnectorServices [ Thread-11 ] DEBUG : &quot;Derived URL[LDAP://server.dom.foo.test/ou=users,ou=tii,dc=dom,dc=foo,dc=test] original [ou=users,ou=tii,dc=dom,dc=foo,dc=test]&quot;
  03/04/2022 11:40:19 : ADConnectorServices [ Thread-11 ] DEBUG : &quot;EXIT buildURLFromIdentity&quot;
  03/04/2022 11:40:19 : ADConnectorServices [ Thread-11 ] INFO : &quot;Bind with User new DirectoryEntry(LDAP://server.dom.foo.test/ou=users,ou=tii,dc=dom,dc=foo,dc=test, User=svcAccount@dom.foo.test authType=SecureSocketsLayer, ServerBind)&quot;
  03/04/2022 11:40:49 : ADConnectorServices [ Thread-11 ] DEBUG : &quot;Failed to connect to the URL : LDAP://server.dom.foo.test/ou=users,ou=tii,dc=dom,dc=foo,dc=test : The server is not operational.
  &quot;
  03/04/2022 11:40:49 : ADConnectorServices [ Thread-11 ] ERROR : &quot;Caught exception in testConfigurationSystem.Exception: Failed to connect to the server for ou=users,ou=tii,dc=dom,dc=foo,dc=test:The server is not operational. . HRESULT:[0x8007203A]
     at sailpoint.services.ADConnectorServices.bind(String distinguishedName, Boolean isCrossForest, Boolean isCrossDomain, String serverToBind, Boolean isCrossDomainMove, Boolean bindForShadow)
     at sailpoint.services.ADConnectorServices.doTestConfiguration(Hashtable registry)&quot;
  03/04/2022 11:40:49 : ADConnectorServices [ Thread-11 ] DEBUG : &quot;ENTER bind&quot;
  03/04/2022 11:40:49 : ADConnectorServices [ Thread-11 ] DEBUG : &quot;ENTER buildURLFromIdentity&quot;
  03/04/2022 11:40:49 : ADConnectorServices [ Thread-11 ] INFO : &quot;Server [server.dom.foo.test] DN [ou=fuu,ou=dom users,dc=dom,dc=foo,dc=test]&quot;
  03/04/2022 11:40:49 : Util [ Thread-11 ] DEBUG : &quot;FQDN for server.dom.foo.test: server.dom.foo.test&quot;
  03/04/2022 11:40:49 : ADConnectorServices [ Thread-11 ] DEBUG : &quot;Derived URL[LDAP://server.dom.foo.test/ou=fuu,ou=dom users,dc=dom,dc=foo,dc=test] original [ou=fuu,ou=dom users,dc=dom,dc=foo,dc=test]&quot;
  03/04/2022 11:40:49 : ADConnectorServices [ Thread-11 ] DEBUG : &quot;EXIT buildURLFromIdentity&quot;
  03/04/2022 11:40:49 : ADConnectorServices [ Thread-11 ] INFO : &quot;Bind with User new DirectoryEntry(LDAP://server.dom.foo.test/ou=fuu,ou=dom users,dc=dom,dc=foo,dc=test, User=svcAccount@dom.foo.test authType=SecureSocketsLayer, ServerBind)&quot;
  03/04/2022 11:41:19 : ADConnectorServices [ Thread-11 ] DEBUG : &quot;Failed to connect to the URL : LDAP://server.dom.foo.test/ou=fuu,ou=dom users,dc=dom,dc=foo,dc=test : The server is not operational.
  &quot;
  03/04/2022 11:41:19 : ADConnectorServices [ Thread-11 ] ERROR : &quot;Caught exception in testConfigurationSystem.Exception: Failed to connect to the server for ou=fuu,ou=dom users,dc=dom,dc=foo,dc=test:The server is not operational. . HRESULT:[0x8007203A]
     at sailpoint.services.ADConnectorServices.bind(String distinguishedName, Boolean isCrossForest, Boolean isCrossDomain, String serverToBind, Boolean isCrossDomainMove, Boolean bindForShadow)
     at sailpoint.services.ADConnectorServices.doTestConfiguration(Hashtable registry)&quot;
  03/04/2022 11:41:19 : ADConnectorServices [ Thread-11 ] DEBUG : &quot;ENTER bind&quot;
  03/04/2022 11:41:19 : ADConnectorServices [ Thread-11 ] DEBUG : &quot;ENTER buildURLFromIdentity&quot;
  03/04/2022 11:41:19 : ADConnectorServices [ Thread-11 ] INFO : &quot;Server [server.dom.foo.test] DN [ou=users,ou=coo,dc=dom,dc=foo,dc=test]&quot;
  03/04/2022 11:41:19 : Util [ Thread-11 ] DEBUG : &quot;FQDN for server.dom.foo.test: server.dom.foo.test&quot;
  03/04/2022 11:41:19 : ADConnectorServices [ Thread-11 ] DEBUG : &quot;Derived URL[LDAP://server.dom.foo.test/ou=users,ou=coo,dc=dom,dc=foo,dc=test] original [ou=users,ou=coo,dc=dom,dc=foo,dc=test]&quot;
  03/04/2022 11:41:19 : ADConnectorServices [ Thread-11 ] DEBUG : &quot;EXIT buildURLFromIdentity&quot;
  03/04/2022 11:41:19 : ADConnectorServices [ Thread-11 ] INFO : &quot;Bind with User new DirectoryEntry(LDAP://server.dom.foo.test/ou=users,ou=coo,dc=dom,dc=foo,dc=test, User=svcAccount@dom.foo.test authType=SecureSocketsLayer, ServerBind)&quot;
  03/04/2022 11:41:49 : ADConnectorServices [ Thread-11 ] DEBUG : &quot;Failed to connect to the URL : LDAP://server.dom.foo.test/ou=users,ou=coo,dc=dom,dc=foo,dc=test : The server is not operational.
  &quot;
  03/04/2022 11:41:49 : ADConnectorServices [ Thread-11 ] ERROR : &quot;Caught exception in testConfigurationSystem.Exception: Failed to connect to the server for ou=users,ou=coo,dc=dom,dc=foo,dc=test:The server is not operational. . HRESULT:[0x8007203A]
     at sailpoint.services.ADConnectorServices.bind(String distinguishedName, Boolean isCrossForest, Boolean isCrossDomain, String serverToBind, Boolean isCrossDomainMove, Boolean bindForShadow)
     at sailpoint.services.ADConnectorServices.doTestConfiguration(Hashtable registry)&quot;
  03/04/2022 11:41:49 : ADConnectorServices [ Thread-11 ] DEBUG : &quot;ENTER bind&quot;
  03/04/2022 11:41:49 : ADConnectorServices [ Thread-11 ] DEBUG : &quot;ENTER buildURLFromIdentity&quot;
  03/04/2022 11:41:49 : ADConnectorServices [ Thread-11 ] INFO : &quot;Server [server.dom.foo.test] DN [ou=boo,ou=dom users,dc=dom,dc=foo,dc=test]&quot;
  03/04/2022 11:41:49 : Util [ Thread-11 ] DEBUG : &quot;FQDN for server.dom.foo.test: server.dom.foo.test&quot;
  03/04/2022 11:41:49 : ADConnectorServices [ Thread-11 ] DEBUG : &quot;Derived URL[LDAP://server.dom.foo.test/ou=boo,ou=dom users,dc=dom,dc=foo,dc=test] original [ou=boo,ou=dom users,dc=dom,dc=foo,dc=test]&quot;
  03/04/2022 11:41:49 : ADConnectorServices [ Thread-11 ] DEBUG : &quot;EXIT buildURLFromIdentity&quot;
  03/04/2022 11:41:49 : ADConnectorServices [ Thread-11 ] INFO : &quot;Bind with User new DirectoryEntry(LDAP://server.dom.foo.test/ou=boo,ou=dom users,dc=dom,dc=foo,dc=test, User=svcAccount@dom.foo.test authType=SecureSocketsLayer, ServerBind)&quot;
  03/04/2022 11:42:04 : ADConnectorServices [ Thread-11 ] DEBUG : &quot;EXIT bind&quot;
  03/04/2022 11:42:04 : ADConnectorServices [ Thread-11 ] INFO : &quot;Bind to ou=boo,ou=dom users,dc=dom,dc=foo,dc=test is Successful&quot;
  03/04/2022 11:42:04 : ADConnectorServices [ Thread-11 ] DEBUG : &quot;Parent Container is: LDAP://server.dom.foo.test/ou=dom users,dc=dom,dc=foo,dc=test&quot;
  03/04/2022 11:42:04 : ADConnectorServices [ Thread-11 ] DEBUG : &quot;ENTER bind&quot;
  03/04/2022 11:42:04 : ADConnectorServices [ Thread-11 ] DEBUG : &quot;ENTER buildURLFromIdentity&quot;
  03/04/2022 11:42:04 : ADConnectorServices [ Thread-11 ] INFO : &quot;Server [server.dom.foo.test] DN [ou=joo,ou=dom users,dc=dom,dc=foo,dc=test]&quot;
  03/04/2022 11:42:04 : Util [ Thread-11 ] DEBUG : &quot;FQDN for server.dom.foo.test: server.dom.foo.test&quot;
  03/04/2022 11:42:04 : ADConnectorServices [ Thread-11 ] DEBUG : &quot;Derived URL[LDAP://server.dom.foo.test/ou=joo,ou=dom users,dc=dom,dc=foo,dc=test] original [ou=joo,ou=dom users,dc=dom,dc=foo,dc=test]&quot;
  03/04/2022 11:42:04 : ADConnectorServices [ Thread-11 ] DEBUG : &quot;EXIT buildURLFromIdentity&quot;
  03/04/2022 11:42:04 : ADConnectorServices [ Thread-11 ] INFO : &quot;Bind with User new DirectoryEntry(LDAP://server.dom.foo.test/ou=joo,ou=dom users,dc=dom,dc=foo,dc=test, User=svcAccount@dom.foo.test authType=SecureSocketsLayer, ServerBind)&quot;
  03/04/2022 11:42:04 : ADConnectorServices [ Thread-11 ] DEBUG : &quot;EXIT bind&quot;
  03/04/2022 11:42:04 : ADConnectorServices [ Thread-11 ] INFO : &quot;Bind to ou=joo,ou=dom users,dc=dom,dc=foo,dc=test is Successful&quot;
  </code></pre>