#!/bin/sh

for ou in `cat $1`
   do
 ldapsearch -LLL -h ldap.orbit-lab.org -p 389 -x -b "ou=$ou,dc=orbit-lab, dc=org" "objectClass=person" uid| grep ^dn: | echo $ou "$(wc -l)" 
done