blob: 0746e6da33fd1d5686dd183936e7381aaababb4a (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/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=users,cn=compat,cn=accounts,dc=example,dc=com > $tmpfile
$LDIFSORT $tmpfile
search -b cn=groups,cn=compat,cn=accounts,dc=example,dc=com > $tmpfile
$LDIFSORT $tmpfile
|