make tests work on systems without php5_ldap