Lines Matching refs:rule
4 Library for rule based certificate to user mapping
60 /* rule starts with ':', empty type */
92 CM_DEBUG(ctx, "Failed to read rule type.");
99 CM_DEBUG(ctx, "Failed to parse KRB5 matching rule.");
103 CM_DEBUG(ctx, "Unsupported matching rule type.");
126 CM_DEBUG(ctx, "Failed to read rule type.");
133 CM_DEBUG(ctx, "Failed to parse LDAP mapping rule.");
137 CM_DEBUG(ctx, "Unsupported mapping rule type.");
156 struct match_map_rule *rule;
168 rule = talloc_zero(tmp_ctx, struct match_map_rule);
169 if (rule == NULL) {
174 rule->priority = priority;
181 rule->parsed_match_rule = talloc_steal(rule, parsed_match_rule);
182 rule->match_rule = talloc_strdup(rule, match_rule);
183 if (rule->match_rule == NULL) {
199 rule->parsed_mapping_rule = talloc_steal(rule, parsed_mapping_rule);
200 rule->map_rule = talloc_strdup(rule, map_rule);
201 if (rule->map_rule == NULL) {
214 rule->domains = talloc_zero_array(rule, char *, c + 1);
215 if (rule->domains == NULL) {
220 rule->domains[c] = talloc_strdup(rule->domains, domains[c]);
221 if (rule->domains[c] == NULL) {
235 ctx->prio_list->priority = rule->priority;
236 ctx->prio_list->rule_list = rule;
238 for (p = ctx->prio_list; p != NULL && p->priority < rule->priority;
241 DLIST_ADD(p->rule_list, rule);
249 p_new->priority = rule->priority;
250 p_new->rule_list = rule;
262 talloc_steal(ctx, rule);
897 CM_DEBUG((*ctx), "Failed to parse default mapping rule.");