1 
2 /* LDAP posixAccount handler for Pure-FTPd */
3 /* (C)opyleft 2001-2019 by Frank DENIS <j at pureftpd dot org> */
4 
5 #ifndef __LOG_LDAP_P_H__
6 #define __LOG_LDAP_P_H__ 1
7 
8 #define LDAP_DEPRECATED 1
9 #include <lber.h>
10 #include <ldap.h>
11 
12 static char *ldap_uri;
13 static char *ldap_scheme;
14 static char *ldap_host;
15 static char *port_s;
16 static int port;
17 static char *binddn;
18 static char *pwd;
19 static char *base;
20 static char *ldap_filter;
21 static char *ldap_homedirectory;
22 static char *ldap_version_s;
23 static int ldap_version;
24 static char *default_uid_s;
25 static char *force_default_uid_s;
26 static int force_default_uid = 0;
27 static uid_t default_uid = 0;
28 static char *default_gid_s;
29 static char *force_default_gid_s;
30 static int force_default_gid = 0;
31 static gid_t default_gid = 0;
32 static char *use_tls_s;
33 static int use_tls;
34 static char *ldap_auth_method_s;
35 static int use_ldap_bind_method;
36 static char *ldap_default_home_directory;
37 
38 static ConfigKeywords ldap_config_keywords[] = {
39     { "LDAPScheme", &ldap_scheme },
40     { "LDAPServer", &ldap_host },
41     { "LDAPPort", &port_s },
42     { "LDAPBindDN", &binddn },
43     { "LDAPBindPW", &pwd },
44     { "LDAPBaseDN", &base },
45     { "LDAPFilter", &ldap_filter},
46     { "LDAPHomeDir", &ldap_homedirectory },
47     { "LDAPVersion", &ldap_version_s },
48     { "LDAPDefaultUID", &default_uid_s },
49     { "LDAPForceDefaultUID", &force_default_uid_s },
50     { "LDAPDefaultGID", &default_gid_s },
51     { "LDAPForceDefaultGID", &force_default_gid_s },
52     { "LDAPUseTLS", &use_tls_s },
53     { "LDAPAuthMethod", &ldap_auth_method_s },
54     { "LDAPDefaultHomeDirectory", &ldap_default_home_directory },
55     { NULL, NULL }
56 };
57 
58 #endif
59