/*
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. */
};
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;
}
{
return "AD Global Catalog";
return "AD Domain Controller";
return "AD Global Catalog";
return "AD Domain Controller";
}
return service;
}
const char *domain_path)
{
const char *server;
const char **services;
int num_services;
int i;
return ENOMEM;
}
if (error != SSS_SIFP_OK) {
goto done;
}
&services, &num_services);
goto done;
}
printf(_("Active servers:\n"));
for (i = 0; i < num_services; i++) {
DBUS_TYPE_STRING, &services[i]);
if (error != SSS_SIFP_OK) {
goto done;
}
goto done;
}
}
done:
return ret;
}
const char *domain_path)
{
const char **servers;
int num_servers;
const char **services;
int num_services;
int i, j;
return ENOMEM;
}
if (error != SSS_SIFP_OK) {
goto done;
}
&services, &num_services);
goto done;
}
for (i = 0; i < num_services; i++) {
DBUS_TYPE_STRING, &services[i]);
if (error != SSS_SIFP_OK) {
goto done;
}
&servers, &num_servers);
goto done;
}
if (num_servers == 0) {
puts(_("None so far.\n"));
continue;
}
for (j = 0; j < num_servers; j++) {
}
printf("\n");
}
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)
{
const char *path;
bool opt_set;
/* Parse command line. */
{"active-server", 'a', POPT_ARG_NONE, &opts.active, 0, _("Show information about active server"), 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;
}
printf("\n");
}
return ret;
}
printf("\n");
}
return ret;
}
}
return EOK;
}