Lines Matching defs:domain
163 char domain[MAXNETNAMELEN+1];
203 * Get the domain name. This is tricky because a N2L server may be
211 /* Got a domain list ... process all the domains */
224 * There was no domain list in the mapping file. The
226 * up the domain returned by getdomainname(). Fall back to the
229 if (0 > getdomainname(domain, MAXNETNAMELEN+1)) {
231 "Could not get any domain info");
233 /* Got one domain ... process it. */
234 ans = proc_domain(&yppwd, root_on_master, domain);
247 * DESCRIPTION: Process a request for one domain
256 proc_domain(struct yppasswd *yppwd, bool_t root_on_master, char *domain)
270 /* Get old info from DIT for this domain */
271 old_pwd = get_old_info(yppwd->newpw.pw_name, domain);
275 "domain %s", yppwd->newpw.pw_name, domain);
280 ans = proc_request(yppwd, old_pwd, root_on_master, domain);
300 bool_t root_on_master, char *domain)
314 ans = modify_ent(yppwd, old_pwd, root_on_master, domain);
341 ans = put_new_info(old_pwd, domain);
355 ans = proc_maps(domain, old_pwd);
376 proc_maps(char *domain, struct passwd_entry *pwd)
382 map_list = get_passwd_list(FALSE, domain);
385 ans = proc_map_list(map_list, domain, pwd, FALSE);
398 map_list = get_passwd_list(TRUE, domain);
405 ans = proc_map_list(map_list, domain, pwd, TRUE);
426 proc_map_list(char **map_list, char *domain,
450 map_name_len += strlen(domain);
463 strcat(map_name, domain);
641 bool_t root_on_master, char *domain)
669 shadow = get_old_shadow(yppwd->newpw.pw_name, domain);
689 write_shadow_info(domain, shadow);
1052 get_old_info(char *name, char *domain)
1063 read_from_dit(PASSWD_MAPPING, domain, &key, &data);
1099 read_from_dit(PASSWD_ADJUNCT_MAPPING, domain, &key, &data);
1126 put_new_info(struct passwd_entry *pwd, char *domain)
1135 if (SUCCESS != write_to_dit(PASSWD_MAPPING, domain, key, data,
1146 if (SUCCESS != write_to_dit(PASSWD_ADJUNCT_MAPPING, domain,
1167 get_old_shadow(char *name, char *domain)
1177 read_from_dit(AGEING_MAPPING, domain, &key, &data);
1275 write_shadow_info(char *domain, struct spwd *sp)
1315 res = write_to_dit(AGEING_MAPPING, domain, key, data, TRUE, FALSE);