/*also change the profile string to match */
state = NULL;
code = profile_find_node_subsection(kcontext->profile->first_file->root, "libdefaults", &state, &nam, &node);
- code = profile_delete_node_relation(node, "default_realm");
+ code = profile_remove_node(node, "default_realm", 0);
code = profile_add_node(node, "default_realm", string, &node);
}
#endif
realm_kdc_names[0] = "domain_realm";
realm_kdc_names[1] = 0;
- code = profile_get_first_values(kcontext->profile, realm_kdc_names, &domainlist);
+ code = profile_get_relation_names(kcontext->profile, realm_kdc_names,
+ &domainlist);
count = 0;
while (domainlist && domainlist[count])
realm_kdc_names[0] = "realms";
realm_kdc_names[1] = 0;
- code = profile_get_first_values(kcontext->profile, realm_kdc_names, &realmlist);
+ code = profile_get_subsection_names(kcontext->profile, realm_kdc_names,
+ &realmlist);
count = 0;
while (realmlist && realmlist[count])
state = NULL;
code = profile_find_node_subsection(kcontext->profile->first_file->root, "domain_realm", &state, &nam, &node);
- code = profile_delete_node_relation(node, host);
+ code = profile_remove_node(node, host, 0);
code = profile_add_node(node, host, realm, &node);
#endif
state = NULL;
code = profile_find_node_subsection(kcontext->profile->first_file->root, "domain_realm", &state, &nam, &node);
- code = profile_delete_node_relation(node, host);
+ code = profile_remove_node(node, host, 0);
#endif
}
state = NULL;
code = profile_find_node_subsection(kcontext->profile->first_file->root, "realms", &state, &nam, &node);
- code = profile_delete_node_relation(node, realm); /* possible memory leak here */
code = profile_add_node(node, realm, 0, &node); /* Create the realm node */
code = profile_add_node(node, "kdc", host, &node2); /* Create the realm node */
code = profile_add_node(node, "admin_server", host, &node2); /* Create the realm node */
state = NULL;
code = profile_find_node_subsection(kcontext->profile->first_file->root, "realms", &state, &nam, &node);
- code = profile_delete_interior_node_relation(node, realm); /* possible memory leak here */
+ code = profile_remove_node(node, realm, 1);
#endif
}