DEF(STR, introspection_url),
DEF(BOOLLIST, scope),
DEF(ENUM, introspection_mode),
- DEF(STR_NOVARS, username_format),
+ DEF(STR_NOVARS, username_validation_format),
DEF(STR, username_attribute),
DEF(STR, active_attribute),
DEF(STR, active_value),
.scope = ARRAY_INIT,
.force_introspection = FALSE,
.introspection_mode = ":auth:get:post:local",
- .username_format = "%u",
+ .username_validation_format = "%u",
.username_attribute = "email",
.active_attribute = "",
.active_value = "",
string_t *username_val = t_str_new(strlen(username_value));
- if (var_expand_with_table(username_val, req->db->set->username_format, table,
+ if (var_expand_with_table(username_val, req->db->set->username_validation_format, table,
&error) <= 0) {
*error_r = t_strdup_printf("var_expand(%s) failed: %s",
- req->db->set->username_format, error);
+ req->db->set->username_validation_format, error);
*result_r = PASSDB_RESULT_INTERNAL_FAILURE;
return FALSE;
} else if (strcmp(req->auth_request->fields.user, str_c(username_val)) != 0) {
*/
const char *introspection_mode;
/* normalization var-expand template for username, defaults to %Lu */
- const char *username_format;
+ const char *username_validation_format;
/* name of username attribute to lookup, mandatory */
const char *username_attribute;
/* name of account is active attribute, optional */