Where get com.onresolve.scriptrunner.ldap.LdapUtil

aas December 2, 2020

I want to use LDAP resources in script like described here https://scriptrunner.adaptavist.com/latest/jira/resources.html#_use_ldap_resources_in_scripts

but I can't import com.onresolve.scriptrunner.ldap.LdapUtil

I need jar to add it into atlassian-jira/WEB-INF/lib but where can I download it?

1 answer

0 votes
Daniel Ebers
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 6, 2020

Hi aas,

I might be missing a point but where is the need to download a separate jar-file referenced exactly?
I could not find any hint to that - could you please state where this is documented?

 

From previous experiences it is indeed needed to import the classes but not to install a jar-file (except this has changed - or is something new).

Cheers,
Daniel

aas December 6, 2020

Hi @Daniel Ebers 

I want to use

 com.onresolve.scriptrunner.ldap.LdapUtil

like described here https://scriptrunner.adaptavist.com/5.7.0/confluence/resources.html#_use_ldap_resources_in_scripts but have 

123.png

I had the same problem https://community.atlassian.com/t5/Jira-questions/Unable-to-resolve-class/qaq-p/1427676#M435184 with apache poi libraries. I downloaded this from maven repository and added to $JIRA/atlassian-jira/WEB-INF/lib. So, I decided that with LdapUtil I have to do the same, but couldn't find that library

But I found out that on another instance of Jira I don't have that problem. I suppose that it depends on Jira and scriptrunner version. With Jira v7.13.8 and Scriptrunner 5.6.13 problem, but with v8.5.6 and 6.5.0-p5 everything is ok.

But actually I used workaround with javax.naming.ldap like here https://stackoverflow.com/questions/34149827/fetch-all-users-from-ad-server

Michael Aglas November 23, 2021

you are using the Adpatavist Scriptrunner plugin and it is installed in you application?

aas November 23, 2021

Yes

Suggest an answer

Log in or Sign up to answer