blob: 6ccb9d640bfb86c57f609265c53cf0fa47e7e14b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/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=users2,cn=Accounts,dc=example,dc=com "*" memberOf > $tmpfile
$LDIFSORT $tmpfile
search -b cn=Groups,cn=Accounts,dc=example,dc=com "*" memberOf > $tmpfile
$LDIFSORT $tmpfile
search -b cn=users,cn=compat,cn=Accounts,dc=example,dc=com "*" memberOf > $tmpfile
$LDIFSORT $tmpfile
search -b cn=Groups,cn=compat,cn=Accounts,dc=example,dc=com "*" memberOf > $tmpfile
$LDIFSORT $tmpfile
|