int CtdlTryPasswordLDAP(char *user_dn, const char *password);
int Ctdl_LDAP_to_vCard(char *ldap_dn, struct vCard *v);
int extract_email_addresses_from_ldap(char *ldap_dn, char *emailaddrs);
-void CtdlPopulateUsersFromLDAP(void);
+void CtdlSynchronizeUsersFromLDAP(void);
/* Then, do the "once per minute" stuff... */
if (do_perminute_housekeeping_now) {
cdb_check_handles();
- //CtdlPopulateUsersFromLDAP(); // This one isn't from a module so we put it here
+#ifdef HAVE_LDAP
+ CtdlSynchronizeUsersFromLDAP(); // This one isn't from a module so we put it here
+#endif
PerformSessionHooks(EVT_TIMER); // Run all registered TIMER hooks
}
/*
* Scan LDAP for users and populate Citadel's user database with everyone
*/
-void CtdlPopulateUsersFromLDAP(void)
+void CtdlSynchronizeUsersFromLDAP(void)
{
LDAP *ldserver = NULL;
int i;
* getuserbyuid() - get user by system uid (for PAM mode authentication)
* returns 0 if user was found
*
- * WARNING: don't use this function unless you absolutely have to. It does
- * a sequential search and therefore is computationally expensive.
+ * WARNING: don't use this function unless you absolutely have to. It does
+ * a sequential search and therefore is computationally expensive.
+ *
+ * FIXME: build an index, dummy.
*/
int getuserbyuid(struct ctdluser *usbuf, uid_t number)
{