X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Fcitadel_ldap.h;h=b1305b83c5f383c5ebd581c1d0cc80694c0327a9;hp=aff1a363f237f1263da3f4116664ea875f2f9149;hb=1cf98031e3530393ec5fb753567bf496c6277ab3;hpb=dc3e60379e1563c55e4e4269e4011e7e1968fc5d diff --git a/citadel/citadel_ldap.h b/citadel/citadel_ldap.h index aff1a363f..b1305b83c 100644 --- a/citadel/citadel_ldap.h +++ b/citadel/citadel_ldap.h @@ -1,13 +1,19 @@ /* - * + * Configuration for LDAP authentication. Most of this stuff gets pulled out of our site config file. + * + * Copyright (c) 1987-2017 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. + * + * 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. */ -#define CTDL_LDAP_HOST "ldaptest.xand.com" -#define CTDL_LDAP_PORT LDAP_PORT /* defined as 389 */ -#define BASE_DN "dc=xand,dc=com" -#define BIND_DN NULL /* "cn=Manager,dc=xand,dc=com" for authenticated bind */ -#define BIND_PW NULL /* put pw here for authenticated bind */ -#define SEARCH_STRING "(&(objectclass=posixAccount)(uid=%s))" - int CtdlTryUserLDAP(char *username, char *found_dn, int found_dn_size, char *fullname, int fullname_size, uid_t *found_uid); -int CtdlTryPasswordLDAP(char *user_dn, char *password); +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 CtdlSynchronizeUsersFromLDAP(void);