sssctl_domains.c revision 9b74009c1260e6f3b1031a6ae110bf1d957cba81
/*
Authors:
Pavel Březina <pbrezina@redhat.com>
Copyright (C) 2016 Red Hat
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <popt.h>
#include <stdio.h>
#include "tools/common/sss_tools.h"
#include "sbus/sssd_dbus.h"
#include "responder/ifp/ifp_iface.h"
struct sss_tool_ctx *tool_ctx,
void *pvt)
{
char **domains;
int start = 0;
int i;
/* Parse command line. */
struct poptOption options[] = {
};
return ret;
}
if (!sssctl_start_sssd(start)) {
return ERR_SSSD_NOT_RUNNING;
}
if (error != SSS_SIFP_OK) {
return EFAULT;
}
if (error != SSS_SIFP_OK) {
return EIO;
}
}
return EOK;
}
const char *domain_path)
{
bool is_online;
return ENOMEM;
}
if (error != SSS_SIFP_OK) {
goto done;
}
goto done;
}
done:
return ret;
}
struct sssctl_domain_status_opts {
const char *domain;
int online;
int last;
int active;
int servers;
int force_start;
};
struct sss_tool_ctx *tool_ctx,
void *pvt)
{
struct sssctl_domain_status_opts opts = {0};
const char *path;
bool opt_set;
/* Parse command line. */
struct poptOption options[] = {
/*
{"last-requests", 'l', POPT_ARG_NONE, &opts.last, 0, _("Show last requests that went to data provider"), NULL },
{"active-server", 'a', POPT_ARG_NONE, &opts.active, 0, _("Show information about active server"), NULL },
{"servers", 'r', POPT_ARG_NONE, &opts.servers, 0, _("Show list of discovered servers"), NULL },
*/
};
return ret;
}
if (opt_set == false) {
}
printf(_("Out of memory!\n"));
return ENOMEM;
}
return ERR_SSSD_NOT_RUNNING;
}
if (error != SSS_SIFP_OK) {
return EFAULT;
}
return ret;
}
return EOK;
}