---
title: Ping Identity DevOps Docker Image - <code>ldap-sdk-tools</code>
description: This docker image provides an alpine image with the LDAP Client SDK tools to be used against other PingDirectory instances.
component: devops
page_id: devops::docker-images/ldap-sdk-tools/README
canonical_url: https://developer.pingidentity.com/devops/docker-images/ldap-sdk-tools/README.html
section_ids:
  devops-related-docker-images: Related Docker Images
  devops-environment-variables: Environment Variables
  devops-list-all-available-tools: List all available tools
  devops-use-ldapsearch: Use LDAPSearch
  get-some-help: Get some help
  devops-simple-search: Simple search
  devops-save-output-to-host-file: Save output to host file
  devops-use-manage-certificates: Use manage-certificates
  trusting-certificates: trusting certificates
  devops-docker-container-hook-scripts: Docker Container Hook Scripts
---

# Ping Identity DevOps Docker Image - `ldap-sdk-tools`

This docker image provides an alpine image with the LDAP Client SDK tools to be used against other PingDirectory instances.

## Related Docker Images

* `openjdk:8-jre8-alpine` - Alpine server to run LDAP SDK Tools from

## Environment Variables

The following environment `ENV` variables can be used with this image.

| ENV Variable           | Default            | Description       |
| ---------------------- | ------------------ | ----------------- |
| SHIM                   | ${SHIM}            |                   |
| IMAGE\_VERSION         | ${IMAGE\_VERSION}  |                   |
| IMAGE\_GIT\_REV        | ${IMAGE\_GIT\_REV} |                   |
| DATE                   | ${DATE}            |                   |
| PING\_PRODUCT\_VERSION | ${VERSION}         |                   |
| PATH                   | /opt/tools:${PATH} |                   |
| PING\_PRODUCT          | ldap-sdk-tools     | Ping product name |

### List all available tools

`docker run -it --rm pingidentity/ldap-sdk-tools:edge ls`

### Use LDAPSearch

### Get some help

```shell
docker run -it --rm pingidentity/ldap-sdk-tools:edge ldapsearch --help
```

#### Simple search

```shell
docker run -it --rm pingidentity/ldap-sdk-tools:edge \
    ldapsearch \
        -b dc=example,dc=com \
        -p 1389 "(objectClass=*)"
```

#### Save output to host file

```shell
docker run -it --rm \
    -v /tmp:/opt/out \
    pingidentity/ldap-sdk-tools:edge \
    ldapsearch \
        --baseDN dc=example,dc=com \
        --port 1389 \
        --outputFormat json "(objectClass=*)" >/tmp/search-result.json
```

### Use manage-certificates

### trusting certificates

```shell
PWD=2FederateM0re
mkdir -p /tmp/hibp
docker run -it --rm \
  -v /tmp/hibp:/opt/out \
  pingidentity/ldap-sdk-tools:edge \
  manage-certificates trust-server-certificate \
    --hostname haveibeenpwned.com \
    --port 1443 \
    --keystore /opt/out/hibp-2019.jks \
    --keystore-password ${PWD}
ls -all /tmp/hibp
keytool -list \
  -keystore /tmp/hibp/hibp-2019.jks \
  -storepass ${PWD}
```

### Docker Container Hook Scripts

Please go [here](https://github.com/pingidentity/pingidentity-devops-getting-started/tree/master/docs/docker-images/ldap-sdk-tools/hooks/README.md) for details on all ldap-sdk-tools hook scripts

***

This document is auto-generated from *[ldap-sdk-tools/Dockerfile](https://github.com/pingidentity/pingidentity-docker-builds/blob/master/ldap-sdk-tools/Dockerfile)*

Copyright © 2026 Ping Identity Corporation
