I was able to successfully setup the ldap connection but when I tried to run the sample script:
import com.onresolve.scriptrunner.ldap.LdapUtil
def cnList = LdapUtil.withTemplate('corporate') {
template -> template.search("", "(sn=Smi*)", SearchControls.SUBTREE_SCOPE, { attributes ->
attributes.get('cn').get() } as AttributesMapper<String>)
}
I'm getting the error: Unable to resolve class AttributesMapper
Jira version 8.5.1
Script Runner version: 5.7.0.1-p5