By: flavio dias user 26 Jun 2017 at 9:39 a.m. CDT

13 Responses
flavio dias gravatar
Hi, I can´t configure Cache Refresh with external OpenLDAP , the error is 2017-06-26 14:25:02,310 ERROR [pool-2-thread-8] [gluu.oxtrust.ldap.cache.service.CacheRefreshTimer] (CacheRefreshTimer.java:1055) - Failed to connect to LDAP server using configuration source 2017-06-26 14:25:02,316 ERROR [pool-2-thread-8] [gluu.oxtrust.ldap.cache.service.CacheRefreshTimer] (CacheRefreshTimer.java:268) - Skipping cache refresh due to invalid server configuration How I can configure it well? Image OpenLDAP external: [LDAP external](https://drive.google.com/file/d/0B_ZCgGyAVdlEWkxDcjRvZXR5SG8/view?usp=sharing) Images configure CR: [Cache Refresh](https://drive.google.com/file/d/0B_ZCgGyAVdlEWGtnYkRqTkxmdzQ/view?usp=sharing) [Customer Backend](https://drive.google.com/file/d/0B_ZCgGyAVdlEZUMyczdqNFFzWlE/view?usp=sharing) [Soruce Backend](https://drive.google.com/file/d/0B_ZCgGyAVdlEcTJZYmJ4SGlMcDA/view?usp=sharing) [Imun LDAP](https://drive.google.com/file/d/0B_ZCgGyAVdlEcTJZYmJ4SGlMcDA/view?usp=sharing)

By William Lowe user 26 Jun 2017 at 10:02 a.m. CDT

William Lowe gravatar
Have you reviewed the other relevant tickets on support? Did you follow the video that we posted showing step by step how to configure CR?

By flavio dias user 26 Jun 2017 at 10:09 a.m. CDT

flavio dias gravatar
yes, i see this video [gluu](https://www.gluu.org/gluu-server-cache-refresh-configuration-part-2/)

By William Lowe user 26 Jun 2017 at 10:12 a.m. CDT

William Lowe gravatar
There are three videos to watch. Did you follow them?

By flavio dias user 26 Jun 2017 at 10:24 a.m. CDT

flavio dias gravatar
yes, but in theses videos he use ldap from gluu

By flavio dias user 26 Jun 2017 at 11:04 a.m. CDT

flavio dias gravatar
Which attribute corresponds " ou organizational unit " in gluu?

By flavio dias user 26 Jun 2017 at 11:26 a.m. CDT

flavio dias gravatar
2017-06-26 16:23:17,299 ERROR [pool-2-thread-9] [gluu.oxtrust.ldap.cache.service.CacheRefreshTimer] (CacheRefreshTimer.java:183) - Exception happened while executing cache refresh synchronization java.lang.NullPointerException: null at java.util.Hashtable.put(Hashtable.java:459) ~[?:1.8.0_112] at org.gluu.oxtrust.ldap.cache.service.CacheRefreshTimer.toLdapProperties(CacheRefreshTimer.java:1197) ~[classes/:?] at org.gluu.oxtrust.ldap.cache.service.CacheRefreshTimer.prepareLdapServerConnection(CacheRefreshTimer.java:1050) ~[classes/:?] at org.gluu.oxtrust.ldap.cache.service.CacheRefreshTimer.prepareLdapServerConnection(CacheRefreshTimer.java:1040) ~[classes/:?] at org.gluu.oxtrust.ldap.cache.service.CacheRefreshTimer.prepareLdapServerConnections(CacheRefreshTimer.java:1030) ~[classes/:?] at org.gluu.oxtrust.ldap.cache.service.CacheRefreshTimer.processImpl(CacheRefreshTimer.java:247) ~[classes/:?] at org.gluu.oxtrust.ldap.cache.service.CacheRefreshTimer.process(CacheRefreshTimer.java:178) [classes/:?] at sun.reflect.GeneratedMethodAccessor213.invoke(Unknown Source) ~[?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_112] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_112] at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:79) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.async.AsynchronousInterceptor.aroundInvoke(AsynchronousInterceptor.java:52) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:196) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:114) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.gluu.oxtrust.ldap.cache.service.CacheRefreshTimer_$$_javassist_seam_31.process(CacheRefreshTimer_$$_javassist_seam_31.java) [classes/:?] at sun.reflect.GeneratedMethodAccessor212.invoke(Unknown Source) ~[?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_112] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_112] at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.Component.callComponentMethod(Component.java:2313) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.core.Events.raiseEvent(Events.java:85) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.async.AsynchronousEvent$1.process(AsynchronousEvent.java:33) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.async.Asynchronous$ContextualAsynchronousRequest.run(Asynchronous.java:80) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.async.AsynchronousEvent.execute(AsynchronousEvent.java:27) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.async.ThreadPoolDispatcher$RunnableAsynchronous.run(ThreadPoolDispatcher.java:142) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_112] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [?:1.8.0_112] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_112] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [?:1.8.0_112] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_112] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_112] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_112]

By Mohib Zico Account Admin 27 Jun 2017 at 2:07 a.m. CDT

Mohib Zico gravatar
Hi, >> yes, but in theses videos he use ldap from gluu Sorry but not sure what you wanted to mean?

By flavio dias user 27 Jun 2017 at 4:25 a.m. CDT

flavio dias gravatar
I wanted to create LDAP users from a Java program, but I can´t connect to the gluu ldap server `Root exception is java.net.ConnectException: Connection refused: connect`, so I want to copy data from another ldap "server:389" to the gluu ldap, because I can create users from Java in ldap "server:389".

By Mohib Zico Account Admin 27 Jun 2017 at 7:31 a.m. CDT

Mohib Zico gravatar
Please search knowledge base, someone asked same question before.

By flavio dias user 27 Jun 2017 at 12:08 p.m. CDT

flavio dias gravatar
https://support.gluu.org/identity-management/4253/cant-connect-to-openldap-externally/ "Yes, by default it's not allowed to read Gluu ldap data from outside. You can create a reverse tunnel to your Gluu Server's ldapS address and then use this tunneling to access ldap data with your ldap browser." What is reverse tunnel? Is there any way to create ldap users from java? Thanks.

By Mohib Zico Account Admin 27 Jun 2017 at 12:19 p.m. CDT

Mohib Zico gravatar
>> What is reverse tunnel? That is a system administration term. >> Is there any way to create ldap users from java? It depends what type of 'creation' you are trying to achieve and why. User creation can be done: - With Gluu Server oxTrust admin panel. - With SCIM - Can be pulled from backend AD through Cache Refresh. - Or directly with your ldap browser.

By William Lowe user 29 Jun 2017 at 8:20 a.m. CDT

William Lowe gravatar
Flavio did you get your issue resolved?

By William Lowe user 30 Jun 2017 at 9:14 a.m. CDT

William Lowe gravatar
Going to close this out. We have tested CR extensively and have confirmed everything is working as expected. If you disagree, or need additional help, please open a new ticket with additional details.