* Continued integrating ldap auth
[citadel.git] / citadel / citadel_ldap.h
1 /*
2  * 
3  */
4
5 #define CTDL_LDAP_HOST  "ldaptest.xand.com"
6 #define CTDL_LDAP_PORT  LDAP_PORT               /* defined as 389 */
7 #define BASE_DN         "dc=xand,dc=com"
8 #define BIND_DN         NULL                    /* "cn=Manager,dc=xand,dc=com" for authenticated bind */
9 #define BIND_PW         NULL                    /* put pw here for authenticated bind */
10 #define SEARCH_STRING   "(&(objectclass=posixAccount)(uid=%s))"
11
12 int CtdlTryUserLDAP(char *username, char *found_dn, int found_dn_size, char *fullname, int fullname_size, int *found_uid);
13 int CtdlTryPasswordLDAP(char *user_dn, char *password);