Test your LDAP connection with PHP+httpd or php-cli.