sysdb_subdomains.c revision 24d8c85fae253f988165c112af208198cf48eef6
4277c95b5a9454a5c25f8d8762634fcff37aa840minfrin System Database - Sub-domain related calls
along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "db/sysdb_private.h"
const char *name,
const char *realm,
const char *flat_name,
const char *id,
bool mpg,
bool enumerate,
const char *forest,
bool inherit_option;
return NULL;
goto fail;
goto fail;
goto fail;
goto fail;
goto fail;
goto fail;
goto fail;
goto fail;
if (inherit_option) {
goto fail;
return dom;
fail:
return NULL;
struct sss_domain_info *d;
if (is_forest_root(d) == true) {
d->forest_root = d;
NULL};
const char *name;
const char *realm;
const char *flat;
const char *id;
const char *forest;
bool mpg;
bool enumerate;
const char **upn_suffixes;
goto done;
goto done;
goto done;
goto done;
goto done;
SYSDB_SUBDOMAIN_MPG, false);
SYSDB_SUBDOMAIN_ENUM, false);
goto done;
goto done;
goto done;
goto done;
goto done;
goto done;
goto done;
goto done;
done:
return ret;
const char *tmp_str;
NULL};
return ENOMEM;
goto done;
goto done;
goto done;
goto done;
NULL);
goto done;
NULL);
goto done;
NULL);
goto done;
NULL);
goto done;
goto done;
goto done;
goto done;
goto done;
goto done;
goto done;
done:
return ret;
const char *realm,
const char *flat,
const char *id,
const char *forest,
int ret;
bool do_update = false;
return ENOMEM;
goto done;
goto done;
goto done;
goto done;
do_update = true;
goto done;
goto done;
do_update = true;
goto done;
goto done;
do_update = true;
goto done;
goto done;
do_update = true;
goto done;
goto done;
do_update = true;
goto done;
do_update = true;
if (do_update == false) {
goto done;
goto done;
goto done;
done:
return ret;
NULL};
const char *tmp_str;
bool tmp_bool;
bool store = false;
int realm_flags = 0;
int flat_flags = 0;
int id_flags = 0;
int mpg_flags = 0;
int enum_flags = 0;
int forest_flags = 0;
int td_flags = 0;
int upn_flags = 0;
int ret;
return ENOMEM;
goto done;
goto done;
if (ret) {
goto done;
store = true;
goto done;
if (realm) {
if (flat_name) {
if (domain_id) {
!mpg);
!enumerate);
if (forest) {
if (upn_suffixes) {
goto done;
goto done;
if (store) {
goto done;
goto done;
if (realm_flags) {
goto done;
goto done;
if (flat_flags) {
goto done;
goto done;
if (id_flags) {
goto done;
goto done;
if (mpg_flags) {
goto done;
goto done;
if (enum_flags) {
goto done;
goto done;
if (forest_flags) {
NULL);
goto done;
goto done;
if (td_flags) {
goto done;
goto done;
if (upn_flags) {
goto done;
goto done;
goto done;
done:
return ret;
int ret;
goto done;
goto done;
goto done;
done:
return ret;
const char *dom_basedn,
const char *orig_dn;
char *cn_users_basedn;
goto done;
goto done;
cn_users_basedn) == 0) {
goto done;
done:
return ret;
const char *basedn,
const char *domain_component_name,
const char *orig_dn;
int dn_comp_num;
int basedn_comp_num;
const char *component_name;
goto done;
goto done;
basedn) == 0) {
goto done;
domain_component_name) != 0) {
goto done;
done:
return ret;
const char *dom_basedn,
const char *domain_component_name,
return EINVAL;
return ENOMEM;
_result);
const char *domain_component_name,
const char *domain_search_base,
bool ok;
const char *search_base;
int search_base_comp_num;
int non_dc_comp_num;
const char *component_name;
goto done;
goto done;
for (non_dc_comp_num = 0;
non_dc_comp_num++) {
goto done;
if (!ok) {
goto done;
goto done;
goto done;
&result);
goto done;
done:
return ret;
const char *domain_component_name,
const char *domain_search_base,
char *dom_basedn;
int ret;
return EINVAL;
return ENOMEM;
goto done;
goto done;
&result);
goto done;
&result);
goto done;
goto done;
done:
return ret;