Improve documentation:
[citadel.git] / citadel / citadel_ldap.h
index 41cae48ea1f203a7dd8d883af4e298d3596f9967..9a312795a37c96888701dba8576831361a5f1341 100644 (file)
@@ -1,8 +1,17 @@
 /*
  * Configuration for LDAP authentication.  Most of this stuff gets pulled out of our site config file.
+ *
+ * Copyright (c) 1987-2012 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 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 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);