sysdb_subdomains.c revision 7616a65d63d3bd0f669a871fd0ed89185956e9ce
4bff34e37def8a90f9194d81bc345c52ba20086athurlow System Database - Sub-domain related calls
4bff34e37def8a90f9194d81bc345c52ba20086athurlow Copyright (C) 2012 Jan Zeleny <jzeleny@redhat.com>
4bff34e37def8a90f9194d81bc345c52ba20086athurlow Copyright (C) 2012 Sumit Bose <sbose@redhat.com>
4bff34e37def8a90f9194d81bc345c52ba20086athurlow This program is free software; you can redistribute it and/or modify
4bff34e37def8a90f9194d81bc345c52ba20086athurlow it under the terms of the GNU General Public License as published by
4bff34e37def8a90f9194d81bc345c52ba20086athurlow the Free Software Foundation; either version 3 of the License, or
4bff34e37def8a90f9194d81bc345c52ba20086athurlow (at your option) any later version.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow This program is distributed in the hope that it will be useful,
4bff34e37def8a90f9194d81bc345c52ba20086athurlow but WITHOUT ANY WARRANTY; without even the implied warranty of
4bff34e37def8a90f9194d81bc345c52ba20086athurlow MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
4bff34e37def8a90f9194d81bc345c52ba20086athurlow GNU General Public License for more details.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow You should have received a copy of the GNU General Public License
4bff34e37def8a90f9194d81bc345c52ba20086athurlow along with this program. If not, see <http://www.gnu.org/licenses/>.
12b65585e720714b31036daaa2b30eb76014048eGordon Rosserrno_t sysdb_get_subdomains(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb,
goto done;
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;
NULL);
goto done;
goto done;
NULL);
goto done;
NULL);
goto done;
done:
return ret;
int ret;
bool do_update = false;
return ENOMEM;
goto done;
goto done;
goto done;
goto done;
goto done;
do_update = true;
NULL);
goto done;
goto done;
do_update = true;
if (do_update == false) {
goto done;
goto done;
done:
return ret;
int ret;
return ENOMEM;
goto done;
goto done;
goto done;
goto done;
NULL);
goto done;
goto done;
NULL);
goto done;
goto done;
goto done;
done:
return ret;
int ret;
int sret;
size_t c;
size_t d;
bool in_transaction = false;
bool *keep_subdomain;
goto done;
goto done;
goto done;
goto done;
in_transaction = true;
for (d = 0; d < cur_subdomains_count; d++) {
keep_subdomain[d] = true;
if (d == cur_subdomains_count) {
goto done;
goto done;
for (d = 0; d < cur_subdomains_count; d++) {
if (!keep_subdomain[d]) {
goto done;
goto done;
in_transaction = false;
done:
if (in_transaction) {
return ret;
return ENOMEM;
return EOK;
return EINVAL; \
const char *name,
const char **attrs,
const char **attrs,
const char *name,
const char *pwd,
const char *gecos,
const char *homedir,
const char *shell,
char **remove_attrs,
const char *name,
const char **attrs,
const char **attrs,
const char *name,
now);