You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

18 lines
695 B

#ifndef OAL_CONFIG_H_INCLUDED
#define OAL_CONFIG_H_INCLUDED
typedef struct {
char *bindurls; /** space-separated list ldap of URIs */
char *binddn; /** bind as this user before search for user */
char *bindpass; /** bind with this password */
size_t bindtimeout; /** bind timeout */
char *basedn; /** where to search for users */
short debug; /** enable ldap debug */
char *userfilter; /** ldap filter for user entry */
char error[1024]; /** parser error */
} oal_config_t;
int parse_config(oal_config_t * const config, const char *file);
int check_config(oal_config_t * const config);
#endif /* OAL_CONFIG_H_INCLUDED */