Fixed mailAttributeName and changed ldap attribute gn to givenName.