summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2013-04-22 16:29:51 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-05-02 19:33:56 +0200
commitf0944fdd627bd684ff36c9670dc857ffdedc343f (patch)
treee878a771c59670a58c3801c2810f71c3205fbf0b /src
parent206329d3901738036352f2ac1e8d7804f728861d (diff)
downloadsssd-f0944fdd627bd684ff36c9670dc857ffdedc343f.tar.gz
sssd-f0944fdd627bd684ff36c9670dc857ffdedc343f.tar.bz2
sssd-f0944fdd627bd684ff36c9670dc857ffdedc343f.zip
Add two new request types to the data-provider interface
The patch adds two new request types for SID related requests. The first one is used if a SID is given and the corresponding object should be found. The second one can be used if the SID for an object is requested but it is not clear if the object is a user or a group.
Diffstat (limited to 'src')
-rw-r--r--src/providers/data_provider.h2
-rw-r--r--src/responder/common/responder.h4
-rw-r--r--src/responder/common/responder_dp.c6
3 files changed, 11 insertions, 1 deletions
diff --git a/src/providers/data_provider.h b/src/providers/data_provider.h
index 31368144..d086d5d2 100644
--- a/src/providers/data_provider.h
+++ b/src/providers/data_provider.h
@@ -151,6 +151,8 @@
#define BE_REQ_SUDO_RULES 0x0007
#define BE_REQ_AUTOFS 0x0009
#define BE_REQ_HOST 0x0010
+#define BE_REQ_BY_SECID 0x0011
+#define BE_REQ_USER_AND_GROUP 0x0012
#define BE_REQ_TYPE_MASK 0x00FF
#define BE_REQ_FAST 0x1000
diff --git a/src/responder/common/responder.h b/src/responder/common/responder.h
index e1b0b002..9c540412 100644
--- a/src/responder/common/responder.h
+++ b/src/responder/common/responder.h
@@ -266,7 +266,9 @@ enum sss_dp_acct_type {
SSS_DP_GROUP,
SSS_DP_INITGROUPS,
SSS_DP_NETGR,
- SSS_DP_SERVICES
+ SSS_DP_SERVICES,
+ SSS_DP_SECID,
+ SSS_DP_USER_AND_GROUP
};
struct tevent_req *
diff --git a/src/responder/common/responder_dp.c b/src/responder/common/responder_dp.c
index 53826b0f..c5e8fc8b 100644
--- a/src/responder/common/responder_dp.c
+++ b/src/responder/common/responder_dp.c
@@ -541,6 +541,12 @@ sss_dp_get_account_msg(void *pvt)
case SSS_DP_SERVICES:
be_type = BE_REQ_SERVICES;
break;
+ case SSS_DP_SECID:
+ be_type = BE_REQ_BY_SECID;
+ break;
+ case SSS_DP_USER_AND_GROUP:
+ be_type = BE_REQ_USER_AND_GROUP;
+ break;
}
if (info->fast_reply) {