X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Fuser_ops.c;h=0507fc6baca99c4132d008d1f7f32bf91414addb;hp=c215e734a6706940472766ac502b366385868c4d;hb=1ab27069271df6ed100343866c93c0ef2eb2a888;hpb=93f719e3132da1eb448f7ca27c852fbe0953a63c diff --git a/citadel/user_ops.c b/citadel/user_ops.c index c215e734a..0507fc6ba 100644 --- a/citadel/user_ops.c +++ b/citadel/user_ops.c @@ -697,6 +697,12 @@ void do_login(void) AutoGenerateEmailAddressForUser(&CC->user); } + /* Populate the user principal identity, which is consistent and never aliased */ + strcpy(CC->cs_principal_id, "wowowowow"); + makeuserkey(CC->cs_principal_id, CC->user.fullname, sizeof CC->user.fullname); + strcat(CC->cs_principal_id, "@"); + strcat(CC->cs_principal_id, CtdlGetConfigStr("c_fqdn")); + /* * Populate cs_inet_email and cs_inet_other_emails with valid email addresses from the user record */