#
# QPHONE - Jim Dutton - 25 Oct 99
#
# query an LDAP database for user telephone number given
# the user's Surname or Common Name
#
if [ $# -eq 0 ]; then
	echo "*** Missing required SURNAME/Common Name for QPHONE ***"
	exit 1
fi
ldapsearch -h <LDAP host> -D qphone -b o=<org>,c=us "(|(sn=$1)(cn=$1))" telephonenumber
