Error "Cannot locate KDC" when configuring Active Directory
search cancel

Error "Cannot locate KDC" when configuring Active Directory

book

Article ID: 250994

calendar_today

Updated On:

Products

CA Automic Applications Manager (AM)

Issue/Introduction

When configuring and testing Active Directory connection, the following error is seen:

Internal error : Cannot locate KDC : null
 at com.appworx.server.ldap.LDAPAppworxAuthentication.B(LDAPAppworxAuthentication.java:427)
 at com.appworx.server.ldap.LDAPAppworxAuthentication.A(LDAPAppworxAuthentication.java:328)
 at com.appworx.server.ldap.LDAPAppworxAuthentication.C(LDAPAppworxAuthentication.java:239)
 at com.appworx.server.data.AxRmiServer.A(AxRmiServer.java:2615)
 at com.appworx.server.data.D$_B.doOperatorLogin(RemoteClientSocketManager.java:253)
 at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:566)
 at com.uc4.be.util.InvokeUtil.invoke(InvokeUtil.java:122)
 at com.appworx.util.InvokeRequest.invokeMethod(InvokeRequest.java:47)
 at com.appworx.server.data.C.A(ClientServices.java:150)
 at com.appworx.server.data.D$_A.doRun(RemoteClientSocketManager.java:171)
 at com.uc4.be.threading.AbstractWorker.run(AbstractWorker.java:367)
 at java.lang.Thread.run(Thread.java:829)
 at com.appworx.client.screen.util.ClientSocketManager.sendRequest1(ClientSocketManager.java:318)
 at com.appworx.shared.iface.ILogon_Stub.doOperatorLogin(ILogon_Stub.java:109)
 at com.appworx.client.screen.logon.C.A(Logon.java:692)
 at com.appworx.client.screen.logon.C.f(Logon.java:658)
 at com.appworx.client.screen.logon.C.h(Logon.java:504)
 at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
 at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
 at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
 at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
 at javax.swing.AbstractButton.doClick(Unknown Source)
 at javax.swing.plaf.basic.BasicRootPaneUI$Actions.actionPerformed(Unknown Source)
 at javax.swing.SwingUtilities.notifyAction(Unknown Source)
 at javax.swing.JComponent.processKeyBinding(Unknown Source)
 at javax.swing.KeyboardManager.fireBinding(Unknown Source)
 at javax.swing.KeyboardManager.fireKeyboardAction(Unknown Source)
 at javax.swing.JComponent.processKeyBindingsForAllComponents(Unknown Source)
 at javax.swing.JComponent.processKeyBindings(Unknown Source)
 at javax.swing.JComponent.processKeyEvent(Unknown Source)
 at java.awt.Component.processEvent(Unknown Source)
 at java.awt.Container.processEvent(Unknown Source)
 at java.awt.Component.dispatchEventImpl(Unknown Source)
 at java.awt.Container.dispatchEventImpl(Unknown Source)
 at java.awt.Component.dispatchEvent(Unknown Source)
 at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
 at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
 at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
 at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
 at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
 at java.awt.Component.dispatchEventImpl(Unknown Source)
 at java.awt.Container.dispatchEventImpl(Unknown Source)
 at java.awt.Window.dispatchEventImpl(Unknown Source)
 at java.awt.Component.dispatchEvent(Unknown Source)
 at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
 at java.awt.EventQueue.access$500(Unknown Source)
 at java.awt.EventQueue$3.run(Unknown Source)
 at java.awt.EventQueue$3.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
 at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
 at java.awt.EventQueue$4.run(Unknown Source)
 at java.awt.EventQueue$4.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
 at java.awt.EventQueue.dispatchEvent(Unknown Source)
 at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
 at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
 at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
 at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
 at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
 at java.awt.EventDispatchThread.run(Unknown Source)
 Cannot locate KDC

Environment

Release : 9.x

Component : CA Automic Applications Manager

Cause

A kdc.conf file path parameter is set in krb5.conf but cannot be found at the specified path

Example parameter:

[kdc]
profile = /var/kerberos/krb5kdc/kdc.conf

Resolution

The example in Applications Manager documentation regarding the krb5.conf is just an example. Link to documentation here.

Not all parameters in the example krb5.conf may be different or might not be used at all depending on your LDAP, Active Directory, and Kerberos configuration. 

A "Cannot locate KDC" error is seen if the below parameter is used but the kdc.conf file does not exist in the specified location:

[kdc]
profile = /var/kerberos/krb5kdc/kdc.conf

The above parameter, while listed in the documentation example, may not be required at all if your environment does not have or use a kdc.conf file.