X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fldap.c;h=1bc38224c2a15a66b30fade8378a7ae40f94f160;hb=101a081c8c4cc505daf9e102d2b7567cc6194cf2;hp=bdf01e16f4b129ba78b7c839784ef698a70b4129;hpb=c2a329d11a3ef37971f567cc10ac42c42342a96b;p=citadel.git diff --git a/citadel/ldap.c b/citadel/ldap.c index bdf01e16f..1bc38224c 100644 --- a/citadel/ldap.c +++ b/citadel/ldap.c @@ -236,6 +236,27 @@ int CtdlTryPasswordLDAP(char *user_dn, char *password) } +/* + * Learn LDAP attributes and stuff them into the vCard. + * Returns nonzero if we changed anything. + */ +int Ctdl_LDAP_to_vCard(char *ldap_dn, struct vCard *v) +{ + if (!ldap_dn) return(0); + if (!v) return(0); + + /* + * FIXME LDAPSTUB this is a stub function + * + * ldap_dn will contain the DN of the user, and v will contain a pointer to + * the vCard that needs to be (re-)populated. Put the requisite LDAP code here. + * + vcard_set_prop(v, "email;internet", xxx, 0); + return(1); * return nonzero to tell the caller that we made changes that need to be saved * + * + */ + return(0); /* return zero to tell the caller that we didn't make any changes */ +} #endif /* HAVE_LDAP */