public void setNameField(LdapUserTester.PropertyMapping nameField) {
        this.nameField = nameField;
        if (nameField == null || nameField.getDisplayFormat() == null || nameField.getDisplayFormat().isEmpty() ) {
            properties.remove("ldap.nameField");
        } else {
            properties.put("ldap.nameField", nameField.getDisplayFormat());
        }
    }
Sets the LDAP field name that the user's name is stored in. By default
this is "cn". Another common value is "displayName".

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