Searched refs:list (Results 1 - 25 of 56) sorted by relevance

123

/sssd/src/util/
H A Ddlinklist.h3 some simple double linked list macros
27 /* hook into the front of the list */
28 #define DLIST_ADD(list, p) \
30 if (!(list)) { \
31 (list) = (p); \
34 (list)->prev = (p); \
35 (p)->next = (list); \
37 (list) = (p); \
41 /* remove an element from a list - element doesn't have to be in list
[all...]
H A Dutil.c44 char **list = NULL; local
88 /* Copy the substring to the output list of strings */
90 list = talloc_realloc(tmp_ctx, list, char*, num_strings + 2);
91 if (list == NULL) {
97 list[num_strings] = talloc_strndup(list, substr_begin, substr_len);
98 if (list[num_strings] == NULL) {
107 if (list == NULL) {
109 list
700 string_in_list(const char *string, char **list, bool case_sensitive) argument
[all...]
/sssd/src/responder/common/
H A Dresponder_utils.c29 attr_in_list(const char **list, size_t nlist, const char *str) argument
34 if (strcasecmp(list[i], str) == 0) {
47 const char **list = NULL; local
67 "Cannot parse attribute ACL list %s: %d\n", conf_str, ret);
107 list = talloc_zero_array(tmp_ctx, const char *, list_size + 1);
108 if (list == NULL) {
119 list[li] = talloc_strdup(list, allow[i]);
120 if (list[li] == NULL) {
137 list[l
[all...]
H A Dresponder_cmd.c183 /* Need to modify the list from a talloc destructor */
207 struct setent_req_list **list,
219 DLIST_ADD_END(*list, entry, struct setent_req_list *);
220 entry->head = list;
226 void setent_notify(struct setent_req_list **list, errno_t err) argument
231 while ((reql = *list) != NULL) {
233 * the request, removing it from the list.
241 if (reql == *list) {
249 *list = (*list)
205 setent_add_ref(TALLOC_CTX *memctx, void *pvt, struct setent_req_list **list, struct tevent_req *req) argument
254 setent_notify_done(struct setent_req_list **list) argument
[all...]
/sssd/src/db/
H A Dsysdb_ranges.c58 struct range_info **list; local
81 list = talloc_zero_array(tmp_ctx, struct range_info *, res->count + 1);
82 if (list == NULL) {
88 list[c] = talloc_zero(list, struct range_info);
89 if (list[c] == NULL) {
101 list[c]->name = talloc_strdup(list, tmp_str);
102 if (list[c]->name == NULL) {
110 list[
[all...]
H A Dsysdb.c758 const char *const *list)
771 for (num = 0; list[num]; num++) /* count */ ;
785 member = sysdb_user_strdn(el->values, domain, list[i]);
788 "Failed to get user dn for [%s]\n", list[i]);
970 /* Search for all incidences of attr_name in a list of
971 * sysdb_attrs and add their value to a list
985 char **list; local
996 list = talloc_array(mem_ctx, char *, attr_count+1);
997 if (!list) {
1008 * Copy it to the output list
755 sysdb_attrs_users_from_str_list(struct sysdb_attrs *attrs, const char *attr_name, const char *domain, const char *const *list) argument
1455 char **list; local
[all...]
/sssd/src/tests/cwrap/
H A Dtest_responder_common.c48 uid_t *list; local
55 ret = csv_string_to_uid_array(tmp_ctx, "1, 2, 3", false, &count, &list);
58 assert_int_equal(list[0], 1);
59 assert_int_equal(list[1], 2);
60 assert_int_equal(list[2], 3);
62 talloc_free(list);
72 uid_t *list; local
79 ret = csv_string_to_uid_array(tmp_ctx, "sssd, foobar", true, &count, &list);
82 assert_int_equal(list[0], 123);
83 assert_int_equal(list[
95 uid_t *list = NULL; local
[all...]
/sssd/src/config/etc/
H A Dsssd.api.conf21 services = list, str, true, nss, pam
22 domains = list, str, true
39 filter_users = list, str, false
40 filter_groups = list, str, false
47 allowed_shells = list, str, false
48 vetoed_shells = list, str, false
109 forward_headers = list, None, false
148 filter_users = list, str, false
149 filter_groups = list, str, false
/sssd/src/tests/
H A Dcommon_dom.c83 char *list = NULL; local
94 /* get current domain list */
96 NULL, &list);
102 if (list != NULL) {
103 ret = split_on_separator(tmp_ctx, list, ',', true, true, &array, NULL);
116 /* add domain to the list of enabled domains */
118 if (list == NULL) {
119 list = talloc_strdup(tmp_ctx, name);
121 list = talloc_asprintf_append(list, ",
[all...]
H A Dutil-tests.c47 char **list = NULL; local
52 ret = add_string_to_list(global_talloc_context, "ABC", &list);
53 fail_unless(ret == EOK, "Adding string to non-existing list failed.");
54 fail_unless(list != NULL, "No new list created.");
55 fail_unless(list[0] != NULL, "String not added to new list.");
56 fail_unless(strcmp(list[0], "ABC") == 0,
57 "Wrong string added to newly created list.");
58 fail_unless(list[
86 char *list[] = {discard_const("ABC"), local
788 char **list = NULL; local
[all...]
H A Ddlopen-tests.c192 static void remove_library_from_list(const char *library, char **list, argument
196 if (list[i] != NULL && strcmp(library, list[i]) == 0) {
197 /* found library need to be removed from list */
198 free(list[i]);
199 list[i] = NULL;
/sssd/src/sss_client/idmap/
H A Dsss_nss_idmap.c80 struct sss_nss_kv *list; local
95 list = calloc((count + 1), sizeof(struct sss_nss_kv));
96 if (list == NULL) {
102 list[c].key = strdup((char *) p);
103 if (list[c].key == NULL) {
115 list[c].value = strdup((char *) p);
116 if (list[c].value == NULL) {
129 *kv_list = list;
135 sss_nss_free_kv(list);
/sssd/src/responder/ifp/
H A Difp_components.c221 const char **list = NULL; local
229 list = talloc_array(mem_ctx, const char*, num);
230 if (list == NULL) {
236 list[i] = sbus_opath_compose(list, PATH_RESPONDERS, svc[i]);
237 if (list[i] == NULL) {
244 *_list = list;
249 talloc_free(list);
261 const char **list = NULL; local
279 list
[all...]
/sssd/src/providers/data_provider/
H A Ddp_request_reply.c98 static void dp_req_reply_list_error(struct dp_sbus_req_item *list, argument
111 for (item = list; item != NULL; item = next_item) {
119 for (item = list; item != NULL; item = next_item) {
128 static void dp_req_reply_list_success(struct dp_sbus_req_item *list, argument
138 for (item = list; item != NULL; item = next_item) {
352 dp_req_reply_list_error(value->list, state->name, ret);
365 dp_req_reply_list_success(value->list, state->reply_fn,
H A Ddp_request_table.c35 DLIST_REMOVE(item->parent->list, item);
50 for (item = value->list; item != NULL; item = next_item) {
65 * from the list when it is unexpectedly freed, for example when
144 table_value->list = dp_sbus_req_item_new(table_value, sbus_req);
145 if (table_value->list == NULL) {
187 DLIST_ADD(table_value->list, item);
/sssd/src/tests/cmocka/data_provider/
H A Dtest_dp_request_table.c178 assert_ptr_equal(tv->list->sbus_req, sbus_req);
196 assert_ptr_equal(tv->list->sbus_req, sbus_req2);
197 assert_non_null(tv->list->next);
198 assert_ptr_equal(tv->list->next->sbus_req, sbus_req);
258 struct dp_sbus_req_item *ri = tv->list;
276 ri = tv->list;
/sssd/src/providers/ldap/
H A Dldap_common.c490 char **list = NULL; local
501 /* split server parm into a list */
502 ret = split_on_separator(tmp_ctx, urls, ',', true, true, &list, NULL);
504 DEBUG(SSSDBG_CRIT_FAILURE, "Failed to parse server list!\n");
509 for (i = 0; list[i]; i++) {
510 if (be_fo_is_srv_identifier(list[i])) {
515 list[i]);
544 ret = ldap_url_parse(list[i], &lud);
547 "Failed to parse ldap URI (%s)!\n", list[i]);
555 list[
[all...]
H A Dldap_init.c42 errno_t check_order_list_for_duplicates(char **list, argument
49 for (c = 0; list[c] != NULL; c++) {
50 for (d = c + 1; list[d] != NULL; d++) {
52 cmp = strcmp(list[c], list[d]);
54 cmp = strcasecmp(list[c], list[d]);
58 "Duplicate string [%s] found.\n", list[c]);
/sssd/src/sbus/
H A Dsssd_dbus_interface.c31 sbus_iface_list_lookup(struct sbus_interface_list *list, argument
36 DLIST_FOR_EACH(item, list) {
47 struct sbus_interface_list *list,
56 if (list == NULL) {
66 DLIST_FOR_EACH(item, list) {
69 /* already in list */
511 struct sbus_interface_list *list = NULL; local
528 /* create new list item */
537 /* first lookup existing list in hash table */
554 list
46 sbus_iface_list_copy(TALLOC_CTX *mem_ctx, struct sbus_interface_list *list, struct sbus_interface_list **_copy) argument
621 struct sbus_interface_list *list = NULL; local
678 struct sbus_interface_list *list = NULL; local
[all...]
H A Dsssd_dbus_utils.c114 } list[] = { { SBUS_ERROR_INTERNAL, ERR_INTERNAL }, local
127 for (i = 0; list[i].name != NULL; i++) {
128 if (dbus_error_has_name(error, list[i].name)) {
129 return list[i].ret;
H A Dsssd_dbus_introspect.c323 struct sbus_interface_list *list)
340 DLIST_FOR_EACH(item, list) {
372 struct sbus_interface_list *list; local
381 sbus_req->path, &list);
391 nodes, list);
320 sbus_introspect_generate(TALLOC_CTX *mem_ctx, const char *node, const char **nodes, struct sbus_interface_list *list) argument
/sssd/src/providers/simple/
H A Dsimple_access.c40 char **list,
52 if (list == NULL) {
64 for (size = 0; list[size] != NULL; size++) {
78 ret = sss_parse_name(tmp_ctx, be_ctx->domain->names, list[i],
143 DEBUG(SSSDBG_FUNC_DATA, "%s list is empty.\n", lists[i].name);
154 DEBUG(SSSDBG_CRIT_FAILURE, "Unable to parse %s list [%d]: %s\n",
38 simple_access_parse_names(TALLOC_CTX *mem_ctx, struct be_ctx *be_ctx, char **list, char ***_out) argument
/sssd/src/tests/intg/
H A Dsecrets.py98 def list(self, **kwargs): member in class:SecretsHttpClient
113 res = self.list()
H A Dent.py25 _GROUP_DESC = {"mem": ("member list", {None: ("member", {})})}
61 An entry is a value, a list of entries, or a dictionary of entries.
65 A pattern is a value, a tuple, a list, or a dictionary of patterns.
69 A pattern can be matched against a value, a list, or a dictionary entry.
75 A list is considered matching a pattern, if the pattern is a list or a
76 tuple, where each of pattern list items matches an entry list item and
77 vice versa, or where each pattern tuple item matches an entry list item,
86 "contains_only" function to create patterns matching all entry list
[all...]
/sssd/src/providers/
H A Dbe_dyndns.h129 sss_iface_addr_concatenate(struct sss_iface_addr **list,

Completed in 318 milliseconds

123