Lines Matching refs:map
26 const struct dict_ldap_map *map;
60 dict_ldap_map_match(const struct dict_ldap_map *map, const char *path,
69 pat = map->pattern;
94 *pat_len_r = pat - map->pattern;
119 *pat_len_r = pat - map->pattern;
127 if (pat != map->pattern && pat[-1] != '/')
193 ldap_dict_build_query(struct ldap_dict *dict, const struct dict_ldap_map *map,
208 template = t_strdup_printf("(&(%s=%s)%s)", map->username_attribute, "%{username}", map->filter);
210 template = map->filter;
213 for(size_t i = 0; i < array_count(values) && i < array_count(&map->ldap_attributes); i++) {
216 const char *const *long_keyp = array_idx(&map->ldap_attributes, i);
326 const char *const *values = ldap_entry_get_attribute(entry, op->map->value_attribute);
331 i_debug("ldap_dict_lookup_callback got attribute %s", op->map->value_attribute);
339 i_debug("ldap_dict_lookup_callback dit not get attribute %s", op->map->value_attribute);
433 const struct dict_ldap_map *map = ldap_dict_find_map(ctx, key, &values);
435 if (map != NULL) {
436 op->map = map;
437 attributes[0] = map->value_attribute;
440 input.base_dn = map->base_dn;
441 input.scope = map->scope_val;
442 if (!ldap_dict_build_query(ctx, map, &values, strncmp(key, DICT_PATH_PRIVATE, strlen(DICT_PATH_PRIVATE))==0, query, &error)) {