IBM Support

Configuration task cannot communicate with LDAP server.

Troubleshooting


Problem

Security configuration task fails with "Could not connect to LDAP directory at specified host, port and SSL state"

Symptom

Running a ConfigEngine task for WebSphere Portal security (for example, validate-federated-ldap) results in:


action-validate-ldap-connection:
...
[ldapcheck] javax.naming.CommunicationException: ldaphost.yourcompany.com:389 [Root exception is java.net.UnknownHostException: ldaphost.yourcompany.com]              
[ldapcheck] ERROR: 1                                                  
[ldapcheck] Could not connect to LDAP directory at specified host, port and SSL state.                                                        Target finished: action-validate-ldap-connection                      
Target finished: validate-federated-ldap
...

Resolving The Problem

Verify the LDAP host, port, and SSL state supplied to the configuration task in wkplc.properties. The specific properties will depend on which task you are running. Verify connectivity between the WebSphere Portal server and the LDAP server.

For the specific exception above, "java.net.UnknownHostException: ldaphost.yourcompany.com", ensure that the underlying operating system can resolve the hostname ldaphost.yourcompany.com. Use operating system tools such as ping, host, and nslookup. You may need to update either the hostname in wkplc.properties, the name server (DNS), or a local hosts file.

[{"Product":{"code":"SSHRKX","label":"WebSphere Portal"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Security","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF012","label":"IBM i"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"},{"code":"PF035","label":"z\/OS"}],"Version":"6.1","Edition":"Enable;Extend;Server;Express","Line of Business":{"code":"LOB31","label":"WCE Watson Marketing and Commerce"}}]

Document Information

Modified date:
03 December 2021

UID

swg21423691