diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2012-01-21 12:35:25 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-01-27 09:02:01 -0500 |
commit | 6748486d61680426e8739bb5e7db7dd8409ef44c (patch) | |
tree | 9e7a1f1f4a5ad3c794f87dfd2f22bdafa8ff1b80 /src | |
parent | cc7ee57f3adada83ac657e69636ca995d5b6948e (diff) | |
download | sssd-6748486d61680426e8739bb5e7db7dd8409ef44c.tar.gz sssd-6748486d61680426e8739bb5e7db7dd8409ef44c.tar.bz2 sssd-6748486d61680426e8739bb5e7db7dd8409ef44c.zip |
DP: Add support for services in dp requests
Diffstat (limited to 'src')
-rw-r--r-- | src/providers/data_provider.h | 1 | ||||
-rw-r--r-- | src/responder/common/responder.h | 1 | ||||
-rw-r--r-- | src/responder/common/responder_dp.c | 3 |
3 files changed, 5 insertions, 0 deletions
diff --git a/src/providers/data_provider.h b/src/providers/data_provider.h index 1b055e39..fb61c730 100644 --- a/src/providers/data_provider.h +++ b/src/providers/data_provider.h @@ -136,6 +136,7 @@ #define BE_REQ_GROUP 0x0002 #define BE_REQ_INITGROUPS 0x0003 #define BE_REQ_NETGROUP 0x0004 +#define BE_REQ_SERVICES 0x0005 #define BE_REQ_FAST 0x1000 /* AUTH related common data and functions */ diff --git a/src/responder/common/responder.h b/src/responder/common/responder.h index c27de311..2944aa5c 100644 --- a/src/responder/common/responder.h +++ b/src/responder/common/responder.h @@ -161,6 +161,7 @@ struct cli_protocol_version *register_cli_protocol_version(void); #define SSS_DP_GROUP 2 #define SSS_DP_INITGROUPS 3 #define SSS_DP_NETGR 4 +#define SSS_DP_SERVICES 5 typedef void (*sss_dp_callback_t)(uint16_t err_maj, uint32_t err_min, const char *err_msg, void *ptr); diff --git a/src/responder/common/responder_dp.c b/src/responder/common/responder_dp.c index b9d05cdb..5174bd3e 100644 --- a/src/responder/common/responder_dp.c +++ b/src/responder/common/responder_dp.c @@ -302,6 +302,9 @@ sss_dp_get_account_send(TALLOC_CTX *mem_ctx, case SSS_DP_NETGR: be_type = BE_REQ_NETGROUP; break; + case SSS_DP_SERVICES: + be_type = BE_REQ_SERVICES; + break; default: ret = EINVAL; goto error; |