/omero-ldaptool

Command line tool for working with OMERO and LDAP

Primary LanguageJavaGNU General Public License v2.0GPL-2.0

OMERO LDAP tool

Command line tool for working with OMERO and LDAP

Requirements

  • OMERO 5.4.x+
  • Java 8+

Workflow

User lookup

$ omero-ldaptool --help
Usage: <main class> [--debug] [--help] <config> <username>
      <config>     LDAP configuration properties file
      <username>   Username to search for
      --debug      Set logging level to DEBUG
      --help       Display this help and exit

The format of "config" is a standard Java properties file which should at a minimum include the omero.db.* and omero.ldap.* configuration options from your OMERO server.

Additional non-standard options for socket timeout testing:

  • omero.ldap.connect_timeout (in milliseconds; sets com.sun.jndi.ldap.connect.timeout on the Spring LDAP default context source)
  • omero.ldap.read_timeout (in milliseconds; sets com.sun.jndi.ldap.read.timeout on the Spring LDAP default context source)

Development Installation

  1. Clone the repository::

    git clone git@github.com:glencoesoftware/omero-ldaptool.git

  2. Run the Gradle build and utilize the artifacts as required::

    ./gradlew installDist cd build/install ...

Running Tests

Using Gradle run the unit tests:

./gradlew test

Eclipse Configuration

  1. Run the Gradle Eclipse task::

    ./gradlew eclipse