My Oracle Support Banner

EM 13c: EM Configuration with External LDAP Fails and Secure.log File Reports "Caused by: connect timed out" (Doc ID 2740779.1)

Last updated on JANUARY 17, 2023

Applies to:

Enterprise Manager Base Platform - Version and later
Information in this document applies to any platform.


EM configuration with external LDAP authentication by executing the following command fails:

$OMS_HOME/bin>./emctl config auth ad -ldap_host "Ldaphostname" -ldap_port "636" -ldap_principal "CN=*******,OU=Oracle,OU=Service Accounts,DC=corp,DC=xxxxxx,DC=com" -user_base_dn "OU=xxxxxxx,DC=corp,DC=xxxxxx,DC=com" -group_base_dn "OU=xxx Divisions,DC=corp,DC=xxxxxx,DC=com" -ldap_credential "******" -sysman_pwd "**********"

Oracle Enterprise Manager Cloud Control 13c Release 3
Copyright (c) 1996, 2018 Oracle Corporation. All rights reserved.
Configuring LDAP Authentication ... Started
Failed to validate connection to LDAP server with the specified parameters.

$../gc_inst/em/EMGC_OMS1/sysman/log/secure.log file reports following errors:

2020-12-30 11:29:14,225 [main] WARN auth.ExternalAuthConfiguration validateLDAPConnection.418 - Failed to connect to LDAP server or look up userdn/groupdn
javax.naming.CommunicationException: <LDAP HOST>:636 [Root exception is connect timed out]
at com.sun.jndi.ldap.Connection.<init>(
at com.sun.jndi.ldap.LdapClient.<init>(
at com.sun.jndi.ldap.LdapClient.getInstance(
at com.sun.jndi.ldap.LdapCtx.connect(
at com.sun.jndi.ldap.LdapCtx.<init>(
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(
at javax.naming.spi.NamingManager.getInitialContext(
at javax.naming.InitialContext.getDefaultInitCtx(
at javax.naming.InitialContext.init(
at javax.naming.InitialContext.<init>(
at oracle.sysman.emctl.config.auth.ExternalAuthConfiguration.validateLDAPConnection(
at oracle.sysman.emctl.config.auth.ExternalAuthConfiguration.readCommonArgs(
at oracle.sysman.emctl.config.auth.ConfigLDAP.doConfigLDAPAuth(
at oracle.sysman.emctl.config.auth.ConfigLDAP.main(
Caused by: connect timed out
at Method)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at com.sun.jndi.ldap.Connection.createSocket(
at com.sun.jndi.ldap.Connection.<init>(




To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.