/*
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 <time.h>
#include <errno.h>
#include "tools/common/sss_tools.h"
enum cache_object {
};
struct sysdb_attrs *entry,
struct sss_domain_info *dom,
const char *attr,
const char **_value);
struct sss_domain_info *domain);
struct sssctl_object_info {
const char *msg;
const char *attr;
};
const char **_value)
{
const char *value;
return ENOMEM;
}
if (ret == 0) {
return ERANGE;
}
return ENOMEM;
}
return EOK;
}
struct sysdb_attrs *entry,
struct sss_domain_info *dom,
const char *attr,
const char **_value)
{
const char *orig_name;
char *tmp_name;
char *outname;
return ret;
}
return ENOMEM;
}
return ENOMEM;
}
} else {
}
return EOK;
}
struct sysdb_attrs *entry,
struct sss_domain_info *dom,
const char *attr,
const char **_value)
{
return ret;
}
}
struct sysdb_attrs *entry,
struct sss_domain_info *dom,
const char *attr,
const char **_value)
{
return ret;
}
*_value = "Expired";
return EOK;
}
}
struct sysdb_attrs *entry,
struct sss_domain_info *dom,
const char *attr,
const char **_value)
{
*_value = "Initgroups were not yet performed";
return EOK;
return ret;
}
*_value = "Expired";
return EOK;
}
}
struct sysdb_attrs *entry,
struct sss_domain_info *dom,
const char *attr,
const char **_value)
{
bool val;
val = 0;
return ret;
}
return EOK;
}
struct sssctl_object_info *info)
{
const char **attrs;
int i;
/* no op */
}
return NULL;
}
for (i = 0; i < count; i++) {
return NULL;
}
}
return attrs;
}
const char *filter,
const char **attrs,
struct sysdb_attrs **_entry)
{
return ENOMEM;
}
goto done;
goto done;
}
if (count != 1) {
ret = ERR_INTERNAL;
goto done;
}
goto done;
}
done:
return ret;
}
struct sss_domain_info *dom,
enum cache_object obj_type,
const char *attr_name,
const char *attr_value)
{
const char *class;
const char *filter;
char *filter_value;
bool qualify_attr = false;
qualify_attr = true;
}
}
switch (obj_type) {
case CACHED_USER:
break;
case CACHED_GROUP:
break;
case CACHED_NETGROUP:
break;
default:
"sssctl doesn't handle this object type (type=%d)\n", obj_type);
return NULL;
}
if (qualify_attr) {
} else {
}
if (filter_value == NULL) {
return NULL;
}
return filter;
}
struct sss_domain_info *domains,
struct sss_domain_info *domain,
enum cache_object obj_type,
const char *attr_name,
const char *attr_value,
const char **attrs,
struct sysdb_attrs **_entry,
struct sss_domain_info **_dom)
{
bool fqn_provided;
const char *filter;
return ENOMEM;
}
continue;
}
goto done;
}
goto done;
}
switch(ret) {
case EOK:
/* Entry was found. */
goto done;
case ENOENT:
if (fqn_provided) {
/* Not found but a domain was provided in input. We're done. */
goto done;
}
break;
default:
goto done;
}
}
done:
return ret;
}
struct sssctl_object_info *info,
struct sss_domain_info *domains,
struct sss_domain_info *domain,
enum cache_object obj_type,
const char *attr_name,
const char *attr_value,
struct sysdb_attrs **_entry,
struct sss_domain_info **_dom)
{
const char **attrs;
char *sanitized;
return ENOMEM;
}
goto done;
}
goto done;
}
goto done;
}
done:
return ret;
}
struct sss_domain_info *domains,
struct sss_domain_info *domain,
const char *noent_fmt,
enum cache_object obj_type,
const char *attr_name,
const char *attr_value)
{
const char *value;
int i;
return ENOMEM;
}
goto done;
goto done;
}
goto done;
}
continue;
continue;
}
}
done:
return ret;
}
struct sss_tool_ctx *tool_ctx,
struct poptOption *options,
const char **_orig_name,
struct sss_domain_info **_domain)
{
const char *input_name;
const char *orig_name;
int ret;
&input_name, NULL);
return ret;
}
return ret;
}
*_orig_name = orig_name;
return EOK;
}
struct sssctl_cache_opts {
const char *value;
int sid;
int id;
};
struct sss_tool_ctx *tool_ctx,
void *pvt)
{
const char *attr;
};
};
return ret;
}
attr = SYSDB_NAME;
attr = SYSDB_UIDNUM;
}
return ret;
}
return EOK;
}
struct sss_tool_ctx *tool_ctx,
void *pvt)
{
const char *attr;
};
};
return ret;
}
attr = SYSDB_NAME;
attr = SYSDB_GIDNUM;
}
return ret;
}
return EOK;
}
struct sss_tool_ctx *tool_ctx,
void *pvt)
{
};
return ret;
}
return ret;
}
return EOK;
}