Fixes: #2411 Fixes a PHP fatal_error about non existing $ldap