int count; //!< Index on next free element.
} fr_ldap_map_exp_t;
-typedef struct ldap_inst_s rlm_ldap_t;
-
/** Thread specific structure to manage LDAP trunk connections.
*
*/
typedef struct {
fr_rb_tree_t *trunks; //!< Tree of LDAP trunks used by this thread
- rlm_ldap_t *inst; //!< Module instance data
fr_ldap_config_t *config; //!< Module instance config
fr_trunk_conf_t *trunk_conf; //!< Module trunk config
fr_event_list_t *el; //!< Thread event list for callbacks / timeouts
fr_value_box_t *in_vb = NULL;
ldap_xlat_thread_inst_t *xt = talloc_get_type_abort(xlat_thread_inst, ldap_xlat_thread_inst_t);
char *host_url;
- fr_ldap_config_t const *handle_config = &xt->t->inst->handle_config;
+ fr_ldap_config_t const *handle_config = xt->t->config;
fr_ldap_thread_trunk_t *ttrunk;
fr_ldap_query_t *query = NULL;
*/
MEM(this_thread->trunks = fr_rb_inline_talloc_alloc(this_thread, fr_ldap_thread_trunk_t, node, fr_ldap_trunk_cmp, NULL));
- this_thread->inst = inst;
this_thread->config = &inst->handle_config;
this_thread->trunk_conf = &inst->trunk_conf;
this_thread->el = el;
#include <freeradius-devel/server/module.h>
#include <freeradius-devel/ldap/base.h>
-typedef struct ldap_inst_s rlm_ldap_t;
-
typedef struct {
tmpl_t *mech; //!< SASL mech(s) to try.
tmpl_t *proxy; //!< Identity to proxy.
char const *reference; //!< Configuration reference string.
} ldap_acct_section_t;
-struct ldap_inst_s {
+typedef struct {
char const *name; //!< Instance name.
CONF_SECTION *cs; //!< Main configuration section for this instance.
//!< are unavailable.
uint32_t ldap_debug; //!< Debug flag for the SDK.
-};
+} rlm_ldap_t;
extern HIDDEN fr_dict_attr_t const *attr_cleartext_password;
extern HIDDEN fr_dict_attr_t const *attr_crypt_password;