Lines Matching refs:netgroup

27  *	nis/getnetgrent.c -- "nis" backend for nsswitch "netgroup" database
35 * of traversing the netgroup graph and building a (potentially large)
39 * the netgroup graph in response to getnetgrent() calls (though
40 * setnetgrent() should still check for the top-level netgroup name
55 * netgroup frontend a pointer to one of these structures in response to
69 char *netgroup;
84 const char *netgroup = (const char *) a;
86 if (be->netgroup != 0 &&
87 strcmp(be->netgroup, netgroup) == 0) {
156 if (be->netgroup != 0) {
157 free(be->netgroup);
158 be->netgroup = 0;
199 * Code to do top-down search in the graph defined by the 'netgroup' YP map
205 * If the easy way doesn't pan out, recursively search the 'netgroup' map.
208 * - remember all the netgroup names we've seen during this search,
218 * It also contains the netgroup name; note that we embed the name at the
362 nfound = 0; /* Number of successful netgroup yp_match calls */
370 result = _nss_nis_ypmatch(be->domain, "netgroup", group,
378 "NIS netgroup lookup: %s doesn't exist",
384 "NIS netgroup lookup: yp_match returned [%s]",
400 /* Parse val into triples and recursive netgroup references */
416 /* so assume it's a recursive netgroup. */
562 res = top_down(be, &args->netgroup, 1, save_triple,
569 get_be->netgroup = strdup(args->netgroup);
660 * Generate a key for a netgroup.byXXXX NIS map
698 * easy_way() -- try to use netgroup.byuser and netgroup.byhost maps to
704 * it may depend on the site-specific struucture of netgroup information),
734 return (0); /* May be cheaper to use 'netgroup' */
822 /* Can we use netgroup.byhost or netgroup.byuser to speed things up? */
829 "netgroup.byuser", 0, &res)) {
835 "netgroup.byhost", 1, &res)) {