# AD Connection Error

**URL:** <https://forum.inductiveautomation.com/t/ad-connection-error/71792>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [March 29, 2023, 6:33pm UTC](https://forum.inductiveautomation.com/t/ad-connection-error/71792 "2023-03-29T18:33:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![craigb](https://avatars.discourse-cdn.com/v4/letter/c/9f8e36/32.png) [@craigb](https://forum.inductiveautomation.com/u/craigb)\
**Post date:** [March 29, 2023, 6:33pm UTC](https://forum.inductiveautomation.com/t/ad-connection-error/71792/1 "2023-03-29T18:33:51Z")

</div>

I was hoping to maybe get some pointers on this one.. Trying to set up a second user source. I'm not sure if the error log means the server cant connect to the AD or if there is a password issue as it says LDAP connection has been closed, as if it was open trying to access it. All usual IT ports, forwarding etc has been done, or so I'm led to believe.

```auto
java.lang.Exception: Failed connecting to LDAP server.

at com.inductiveautomation.ignition.gateway.authentication.impl.LDAPHelper.openContext(LDAPHelper.java:305)

at com.inductiveautomation.ignition.gateway.authentication.impl.LDAPHelper.search(LDAPHelper.java:350)

at com.inductiveautomation.ignition.gateway.authentication.impl.ADInternalHybridUserSource.getUsers(ADInternalHybridUserSource.java:200)

at com.inductiveautomation.ignition.gateway.authentication.UserSourceWrapper.doGetUsers(UserSourceWrapper.java:540)

at com.inductiveautomation.ignition.gateway.authentication.UserSourceWrapper$UserCacheImpl.doUpdate(UserSourceWrapper.java:269)

at com.inductiveautomation.ignition.gateway.authentication.UserSourceWrapper$UserCacheImpl.doUpdate(UserSourceWrapper.java:265)

at com.inductiveautomation.ignition.gateway.authentication.AbstractCache$UpdateTask.run(AbstractCache.java:118)

at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)

at java.base/java.util.concurrent.FutureTask.run(Unknown Source)

at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.base/java.lang.Thread.run(Unknown Source)

Caused by: javax.naming.NamingException: LDAP connection has been closed

at java.naming/com.sun.jndi.ldap.LdapRequest.getReplyBer(Unknown Source)

at java.naming/com.sun.jndi.ldap.Connection.readReply(Unknown Source)

at java.naming/com.sun.jndi.ldap.LdapClient.ldapBind(Unknown Source)

at java.naming/com.sun.jndi.ldap.LdapClient.authenticate(Unknown Source)

at java.naming/com.sun.jndi.ldap.LdapCtx.connect(Unknown Source)

at java.naming/com.sun.jndi.ldap.LdapCtx.(Unknown Source)

at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxFromUrl(Unknown Source)

at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(Unknown Source)

at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(Unknown Source)

at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(Unknown Source)

at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(Unknown Source)

at java.naming/javax.naming.spi.NamingManager.getInitialContext(Unknown Source)

at java.naming/javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)

at java.naming/javax.naming.InitialContext.init(Unknown Source)

at java.naming/javax.naming.ldap.InitialLdapContext.(Unknown Source)

at com.inductiveautomation.ignition.gateway.authentication.impl.LDAPHelper.openContext(LDAPHelper.java:287)

```

---

<div class="post-metadata">

**Author:** ![Brian\_Boehm](https://avatars.discourse-cdn.com/v4/letter/b/c6cbf5/32.png) [@Brian\_Boehm](https://forum.inductiveautomation.com/u/Brian_Boehm)\
**Post date:** [March 29, 2023, 7:18pm UTC](https://forum.inductiveautomation.com/t/ad-connection-error/71792/2 "2023-03-29T19:18:17Z")

</div>

Did you enable the specific port in your firewall rules?

---

<div class="post-metadata">

**Author:** ![craigb](https://avatars.discourse-cdn.com/v4/letter/c/9f8e36/32.png) [@craigb](https://forum.inductiveautomation.com/u/craigb)\
**Post date:** [March 29, 2023, 8:17pm UTC](https://forum.inductiveautomation.com/t/ad-connection-error/71792/3 "2023-03-29T20:17:55Z")

</div>

As far as I'm aware IT done all the necessary steps. We have two locations, one was working and one wasn't. They said it was the same set up.

Then out of the blue I noticed its pulled the users so its working now but noticed in the logs every 5-6 mins it failed to fetch again. I've increased the cache time so its not polling every 60 seconds.

IT said they changed nothing so unsure why it wasn't working initially. I cant tell from the original log error what the actual problem was.

---

<div class="post-metadata">

**Author:** ![sanjanakrishnamurthy](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@sanjanakrishnamurthy](https://forum.inductiveautomation.com/u/sanjanakrishnamurthy)\
**Post date:** [February 20, 2026, 6:11am UTC](https://forum.inductiveautomation.com/t/ad-connection-error/71792/4 "2026-02-20T06:11:15Z")

</div>

Hi,

Did you find any solution for this error?

Facing the same issue…

---

<div class="post-metadata">

**Author:** ![Jesse\_Van\_Hill](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jesse_van_hill/32/56876_2.png) [@Jesse\_Van\_Hill](https://forum.inductiveautomation.com/u/Jesse_Van_Hill)\
**Post date:** [February 20, 2026, 4:34pm UTC](https://forum.inductiveautomation.com/t/ad-connection-error/71792/5 "2026-02-20T16:34:12Z")

</div>

Hi - I would suggest on your Ignition host executing a utility like `ldapsearch` to send a search query to the LDAP server.

Might help determine whether the issue is an issue with the network or isolated to Ignition.
