You are currently reviewing an older revision of this page.

DRAFT KB-XXXX "Error evaluating function 'ldapsearch': For input string:" error thrown when using ldapSearch function over LDAPS

Symptoms

When trying to use the ldapSearch() function from the LDAP Tools plugin over LDAPS (LDAP over SSL) the following error occurs in the expression editor:

Expression evaluation error at function 'ldapsearch': Error evaluating function 'ldapsearch' : For input string: "636/dc=internal,dc=server,dc=com"

There are no errors printed in the application server log.

Cause

The plugin cannot correctly parse the given LDAPS URL when the base DN is appended to the connection URL.

Action

Instead of specifying the base DN within the url field of the LDAP config object, use the basedn field to specify the needed base DN.

For example, instead of using

url: "ldaps://<ldaps_server>:636/dc=internal,dc=<server>,dc=com"

perform the following:

url: "ldaps://<ldaps_server>:636",

baseDn: "dc=internal,dc=<server>,dc=com"

Affected Versions

This article applies to all versions of Appian.

Last Reviewed: January 2018