Lines Matching refs:domain

64 static struct domain *known_domains;
85 static struct domain *ypbind_point_to_domain();
149 register struct domain *pdom;
180 for (pdom = known_domains; pdom != (struct domain *)NULL;
208 struct domain *pdom;
246 struct domain *cur_domain;
253 fprintf(stderr, "\nypbindproc_domain_3: domain: %s\n",
265 (struct domain *)NULL) {
274 fprintf(stderr, "domain is bound pinging: %s\n",
287 fprintf(stderr, "server is up for domain: %s\n",
295 fprintf(stderr, "domain is NOT bound returning: %s %d\n",
328 * The current domain is unbound, and there is no child
331 * commands the right domain.
450 struct domain *process_current_domain;
454 struct domain *domain_struct; /* to pass back */
456 char *domain = domain_struct->dom_name;
470 * If the ``domain'' name passed in is not the same as the RPC
471 * domain set from /etc/defaultdomain. Then we set ``firsttime''
476 if ((inforet > 0) && (strcmp(domain, rpcdomain) != 0))
492 (xdrproc_t)xdr_ypdomain_wrap_string, (caddr_t)&domain,
507 res = ypbind_pipe_setdom(NULL, domain,
511 "NIS server for domain \"%s\" OK", domain);
514 "NIS server not responding for domain \"%s\"; still trying", domain);
526 * get list of possible servers for this domain
530 * get alias for domain: Things of the past..
532 * (void) yp_getalias(domain, domain_alias, NAME_MAX);
534 sprintf(serverfile, "%s/%s/%s", BINDING, domain, YPSERVERS);
593 (char *)&domain, xdr_int,
598 "NIS server for domain \"%s\" OK", domain);
644 res = ypbind_pipe_setdom(clnt2, domain,
652 "server %s doesn't serve domain %s\n",
653 servername, domain);
669 "NIS server not responding for domain \"%s\"; still trying", domain);
703 * the saddr parameter, and stuffed into the domain. The domain's boundp
705 * which is on a reserved port) will be the bound server for the domain.
731 ypbind_pipe_setdom(client, domain, servername, opaque_domain)
734 char *domain;
735 struct domain *opaque_domain;
743 setd.ypsetdom_domain = domain;
820 * when we are not allowing the domain to be set. We do a svcerr_noprog()
834 struct domain *a_domain;
903 "Set domain request to host %s \
914 syslog(LOG_ERR, "Set domain request from %s : \
915 setting server for domain %s to %s", uaddr ? uaddr : "UNKNOWN SOURCE",
923 != (struct domain *)NULL) {
943 fprintf(stderr, "ypbindproc_setdom_3: setting domain %s to server %s\n",
953 * This returns a pointer to a domain entry. If no such domain existed on
955 * to the list. Note: If no memory can be malloc-ed for the domain structure,
956 * the functional value will be (struct domain *) NULL.
958 static struct domain *
962 register struct domain *pdom;
965 for (pdom = known_domains; pdom != (struct domain *)NULL;
973 if (pdom = (struct domain *)calloc(1, sizeof (struct domain))) {
1012 struct domain *pdom;
1170 * Preloads teh default domain's domain binding. Domain binding for the
1171 * local node's default domain for ypserv version 2 (YPVERS) will be
1179 char domain[256];
1180 struct domain *cur_domain;
1182 if (getdomainname(domain, 256) == 0) {
1183 cur_domain = ypbind_point_to_domain(domain);
1185 if (cur_domain == (struct domain *)NULL) {
1252 * Cache new binding information for a domain in a file. If the
1262 struct domain *pdom;
1272 /* if the domain doesn't have a cache file, then skip it */
1277 * If we already had a cache file for this domain, remove it. If
1325 struct domain *pdom;
1341 * on the domain.
1442 * in the entries in the domain list because they will be closed
1451 struct domain *pdom;
1456 /* close and unlink cache files for each domain */
1457 for (pdom = known_domains; pdom != (struct domain *)NULL;