* Began (but did not finish) applying GPL3+ declarations to each source file. This...
[citadel.git] / citadel / citadel_ldap.h
index 0009c0093fad5a794a0aac5295cb9b17418830c1..d29df7fc8fb3c52b52a94a122193a66bfb58a16a 100644 (file)
@@ -1,13 +1,25 @@
 /*
- * 
+ * $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
+ *
+ *  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 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
  */
 
-#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);
+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 Ctdl_LDAP_to_vCard(char *ldap_dn, struct vCard *v);