Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Where get com.onresolve.scriptrunner.ldap.LdapUtil Edited

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 Community Leader Dec 06, 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

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

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you