#!/bin/bash
/usr/bin/time --format=%e /usr/bin/ldapsearch -o nettimeout=27 -x -h $1 -p 389 -D "$2" -w "$3" -s base 2>&1 | grep "result: 0 Success" | wc -l
Powered by TurnKey Linux.