Lines Matching defs:domain
169 char domain[MAXNETNAMELEN+1];
209 * Get the domain name. This is tricky because a N2L server may be
217 /* Got a domain list ... process all the domains */
230 * There was no domain list in the mapping file. The
232 * up the domain returned by getdomainname(). Fall back to the
235 if (0 > getdomainname(domain, MAXNETNAMELEN+1)) {
237 "Could not get any domain info");
239 /* Got one domain ... process it. */
240 ans = proc_domain(&yppwd, root_on_master, domain);
253 * DESCRIPTION: Process a request for one domain
262 proc_domain(struct yppasswd *yppwd, bool_t root_on_master, char *domain)
276 /* Get old info from DIT for this domain */
277 old_pwd = get_old_info(yppwd->newpw.pw_name, domain);
281 "domain %s", yppwd->newpw.pw_name, domain);
286 ans = proc_request(yppwd, old_pwd, root_on_master, domain);
306 bool_t root_on_master, char *domain)
320 ans = modify_ent(yppwd, old_pwd, root_on_master, domain);
347 ans = put_new_info(old_pwd, domain);
361 ans = proc_maps(domain, old_pwd);
382 proc_maps(char *domain, struct passwd_entry *pwd)
388 map_list = get_passwd_list(FALSE, domain);
391 ans = proc_map_list(map_list, domain, pwd, FALSE);
404 map_list = get_passwd_list(TRUE, domain);
411 ans = proc_map_list(map_list, domain, pwd, TRUE);
432 proc_map_list(char **map_list, char *domain,
455 map_name_len += strlen(domain);
468 strcat(map_name, domain);
646 bool_t root_on_master, char *domain)
674 shadow = get_old_shadow(yppwd->newpw.pw_name, domain);
694 write_shadow_info(domain, shadow);
1056 get_old_info(char *name, char *domain)
1066 read_from_dit(PASSWD_MAPPING, domain, &key, &data);
1102 read_from_dit(PASSWD_ADJUNCT_MAPPING, domain, &key, &data);
1129 put_new_info(struct passwd_entry *pwd, char *domain)
1138 if (SUCCESS != write_to_dit(PASSWD_MAPPING, domain, key, data,
1149 if (SUCCESS != write_to_dit(PASSWD_ADJUNCT_MAPPING, domain,
1170 get_old_shadow(char *name, char *domain)
1180 read_from_dit(AGEING_MAPPING, domain, &key, &data);
1277 write_shadow_info(char *domain, struct spwd *sp)
1317 res = write_to_dit(AGEING_MAPPING, domain, key, data, TRUE, FALSE);