12 echo "Usage: $0 [--local|-l]"
18 sw_vers -productName | grep -i "Server" >/dev/null 2>&1
19 if [ $? -eq 0 -a -z "$LOCAL" ]; then
26 USER_BASE="/LDAPv3/127.0.0.1/Users"
34 [ -n "$ALL" ] && UID_MIN=0
36 dscl "$HOST" -list "$USER_BASE" | while read x; do
38 id=`dscl "$HOST" -read "$USER_BASE/$x" UniqueID | cut -d: -f2`
39 if [ "$id" -gt $UID_MIN ]; then