Fixed fatal error with ldap backend