Connection LDAP timed out

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Member II

Connection LDAP timed out

org.alfresco.error.AlfrescoRuntimeException: 06160040 Error during LDAP Search. Reason:null
at org.alfresco.repo.security.sync.ldap.LDAPUserRegistry.processQuery(LDAPUserRegistry.java:1303)
at org.alfresco.repo.security.sync.ldap.LDAPUserRegistry.getGroups(LDAPUserRegistry.java:691)
at org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer.syncWithPlugin(ChainingUserRegistrySynchronizer.java:973)
at org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer.synchronizeInternal(ChainingUserRegistrySynchronizer.java:719)
at org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer.synchronize(ChainingUserRegistrySynchronizer.java:448)
at org.alfresco.repo.security.sync.UserRegistrySynchronizerJob$1.doWork(UserRegistrySynchronizerJob.java:46)
at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:548)
at org.alfresco.repo.security.sync.UserRegistrySynchronizerJob.execute(UserRegistrySynchronizerJob.java:42)
at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
Caused by: javax.naming.PartialResultException [Root exception is javax.naming.CommunicationException: icx.com:389 [Root exception is java.net.ConnectException: Connection timed out]]
at com.sun.jndi.ldap.AbstractLdapNamingEnumeration.hasMoreImpl(AbstractLdapNamingEnumeration.java:237)
at com.sun.jndi.ldap.AbstractLdapNamingEnumeration.hasMore(AbstractLdapNamingEnumeration.java:189)
at org.alfresco.repo.security.sync.ldap.LDAPUserRegistry.processQuery(LDAPUserRegistry.java:1284)
... 9 more
Caused by: javax.naming.CommunicationException: icx.com:389 [Root exception is java.net.ConnectException: Connection timed out]
at com.sun.jndi.ldap.LdapReferralContext.<init>(LdapReferralContext.java:95)
at com.sun.jndi.ldap.LdapReferralException.getReferralContext(LdapReferralException.java:150)
at com.sun.jndi.ldap.AbstractLdapNamingEnumeration.hasMoreReferrals(AbstractLdapNamingEnumeration.java:325)
at com.sun.jndi.ldap.AbstractLdapNamingEnumeration.hasMoreImpl(AbstractLdapNamingEnumeration.java:227)
... 11 more
Caused by: java.net.ConnectException: Connection timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)

6 Replies
Highlighted
Alfresco Employee

Re: Connection LDAP timed out

This is just a dump of the error without explanation and details on how to reproduce it. Also, please raise the issue in the correct forum, the ADF is for Angular apps and component framework

Highlighted
Member II

Re: Connection LDAP timed out

#ldap-ad 设置
ldap.authentication.java.naming.read.timeout = 30000

#authentication.chain=alfinst:alfrescoNtlm,ldap1:ldap-ad
authentication.chain=alfinst:alfrescoNtlm,svnadmin:ldap-ad

ldap.synchronization.synchronizeChangesOnly=false
ldap.synchronization.active=true

ntlm.authentication.sso.enabled=false

ldap.authentication.allowGuestLogin=false
synchronization.import.cron=0 0/5 * * * ?
#
ldap.authentication.userNameFormat=%s@icx.com
#ldap.authentication.userNameFormat=svnadmin@icx.com
#LDAP服务器地址
ldap.authentication.java.naming.provider.url=ldap://10.4.80.200:389
ldap.authentication.defaultAdministratorUserNames=svnadmin
# The default principal to use (only used for LDAP sync)
#用来同步使用的LDAP服务器管理员帐号
ldap.synchronization.java.naming.security.principal=svnadmin@icx.com
#ldap.synchronization.java.naming.security.principal=ou=users,dc=icx,dc=com
ldap.synchronization.java.naming.security.credentials=****
#用户信息位置
ldap.synchronization.groupSearchBase=dc=icx,dc=com
#用户信息位置
ldap.synchronization.userSearchBase=dc=icx,dc=com

and 

telnet 10.4.80.200 389

Trying 10.4.80.200...
Connected to 10.4.80.200.
Escape character is '^]'.

Highlighted
Member II

Re: Connection LDAP timed out

It was can synchronize from LDAP before, but one day it will not

Highlighted
Community Manager
Community Manager

Re: Connection LDAP timed out

Hi @805654685 ,

I think you will need to provide some more background information.

What Alfresco version, ADF version, environment, any changes made to the environment prior to the issue occuring, steps taken to resolve the problem.

Without this type of information it is very hard for others to second guess the origins of the problem and therefore find the solution.

Kind regards,

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!
Highlighted
Member II

Re: Connection LDAP timed out

alfresco version:alfresco-community-installer-201605-linux-x64.bin

what is ADF?

Highlighted
Community Manager
Community Manager

Re: Connection LDAP timed out

Hi @805654685,

ADF is the Alfresco Development Framework - but ADF is not relevant in this instance (sorry about that - this thread was originally in the ADF forum).

Take a look at the following error:

Caused by: javax.naming.PartialResultException 
[Root exception is javax.naming.CommunicationException: icx.com:389
[Root exception is java.net.ConnectException: Connection timed out]]

The server running Alfresco has no access to icx.com server by using port 389.

So it's not really an Alfresco problem in origin - presumably something has changed elsewhere in the network.

HTH,

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!