summaryrefslogtreecommitdiffstats
path: root/src/responder/ifp/ifpsrv_cmd.c
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2013-11-06 14:12:11 +0100
committerJakub Hrozek <jhrozek@redhat.com>2014-05-13 21:46:57 +0200
commit3660f49f81e4db07be66fe0887af9d62065f1f2c (patch)
treec7f85d5103fd68d823136239f7cc006bb5ec07c2 /src/responder/ifp/ifpsrv_cmd.c
parentf92ace4a52602e8c38a34f2392bec3deeac2dddd (diff)
downloadsssd-3660f49f81e4db07be66fe0887af9d62065f1f2c.tar.gz
sssd-3660f49f81e4db07be66fe0887af9d62065f1f2c.tar.xz
sssd-3660f49f81e4db07be66fe0887af9d62065f1f2c.zip
IFP: use a list of allowed_uids for authentication
Similar to the PAC responder, the InfoPipe uses a list of UIDs that are allowed to communicate with the IFP responder. Reviewed-by: Pavel Březina <pbrezina@redhat.com> Reviewed-by: Stef Walter <stefw@redhat.com>
Diffstat (limited to 'src/responder/ifp/ifpsrv_cmd.c')
-rw-r--r--src/responder/ifp/ifpsrv_cmd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/responder/ifp/ifpsrv_cmd.c b/src/responder/ifp/ifpsrv_cmd.c
index 4f73342dd..e26bcfa58 100644
--- a/src/responder/ifp/ifpsrv_cmd.c
+++ b/src/responder/ifp/ifpsrv_cmd.c
@@ -39,12 +39,18 @@ int ifp_ping(struct sbus_request *dbus_req, void *data)
static const char *pong = "PONG";
const char *request;
DBusError dberr;
+ errno_t ret;
+ struct ifp_req *ifp_req;
if (ifp_ctx == NULL) {
DEBUG(SSSDBG_CRIT_FAILURE, "Invalid pointer!\n");
return sbus_request_return_and_finish(dbus_req, DBUS_TYPE_INVALID);
}
+ ret = ifp_req_create(dbus_req, ifp_ctx, &ifp_req);
+ if (ret != EOK) {
+ return ifp_req_create_handle_failure(dbus_req, ret);
+ }
if (!sbus_request_parse_or_finish(dbus_req,
DBUS_TYPE_STRING, &request,