Update openldap.sh

Added a $pass variable check.