Synchronization of LDAP users to Citadel is now complete, including email addresses...
[citadel.git] / citadel / user_ops.c
index fe830092701028dc7c3fd35added29a94ca64bdb..191582b6e602a441c9e934ca73e985cca4906275 100644 (file)
@@ -658,7 +658,7 @@ void do_login(void)
        if ((CtdlGetConfigInt("c_auth_mode") == AUTHMODE_LDAP) || (CtdlGetConfigInt("c_auth_mode") == AUTHMODE_LDAP_AD)) {
                char new_emailaddrs[512];
                if (extract_email_addresses_from_ldap(CCC->ldap_dn, new_emailaddrs) == 0) {
-                       strcpy(CCC->user.emailaddrs, new_emailaddrs);
+                       CtdlSetEmailAddressesForUser(CCC->user.fullname, new_emailaddrs);
                }
        }
 #endif