#!/bin/bash # Smoke test RewriterProxy.java using OpenDJ tools. # Depends on http://opendj.forgerock.org/Example.ldif being in OpenDJ. OPENDJ_TOOLS_DIR="/path/to/OpenDJ/bin" # ldapcompare, ldapdelete, ldapmodify, ldapsearch HOST=localhost # Host where proxy listens PORT=8389 # Port where proxy listens BINDDN="uid=kvaughan,ou=People,dc=example,dc=com" BINDPWD=bribery CURRDIR=`pwd` if [ -e $OPENDJ_TOOLS_DIR ] then cd $OPENDJ_TOOLS_DIR else exit 1 fi #set -x echo Deleting uid=fdupont,ou=People,o=example... ./ldapdelete -h $HOST -p $PORT -D $BINDDN -w $BINDPWD uid=fdupont,ou=People,o=example echo add() { echo Adding uid=fdupont,ou=People,o=example... ./ldapmodify -h $HOST -p $PORT -D $BINDDN -w $BINDPWD -a <