sudosrv_dp.c revision 7a571a9d9be35360cc0f283fcd8124bda11ebf51
/*
Authors:
Pavel Březina <pbrezina@redhat.com>
Jakub Hrozek <jhrozek@redhat.com>
Copyright (C) 2011 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 "sbus/sssd_dbus.h"
#include "sbus/sbus_client.h"
#include "providers/data_provider.h"
#include "responder/common/responder.h"
#include "responder/sudo/sudosrv_private.h"
struct sss_dp_get_sudoers_info {
struct sss_domain_info *dom;
bool fast_reply;
enum sss_dp_sudo_type type;
const char *name;
};
static DBusMessage *
sss_dp_get_sudoers_msg(void *pvt);
struct tevent_req *
struct sss_domain_info *dom,
bool fast_reply,
enum sss_dp_sudo_type type,
const char *name)
{
struct tevent_req *req;
struct sss_dp_req_state *state;
struct sss_dp_get_sudoers_info *info;
char *key;
if (!req) {
goto error;
}
if (!dom) {
goto error;
}
if (!key) {
goto error;
}
("Could not issue DP request [%d]: %s\n",
goto error;
}
return req;
return req;
}
static DBusMessage *
sss_dp_get_sudoers_msg(void *pvt)
{
struct sss_dp_get_sudoers_info *info;
char *filter;
if (info->fast_reply) {
be_type |= BE_REQ_FAST;
}
if (!filter) {
return NULL;
}
return NULL;
}
/* create the message */
("Creating SUDOers request for [%s][%u][%s]\n",
if (!dbret) {
return NULL;
}
return msg;
}
struct tevent_req *req,
char **err_msg)
{
}