Vcard Name Wrong

I am having some issues getting my vcard to show the fullname. We are running openfire 3.5.1 on debian, doing sso against active directory. No configus have been changed in a while, but all the sudden the buddy lists were just showing the first name. I checked the config and the vcard name tag did not have the FAMILY tag inside the tag. So I added that, now when I view a profile I see first name in first name field and last name in last name field, but the user still just shows up as firstname. Any ideas?

Thanks.

I am going to go ahead and answer my own question. I have no idea how this has worked for the past 2-3 years and all the sudden it didn’t work, because nothing was changed in the config in the past 2 years. Anyway, the change needed was after the vcard, and in the config

<ORG>
    <ORGUNIT>{department}</ORGUNIT>
  </ORG>
</vCard>]]></vcard-mapping>
    <nameField>displayName</nameField>
    <emailField>mail</emailField>
    <groupNameField>cn</groupNameField>
    <groupMemberField>member</groupMemberField>
    <groupDescriptionField>description</groupDescriptionField>
    <posixMode>false</posixMode>
    <groupSearchFilter>(objectClass=group)(cn=chat_*)</groupSearchFilter>
  </ldap>