public void setEmailField(String emailField) {
        this.emailField = emailField;
        if (emailField == null) {
            properties.remove("ldap.emailField");
        }
        else {
            properties.put("ldap.emailField", emailField);
        }
    }
Sets the LDAP field name that the user's email address is stored in.
By default this is "mail".

@param emailField the LDAP field that that corresponds to the user's
     email address.
xmppserver/src/main/java/org/jivesoftware/openfire/ldap/LdapManager.java