fixed the accidental default to '' on LDAP_METHOD, close #339