/*
Authors:
Pavel Březina <pbrezina@redhat.com>
Copyright (C) 2015 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 <talloc.h>
#include <tevent.h>
#include "util/strtonum.h"
#include "sbus/sssd_dbus_errors.h"
#include "responder/common/responder.h"
#include "responder/common/cache_req/cache_req.h"
#include "responder/ifp/ifp_groups.h"
#include "responder/ifp/ifp_users.h"
#include "responder/ifp/ifp_cache.h"
struct sss_domain_info *domain,
struct ldb_message *msg)
{
const char *gid;
return NULL;
}
}
const char *path,
struct sss_domain_info **_domain,
{
return ret;
}
goto done;
}
goto done;
}
done:
return ret;
}
struct ldb_result *result)
{
for (i = 0; i < copy_count; i++) {
return ENOMEM;
}
}
return EOK;
}
void *data,
const char *name)
{
return ERR_INTERNAL;
}
return ENOMEM;
}
return EOK;
}
static void
{
char *object_path;
"Group not found");
goto done;
goto done;
}
if (object_path == NULL) {
"Failed to compose object path");
goto done;
}
done:
return;
}
return;
}
void *data,
{
return ERR_INTERNAL;
}
return ENOMEM;
}
return EOK;
}
static void
{
char *object_path;
"Group not found");
goto done;
goto done;
}
if (object_path == NULL) {
"Failed to compose object path");
goto done;
}
done:
return;
}
return;
}
void *data,
const char *filter,
{
return ERR_INTERNAL;
}
return ENOMEM;
}
return ifp_groups_list_by_name_step(list_ctx);
}
{
return ENOMEM;
}
return EOK;
}
{
return;
}
"Failed to copy domain result");
return;
}
return ifp_groups_list_by_name_reply(list_ctx);
}
"Failed to start next-domain search");
return;
}
}
{
}
void *data,
const char *domain,
const char *filter,
{
return ERR_INTERNAL;
}
return ENOMEM;
}
return ENOMEM;
}
return EOK;
}
{
"User not found by filter");
goto done;
goto done;
}
"Failed to copy domain result");
goto done;
}
done:
return;
}
return;
}
static errno_t
void *data,
struct sss_domain_info **_domain,
struct ldb_message **_group)
{
return ERR_INTERNAL;
}
return ret;
}
}
} else {
}
}
}
}
}
return ret;
}
struct resolv_ghosts_state {
void *data;
const char **ghosts;
int index;
};
struct tevent_context *ev,
struct sbus_request *sbus_req,
void *data)
{
const char *name;
return NULL;
}
ret = ERR_INTERNAL;
goto immediately;
}
goto immediately;
}
ret = ERR_INTERNAL;
goto immediately;
}
goto immediately;
}
return req;
} else {
}
return req;
}
{
goto done;
}
goto done;
}
if (el->num_values == 0) {
goto done;
}
goto done;
}
done:
}
}
{
return EOK;
}
return ENOMEM;
}
return EAGAIN;
}
{
goto done;
}
done:
}
}
{
return EOK;
}
void *data)
{
return ERR_INTERNAL;
}
return ENOMEM;
}
sbus_req);
return EOK;
}
{
"Unable to resolve ghost members [%d]: %s\n",
return;
}
return;
}
void *data,
const char **_out)
{
const char *in_name;
return;
}
return;
}
SYSDB_NAME, NULL);
return;
}
return;
}
void *data,
{
*_out = 0;
return;
}
return;
}
void *data,
const char **_out)
{
*_out = 0;
return;
}
return;
}
static errno_t
struct sbus_request *sbus_req,
void *data,
const char ***_users,
int *_num_users,
const char ***_groups,
int *_num_groups)
{
const char *class;
const char **users;
const char **groups;
int num_users;
int num_groups;
int i;
SYSDB_GIDNUM, NULL};
return ENOMEM;
}
goto done;
}
goto done;
}
if (num_members == 0) {
num_users = 0;
num_groups = 0;
goto done;
}
goto done;
}
goto done;
}
num_users = 0;
num_groups = 0;
for (i = 0; i < num_members; i++) {
NULL);
ret = ERR_INTERNAL;
goto done;
}
members[i]);
goto done;
}
num_users++;
goto done;
}
num_groups++;
} else {
ret = ERR_INTERNAL;
goto done;
}
}
done:
}
if (_num_users != NULL) {
*_num_users = num_users;
}
}
if (_num_groups != NULL) {
}
}
return ret;
}
void *data,
const char ***_out,
int *_size)
{
*_size = 0;
}
}
void *data,
const char ***_out,
int *_size)
{
*_size = 0;
}
}
void *data)
{
}
void *data,
const char *domain)
{
}
void *data)
{
}
/* The request is finished inside. */
}
void *data)
{
}
/* The request is finished inside. */
}