Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

AD connection failing: Connection timeout error

NID27
Regular Contributor
Regular Contributor

Hi Team,

Our AD connection is failing with Connection timeout error. The  same configs are working in Prod. We don have anything set under "ImportJson" and "ConfigJson". Below are the logs:

2024-05-22T17:53:15.081410653Z stdout F javax.naming.CommunicationException: 1.2.3.4:636 [Root exception is java.net.SocketTimeoutException: connect timed out]
"2024-05-22T17:53:15.081420402Z stdout F at com.sun.jndi.ldap.Connection.<init>(Connection.java:233)"
"2024-05-22T17:53:15.081422172Z stdout F at com.sun.jndi.ldap.LdapClient.<init>(LdapClient.java:137)"
"2024-05-22T17:53:15.081424006Z stdout F at com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1615)"
"2024-05-22T17:53:15.08142548Z stdout F at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2849)"
"2024-05-22T17:53:15.081427171Z stdout F at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:347)"
"2024-05-22T17:53:15.081428718Z stdout F at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxFromUrl(LdapCtxFactory.java:229)"
"2024-05-22T17:53:15.081430157Z stdout F at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:189)"
"2024-05-22T17:53:15.081431586Z stdout F at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:247)"
"2024-05-22T17:53:15.081433295Z stdout F at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:154)"
"2024-05-22T17:53:15.081434686Z stdout F at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:84)"
"2024-05-22T17:53:15.081436495Z stdout F at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:695)"
"2024-05-22T17:53:15.081437937Z stdout F at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)"
"2024-05-22T17:53:15.081439454Z stdout F at javax.naming.InitialContext.init(InitialContext.java:244)"
"2024-05-22T17:53:15.08144085Z stdout F at javax.naming.ldap.InitialLdapContext.<init>(InitialLdapContext.java:154)"
"2024-05-22T17:53:15.081442717Z stdout F at com.saviynt.ldap.SaviyntGroovyLdapService.verifyDN(SaviyntGroovyLdapService.groovy:9660)"
"2024-05-22T17:53:15.08144419Z stdout F at com.saviynt.ldap.SaviyntGroovyLdapService.getConnection(SaviyntGroovyLdapService.groovy:3864)"
"2024-05-22T17:53:15.081445531Z stdout F at com.saviynt.ldap.SaviyntGroovyLdapService.testADConnection(SaviyntGroovyLdapService.groovy:5160)"
"2024-05-22T17:53:15.081446814Z stdout F at com.saviynt.ecm.integration.ExternalConnectionCallService.testExternalConnection(ExternalConnectionCallService.groovy:919)"
"2024-05-22T17:53:15.081448359Z stdout F at com.saviynt.ecm.utility.domain.EcmConfigController$_closure21.doCall(EcmConfigController.groovy:768)"
"2024-05-22T17:53:15.081450132Z stdout F at grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter.doFilter(GrailsAnonymousAuthenticationFilter.java:53)"
"2024-05-22T17:53:15.081451482Z stdout F at com.saviynt.webservice.SaviyntRestAuthenticationFilter.doFilter(SaviyntRestAuthenticationFilter.groovy:159)"
"2024-05-22T17:53:15.08145286Z stdout F at grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter.doFilter(MutableLogoutFilter.java:62)"
"2024-05-22T17:53:15.081454102Z stdout F at grails.plugin.springsecurity.web.SecurityRequestHolderFilter.doFilter(SecurityRequestHolderFilter.java:59)"
"2024-05-22T17:53:15.081463671Z stdout F at com.mrhaki.grails.plugin.xframeoptions.web.XFrameOptionsFilter.doFilterInternal(XFrameOptionsFilter.java:69)"
"2024-05-22T17:53:15.081465028Z stdout F at com.brandseye.cors.CorsFilter.doFilter(CorsFilter.java:82)"
"2024-05-22T17:53:15.081466794Z stdout F at java.lang.Thread.run(Thread.java:750)"
2024-05-22T17:53:15.081468071Z stdout F Caused by: java.net.SocketTimeoutException: connect timed out
"2024-05-22T17:53:15.08146951Z stdout F at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)"
"2024-05-22T17:53:15.081470771Z stdout F at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)"
"2024-05-22T17:53:15.081472041Z stdout F at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)"
"2024-05-22T17:53:15.081473318Z stdout F at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)"
"2024-05-22T17:53:15.081474595Z stdout F at java.net.Socket.connect(Socket.java:607)"
"2024-05-22T17:53:15.081475937Z stdout F at com.sun.jndi.ldap.Connection.createSocket(Connection.java:328)"
"2024-05-22T17:53:15.081477182Z stdout F at com.sun.jndi.ldap.Connection.<init>(Connection.java:220)"
"2024-05-22T17:53:15.081478515Z stdout F ... 25 more"
2024-05-22T17:53:15.10681014Z stdout F 2024-05-22 17:53:15,106 [http-nio-8080-exec-4] DEBUG ldap.SaviyntGroovyLdapService - connectionsuccessful-1 = false
2024-05-22T17:53:15.106827063Z stdout F 2024-05-22 17:53:15,106 [http-nio-8080-exec-4] DEBUG ldap.SaviyntGroovyLdapService - connectionsuccessful-2 = false
2024-05-22T17:53:15.111457398Z stdout F 2024-05-22 17:53:15,111 [http-nio-8080-exec-4] DEBUG services.AdImportService - Import Json -
2024-05-22T17:53:15.111979091Z stdout F 2024-05-22 17:53:15,111 [http-nio-8080-exec-4] DEBUG services.HttpClientUtilityService - Enter getTimeOutConfig
2024-05-22T17:53:15.127428826Z stdout F 2024-05-22 17:53:15,127 [http-nio-8080-exec-4] DEBUG services.HttpClientUtilityService - connectionType: AD
2024-05-22T17:53:15.127461736Z stdout F 2024-05-22 17:53:15,127 [http-nio-8080-exec-4] DEBUG services.HttpClientUtilityService - connectionTimeoutConfig before guardRail validation: [:]
2024-05-22T17:53:15.127464911Z stdout F 2024-05-22 17:53:15,127 [http-nio-8080-exec-4] DEBUG services.HttpClientUtilityService - INFO: connectionTimeoutConfig is null, setting it to default value
2024-05-22T17:53:15.128694426Z stdout F 2024-05-22 17:53:15,128 [http-nio-8080-exec-4] DEBUG services.HttpClientUtilityService - Final connectionTimeoutConfig after guardRail validation: [connectionTimeout:10, readTimeout:50, retryCount:3, retryWait:2]
2024-05-22T17:53:15.129439464Z stdout F 2024-05-22 17:53:15,129 [http-nio-8080-exec-4] DEBUG ldap.SaviyntGroovyLdapService - Inside validateErrorResponse
2024-05-22T17:53:15.12990262Z stdout F 2024-05-22 17:53:15,129 [http-nio-8080-exec-4] DEBUG generic.GenericValidationService - Inside validateCommonErrorResponse
2024-05-22T17:53:15.13261391Z stdout F 2024-05-22 17:53:15,132 [http-nio-8080-exec-4] ERROR ldap.SaviyntGroovyLdapService - Error while saving the Connection: java.lang.Exception: The connection to the [ldaps://1.2.3.4:636/] server timed out. Target Error Message: [javax.naming.CommunicationException: 1.2.3.4:636 [Root exception is java.net.SocketTimeoutException: connect timed out]

 

Thanks

Nidhi

3 REPLIES 3

rushikeshvartak
All-Star
All-Star

This is network connectivity issue.

  • Verify Network Connectivity

  •  

    Example Debugging Commands

    Here are some commands to help with troubleshooting:

    Check Connectivity

     

    sh
    ping 1.2.3.4 nc -zv 1.2.3.4 636

     

    Check Firewall Rules (Linux)

     

    sh
    sudo iptables -L -n -v

Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

NID27
Regular Contributor
Regular Contributor

Hi Rushi,

The same AD is connected to test and Prod. It is working in prod and not working in Test.

Its network connectivity issue . Try restarting application service


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.