* A server-side module for Citadel which supports address book information
* using the standard vCard format.
*
- * Copyright (c) 1999-2020 by the citadel.org team
+ * Copyright (c) 1999-2021 by the citadel.org team
*
* This program is open source software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3.
}
#endif
-
-#ifdef HAVE_LDAP
/*
* Is this an LDAP session? If so, copy various LDAP attributes from the directory entry
* into the user's vCard.
char ldap_cn[512];
char ldap_dn[512];
-syslog(LOG_DEBUG, "\033[31m FIXME BORK BORK BORK try lookup by uid , or maybe dn?\033[0m");
+ syslog(LOG_DEBUG, "\033[31m FIXME BORK BORK BORK try lookup by uid , or maybe dn?\033[0m");
found_user = CtdlTryUserLDAP(usbuf->fullname, ldap_dn, sizeof ldap_dn, ldap_cn, sizeof ldap_cn, &usbuf->uid);
if (found_user == 0) {
}
}
}
-#endif
+
if (need_default_vcard!=0) {
/* Everyone gets an email address based on their display name */
snprintf(buf, sizeof buf, "%s@%s", usbuf->fullname, CtdlGetConfigStr("c_fqdn"));
void vcard_session_login_hook(void) {
struct vCard *v = NULL;
-#ifdef HAVE_LDAP
/*
* Is this an LDAP session? If so, copy various LDAP attributes from the directory entry
* into the user's vCard.
}
}
}
-#endif
/*
* Extract the user's friendly/screen name