Ping Identity 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 ¶
docker run -it --rm pingidentity/ldap-sdk-tools:edge ldapsearch --help
Simple search ¶
docker run -it --rm pingidentity/ldap-sdk-tools:edge \
ldapsearch \
-b dc=example,dc=com \
-p 1389 "(objectClass=*)"
Save output to host file ¶
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 ¶
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 for details on all ldap-sdk-tools hook scripts
This document is auto-generated from ldap-sdk-tools/Dockerfile
Copyright © 2024 Ping Identity Corporation. All rights reserved.