MCPcopy Create free account
hub / github.com/apache/httpd / set_bind_pattern

Function set_bind_pattern

modules/aaa/mod_authnz_ldap.c:1747–1763  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1745}
1746
1747static const char *set_bind_pattern(cmd_parms *cmd, void *_cfg, const char *exp, const char *subst)
1748{
1749 authn_ldap_config_t *sec = _cfg;
1750 ap_regex_t *regexp;
1751
1752 regexp = ap_pregcomp(cmd->pool, exp, AP_REG_EXTENDED);
1753
1754 if (!regexp) {
1755 return apr_pstrcat(cmd->pool, "AuthLDAPInitialBindPattern: cannot compile regular "
1756 "expression '", exp, "'", NULL);
1757 }
1758
1759 sec->bind_regex = regexp;
1760 sec->bind_subst = subst;
1761
1762 return NULL;
1763}
1764
1765static const char *set_bind_password(cmd_parms *cmd, void *_cfg, const char *arg)
1766{

Callers

nothing calls this directly

Calls 1

ap_pregcompFunction · 0.85

Tested by

no test coverage detected