+ /* In host auth mode the user was created with an email address of the users
+ * full name from the passwd gecos field.
+ * Not sure what would have happened if that wasn't set to something
+ * but thats another story
+ * We need to add an email alias to the users vCard for the proper username
+ */
+ if (config.c_auth_mode == AUTHMODE_HOST)
+ {
+ char user_alias[SIZ];
+
+ if (strcmp(username, newusername))
+ {
+ sprintf(user_alias, "%s@%s", newusername, config.c_fqdn);
+ vcard_add_alias(&usbuf, user_alias);
+ }
+ }
+