blob: 8b810aca805308e9328de597e839b82cec730319 (
plain)
1
2
3
4
5
6
7
8
|
#!/bin/sh
tmpfile=`mktemp ${TMP:-/tmp}/ldifXXXXXX`
if test -z "$tmpfile" ; then
echo error creating temporary file
fi
trap 'rm -f "$tmpfile"' EXIT
search -b cn=ng,cn=compat,cn=accounts,dc=example,dc=com > $tmpfile
$LDIFSORT $tmpfile
|