/*
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_req.h"
#include "providers/data_provider/dp_responder_iface.h"
#include "responder/common/responder.h"
#include "responder/sudo/sudosrv_private.h"
struct sss_dp_get_sudoers_info {
bool fast_reply;
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 sysdb_attrs **rules)
{
if (!req) {
return NULL;
}
if (!dom) {
goto error;
}
goto error;
}
break;
case SSS_DP_SUDO_FULL_REFRESH:
break;
}
if (!key) {
goto error;
}
"Could not issue DP request [%d]: %s\n",
goto error;
}
return req;
return req;
}
static DBusMessage *
{
uint32_t i;
break;
case SSS_DP_SUDO_FULL_REFRESH:
break;
}
if (info->fast_reply) {
}
return NULL;
}
/* create the message */
"Creating SUDOers request for [%s][%u][%s][%u]\n",
goto fail;
}
/* BE TYPE */
goto fail;
}
/* BE TYPE SPECIFIC */
if (be_type & BE_REQ_SUDO_RULES) {
goto fail;
}
&array_iter);
goto fail;
}
goto fail;
}
&rule_name);
goto fail;
}
}
goto fail;
}
}
return msg;
fail:
return NULL;
}
struct tevent_req *req,
char **err_msg)
{
}