/*
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 <string.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_users.h"
#include "responder/ifp/ifp_groups.h"
#include "responder/ifp/ifp_cache.h"
struct sss_domain_info *domain,
struct ldb_message *msg)
{
const char *uid;
return NULL;
}
}
const char *path,
struct sss_domain_info **_domain,
{
return ret;
}
goto done;
}
goto done;
}
done:
return ret;
}
void *data,
const char *name)
{
return ERR_INTERNAL;
}
return ENOMEM;
}
return EOK;
}
static void
{
char *object_path;
"User 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;
"User not found");
goto done;
goto done;
}
if (object_path == NULL) {
"Failed to compose object path");
goto done;
}
done:
return;
}
return;
}
const char *pem_cert)
{
int ret;
char *derb64;
return ERR_INTERNAL;
}
return ret;
}
"Invalid certificate format");
/* the connection is already terminated with an error message, hence
* we have to return EOK to not terminate the connection twice. */
return EOK;
}
return ENOMEM;
}
return EOK;
}
{
char *object_path;
"User not found");
goto done;
goto done;
}
if (object_path == NULL) {
"Failed to compose object path");
goto done;
}
done:
return;
}
return;
}
struct ldb_result *result)
{
for (i = 0; i < copy_count; i++) {
return ENOMEM;
}
}
return EOK;
}
void *data,
const char *filter,
{
return ERR_INTERNAL;
}
return ENOMEM;
}
return ifp_users_list_by_name_step(list_ctx);
}
{
return ENOMEM;
}
return EOK;
}
{
return;
}
"Failed to copy domain result");
return;
}
return ifp_users_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;
}
for (i = 0; i < copy_count; i++) {
"Failed to compose object path");
goto done;
}
}
done:
return;
}
return;
}
static errno_t
struct sss_domain_info **_domain,
struct ldb_message **_user)
{
return ret;
}
}
} else {
}
}
}
}
}
return ret;
}
void *data,
const char *attr,
const char **_out)
{
return;
}
return;
}
return;
}
return;
}
void *data,
const char *attr,
const char **_out)
{
const char *in_name;
return;
}
return;
}
return;
}
return;
}
return;
}
void *data,
const char *attr,
{
*_out = 0;
return;
}
return;
}
return;
}
return;
}
void *data)
{
const char *username;
return ERR_INTERNAL;
}
return ret;
}
return ERR_INTERNAL;
}
username);
return ENOMEM;
}
sbus_req);
return EOK;
}
{
"User not found");
goto done;
goto done;
}
done:
return;
}
return;
}
void *data,
const char **_out)
{
}
void *data,
{
}
void *data,
{
}
void *data,
const char **_out)
{
}
void *data,
const char **_out)
{
}
void *data,
const char **_out)
{
}
void *data,
const char **_out)
{
}
void *data,
const char ***_out,
int *_size)
{
const char *username;
const char **out;
int num_groups;
int i;
*_size = 0;
return;
}
return;
}
return;
}
return;
}
/* Run initgroups. */
return;
}
return;
}
return;
}
num_groups = 0;
SYSDB_GIDNUM, 0);
if (gid == 0) {
continue;
}
return;
}
num_groups++;
}
*_size = num_groups;
}
void *data,
hash_table_t **_out)
{
const char *filter;
const char **extra;
const char **values;
int hret;
int i;
return;
}
return;
}
return;
}
return;
}
SYSDB_UIDNUM, uid);
return;
}
return;
}
if (count == 0) {
return;
} else if (count > 1) {
return;
}
return;
}
/* Read each extra attribute. */
extra[i]);
continue;
}
return;
}
return;
}
if (hret != HASH_SUCCESS) {
"into hash table: %d\n", hret);
return;
}
}
}
void *data)
{
}
void *data,
const char *domain)
{
}
void *data)
{
}
/* The request is finished inside. */
}
void *data)
{
}
/* The request is finished inside. */
}