| 354 | } |
| 355 | |
| 356 | static const char *authn_ap_auth_name(request_rec *r) |
| 357 | { |
| 358 | authn_core_dir_conf *conf; |
| 359 | const char *err = NULL, *name; |
| 360 | |
| 361 | conf = (authn_core_dir_conf *) ap_get_module_config(r->per_dir_config, |
| 362 | &authn_core_module); |
| 363 | |
| 364 | if (conf->ap_auth_name) { |
| 365 | name = ap_expr_str_exec(r, conf->ap_auth_name, &err); |
| 366 | if (err) { |
| 367 | ap_log_rerror( |
| 368 | APLOG_MARK, APLOG_ERR, APR_SUCCESS, r, APLOGNO(02835) "AuthName expression could not be evaluated: %s", err); |
| 369 | return NULL; |
| 370 | } |
| 371 | |
| 372 | return ap_escape_quotes(r->pool, name); |
| 373 | } |
| 374 | |
| 375 | return NULL; |
| 376 | } |
| 377 | |
| 378 | static const command_rec authn_cmds[] = |
| 379 | { |
no test coverage detected