Lines Matching refs:errh
22 log_error_st *errh; member
183 static void mod_authn_ldap_err(log_error_st *errh, const char *file, unsigned long line, const char…
242 ldc->errh = srv->errh; in SETDEFAULTS_FUNC()
266 log_error(srv->errh, __FILE__, __LINE__, in SETDEFAULTS_FUNC()
340 mod_authn_ldap_err(srv->errh, __FILE__, __LINE__, in SETDEFAULTS_FUNC()
351 static void mod_authn_ldap_err(log_error_st *errh, const char *file, unsigned long line, const char… in mod_authn_ldap_err() argument
353 log_error(errh, file, line, "ldap: %s: %s", fn, ldap_err2string(err)); in mod_authn_ldap_err()
357 static void mod_authn_ldap_opt_err(log_error_st *errh, const char *file, unsigned long line, const … in mod_authn_ldap_opt_err() argument
361 mod_authn_ldap_err(errh, file, line, fn, err); in mod_authn_ldap_opt_err()
491 static LDAP * mod_authn_ldap_host_init(log_error_st *errh, plugin_config_ldap *s) { in mod_authn_ldap_host_init() argument
498 log_perror(errh, __FILE__, __LINE__, "ldap: ldap_initialize()"); in mod_authn_ldap_host_init()
505 mod_authn_ldap_err(errh, __FILE__, __LINE__, "ldap_set_option()", ret); in mod_authn_ldap_host_init()
530 mod_authn_ldap_err(errh, __FILE__, __LINE__, in mod_authn_ldap_host_init()
540 mod_authn_ldap_err(errh,__FILE__,__LINE__,"ldap_start_tls_s()",ret); in mod_authn_ldap_host_init()
549 static int mod_authn_ldap_bind(log_error_st *errh, LDAP *ld, const char *dn, const char *pw) { in mod_authn_ldap_bind() argument
565 mod_authn_ldap_err(errh, __FILE__, __LINE__, "ldap_sasl_bind_s()", ret); in mod_authn_ldap_bind()
577 ? mod_authn_ldap_bind(s->errh, ld, in mod_authn_ldap_rebind_proc()
580 : mod_authn_ldap_bind(s->errh, ld, NULL, NULL); in mod_authn_ldap_rebind_proc()
583 static LDAPMessage * mod_authn_ldap_search(log_error_st *errh, plugin_config_ldap *s, const char *b… in mod_authn_ldap_search() argument
612 s->ldap = mod_authn_ldap_host_init(errh, s); in mod_authn_ldap_search()
628 log_error(errh, __FILE__, __LINE__, in mod_authn_ldap_search()
638 static char * mod_authn_ldap_get_dn(log_error_st *errh, plugin_config_ldap *s, const char *base, co… in mod_authn_ldap_get_dn() argument
644 lm = mod_authn_ldap_search(errh, s, base, filter); in mod_authn_ldap_get_dn()
656 log_error(errh, __FILE__, __LINE__, in mod_authn_ldap_get_dn()
662 mod_authn_ldap_opt_err(errh,__FILE__,__LINE__,"ldap_first_entry()",ld); in mod_authn_ldap_get_dn()
668 mod_authn_ldap_opt_err(errh,__FILE__,__LINE__,"ldap_get_dn()",ld); in mod_authn_ldap_get_dn()
677 static handler_t mod_authn_ldap_memberOf(log_error_st *errh, plugin_config *s, const http_auth_requ… in mod_authn_ldap_memberOf() argument
697 LDAPMessage *lm = mod_authn_ldap_search(errh, ldc, base, filter->ptr); in mod_authn_ldap_memberOf()
726 log_error_st * const errh = r->conf.errh; in mod_authn_ldap_basic() local
752 dn = mod_authn_ldap_get_dn(errh, p->conf.ldc, in mod_authn_ldap_basic()
770 ldc_custom.errh = errh; in mod_authn_ldap_basic()
784 ld = mod_authn_ldap_host_init(errh, p->conf.ldc); in mod_authn_ldap_basic()
791 mod_authn_ldap_err(errh,__FILE__,__LINE__,"ldap_set_option()",ret); in mod_authn_ldap_basic()
795 if (LDAP_SUCCESS != mod_authn_ldap_bind(errh, ld, dn, pw)) in mod_authn_ldap_basic()
806 rc = mod_authn_ldap_memberOf(errh,&p->conf,require,username,dn); in mod_authn_ldap_basic()