}
/* this is the calling mode where we do the processing */
-
int i;
- struct ctdluser u;
-
for (i=0; i<num_m; ++i) {
- syslog(LOG_DEBUG, "<%s> = <%s>", m[i].name, m[i].emails);
- if (CtdlGetUser(&u, m[i].name) == 0) {
- safestrncpy(u.emailaddrs, m[i].emails, sizeof u.emailaddrs);
- CtdlPutUser(&u);
- }
+ CtdlSetEmailAddressesForUser(m[i].name, m[i].emails);
}
free(m);
num_m = 0;
CCC->user.axlevel = AxAideU;
}
}
+ CtdlPutUserLock(&CCC->user);
/*
* If we are using LDAP authentication, extract the user's email addresses from the directory.
#endif
/*
- * No email address for user? Make one up.
- */
+ * No email address for user? Make one up. (commented out because it appears to break things)
if (IsEmptyStr(CCC->user.emailaddrs)) {
sprintf(CCC->user.emailaddrs, "cit%ld@%s", CCC->user.usernum, CtdlGetConfigStr("c_fqdn"));
}
+ */
- CtdlPutUserLock(&CCC->user);
/*
* Populate cs_inet_email and cs_inet_other_emails with valid email addresses from the user record