LDAP/Jira user importing: jira-ldap-userimporter
I’ve slightly modified the jira-ldap-userimporter script to fit my needs. This script manages the Jira-LDAP integration, by doing a LDAP query to a server and generating a Jelly Script that can run througt the Jira’s Jelly Runner. The goal of this modification is accepting some parameters in the ldap.properties to optionally wrap the <jira:createUser> tags with a <jira:Login> tag, this way the resulting Jelly script can be run as a service.
In my scenario there are continuously adding/removing users, so I should run the jira-ldap-userimporter with crontab and executing the output as Jelly service. I found this modification may be useful for other people.
You can download the jar file from the project’s page, and set the jelly.service=1, jelly.username and jelly.password in ldap.properties.