us.uid = NATIVE_AUTH_UID;
}
CtdlPutUserLock(&us);
+ if (us.uid > 0) { // if non-native auth , index by uid
+ StrBuf *claimed_id = NewStrBuf();
+ StrBufPrintf(claimed_id, "uid:%d", us.uid);
+ attach_extauth(&us, claimed_id);
+ FreeStrBuf(&claimed_id);
+ }
}
ptr = uplist;
syslog(LOG_INFO, "Existing database version on disk is %d", CtdlGetConfigInt("MM_hosted_upgrade_level"));
+
+
+ reindex_uids(); // FIXME FIXME FIXME remove this line after testing
+
+
if (CtdlGetConfigInt("MM_hosted_upgrade_level") < REV_LEVEL) {
syslog(LOG_WARNING, "Server hosted updates need to be processed at this time. Please wait...");
}
QRoom.QRdefaultview = VIEW_QUEUE;
CtdlPutRoom(&QRoom);
}
- if (!CtdlGetRoom(&QRoom, FNBL_QUEUE_ROOM)) {
- QRoom.QRdefaultview = VIEW_QUEUE;
- CtdlPutRoom(&QRoom);
- }
}
if ((CtdlGetConfigInt("MM_hosted_upgrade_level") > 000) && (CtdlGetConfigInt("MM_hosted_upgrade_level") < 902)) {
#define PAGELOGROOM "Sent/Received Pages"
#define SYSCONFIGROOM "Local System Configuration"
#define SMTP_SPOOLOUT_ROOM "__CitadelSMTPspoolout__"
-#define FNBL_QUEUE_ROOM "__CitadelFNBLqueue__"
+
/*
* Where we keep messages containing the vCards that source our directory. It
* makes no sense to change this, because you'd have to change it on every
CtdlPutUser(usbuf);
cdb_store(CDB_USERSBYNUMBER, &usbuf->usernum, sizeof(long), usbuf->fullname, strlen(usbuf->fullname)+1);
+ /* If non-native auth, index by uid */
+ if (usbuf->uid > 0) {
+ StrBuf *claimed_id = NewStrBuf();
+ StrBufPrintf(claimed_id, "uid:%d", usbuf->uid);
+ attach_extauth(usbuf, claimed_id);
+ FreeStrBuf(&claimed_id);
+ }
+
return 0;
}