X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fcitadel_ldap.h;h=fdf199b0185b2070de6134082a0a2c37bb568dab;hb=219bbe065f3a3e1117f3fadd3e28164098d4f625;hp=e8c65a5d2bb87d50a451f0882c65879872ad2d62;hpb=263eb53ff5e8a68b61789dad6ac3f999d98e8f2c;p=citadel.git diff --git a/citadel/citadel_ldap.h b/citadel/citadel_ldap.h index e8c65a5d2..fdf199b01 100644 --- a/citadel/citadel_ldap.h +++ b/citadel/citadel_ldap.h @@ -1,25 +1,18 @@ /* - * $Id$ - * * Configuration for LDAP authentication. Most of this stuff gets pulled out of our site config file. * - * Copyright (c) 1987-2009 by the citadel.org team + * Copyright (c) 1987-2017 by the citadel.org team * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. + * 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. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -int CtdlTryUserLDAP(char *username, char *found_dn, int found_dn_size, char *fullname, int fullname_size, uid_t *found_uid); +int CtdlTryUserLDAP(char *username, char *found_dn, int found_dn_size, char *fullname, int fullname_size, uid_t *found_uid, int lookup_based_on_uid); 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);