#!/bin/sh uid=$1 ldapdelete -h $HOSTNAME -p 389 -D "cn=Directory Manager" -w Secret.123 << EOF uid=$uid,ou=people,dc=example,dc=com EOF