netatalk 4.5.0
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
ldapconfig.h
Go to the documentation of this file.
1#ifdef HAVE_LDAP
2
3#ifndef LDAPCONFIG_H
4#define LDAPCONFIG_H
5
6#ifdef HAVE_INIPARSER_INIPARSER_H
7#include <iniparser/iniparser.h>
8#else
9#include <iniparser.h>
10#endif
11
12/* One function does the whole job */
13 extern int acl_ldap_readconfig(dictionary *iniconfig);
14 extern void acl_ldap_freeconfig(void);
15
16/* These are the prefvalues */
17 extern char *ldap_server;
18 extern int ldap_auth_method;
19 extern char *ldap_auth_dn;
20 extern char *ldap_auth_pw;
21 extern char *ldap_userbase;
22 extern char *ldap_groupbase;
23 extern char *ldap_uuid_attr;
24 extern char *ldap_uuid_string;
25 extern char *ldap_name_attr;
26 extern char *ldap_group_attr;
27 extern char *ldap_uid_attr;
28 extern char *ldap_userfilter;
29 extern char *ldap_groupfilter;
30 extern int ldap_uuid_encoding;
31
32 typedef enum {
33 LDAP_UUID_ENCODING_STRING = 0,
34 LDAP_UUID_ENCODING_MSGUID = 1
35} ldap_uuid_encoding_type;
36
37 struct ldap_pref {
38 const void *pref;
39 char *name;
40 int strorint;
41 int intfromarray;
42 int valid;
43 int valid_save;
44};
45
46 struct pref_array {
47 const char *pref;
49 char *valuestring;
50 int value;
51};
52
53
54
55/* For parsing */
56 extern struct ldap_pref ldap_prefs[];
57 extern struct pref_array prefs_array[];
58 extern int ldap_config_valid;
59
60#endif /* LDAPCONFIG_H */
61
62#endif /* HAVE_LDAP */
ldap_userbase
char * ldap_userbase
Definition ldap.c:50
ldap_groupbase
char * ldap_groupbase
Definition ldap.c:52
ldap_uuid_encoding
int ldap_uuid_encoding
Definition ldap.c:61
ldap_uuid_string
char * ldap_uuid_string
Definition ldap.c:55
ldap_group_attr
char * ldap_group_attr
Definition ldap.c:57
ldap_auth_method
int ldap_auth_method
Definition ldap.c:47
acl_ldap_freeconfig
void acl_ldap_freeconfig(void)
Definition ldap_config.c:38
ldap_auth_dn
char * ldap_auth_dn
Definition ldap.c:48
ldap_auth_pw
char * ldap_auth_pw
Definition ldap.c:49
ldap_uuid_attr
char * ldap_uuid_attr
Definition ldap.c:54
prefs_array
struct pref_array prefs_array[]
Definition ldap.c:85
ldap_prefs
struct ldap_pref ldap_prefs[]
Definition ldap.c:63
ldap_server
char * ldap_server
ldap_uid_attr
char * ldap_uid_attr
Definition ldap.c:58
acl_ldap_readconfig
int acl_ldap_readconfig(dictionary *iniconfig)
Definition ldap_config.c:52
ldap_groupfilter
char * ldap_groupfilter
Definition ldap.c:60
ldap_userfilter
char * ldap_userfilter
Definition ldap.c:59
ldap_name_attr
char * ldap_name_attr
Definition ldap.c:56
ldap_config_valid
int ldap_config_valid
Definition ldap.c:44
ldap_uuid_encoding_type
ldap_uuid_encoding_type
Definition ldapconfig.h:32
LDAP_UUID_ENCODING_MSGUID
@ LDAP_UUID_ENCODING_MSGUID
Definition ldapconfig.h:34
LDAP_UUID_ENCODING_STRING
@ LDAP_UUID_ENCODING_STRING
Definition ldapconfig.h:33
ldap_pref
Definition ldapconfig.h:37
ldap_pref::strorint
int strorint
Definition ldapconfig.h:40
ldap_pref::pref
const void * pref
Definition ldapconfig.h:38
ldap_pref::valid
int valid
Definition ldapconfig.h:42
ldap_pref::name
char * name
Definition ldapconfig.h:39
ldap_pref::valid_save
int valid_save
Definition ldapconfig.h:43
ldap_pref::intfromarray
int intfromarray
Definition ldapconfig.h:41
pref_array
Definition ldapconfig.h:46
pref_array::value
int value
Definition ldapconfig.h:50
pref_array::pref
const char * pref
Definition ldapconfig.h:47
pref_array::valuestring
char * valuestring
Definition ldapconfig.h:49