summaryrefslogtreecommitdiffstats
path: root/src/providers/ipa
diff options
context:
space:
mode:
authorJustin Stephenson <jstephen@redhat.com>2017-03-20 11:51:05 -0400
committerJakub Hrozek <jhrozek@redhat.com>2017-03-23 17:25:26 +0100
commita04bef313508c423ed06cc54805a3b8106ab90cd (patch)
treed5ab88d67537ae52878b424f73d6820ed10fcfee /src/providers/ipa
parenta0b1bfa76073d3ce3208e67e6d72bb92088edac5 (diff)
downloadsssd-a04bef313508c423ed06cc54805a3b8106ab90cd.tar.gz
sssd-a04bef313508c423ed06cc54805a3b8106ab90cd.tar.xz
sssd-a04bef313508c423ed06cc54805a3b8106ab90cd.zip
IPA: Add s2n request to string function
Add a function to convert request_types to string allowing the ability to print request type information for ipa_s2n functions during IPA client operations. Reviewed-by: Sumit Bose <sbose@redhat.com>
Diffstat (limited to 'src/providers/ipa')
-rw-r--r--src/providers/ipa/ipa_s2n_exop.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/providers/ipa/ipa_s2n_exop.c b/src/providers/ipa/ipa_s2n_exop.c
index 07bbb2b4d..4fe20689f 100644
--- a/src/providers/ipa/ipa_s2n_exop.c
+++ b/src/providers/ipa/ipa_s2n_exop.c
@@ -979,6 +979,22 @@ done:
return ret;
}
+static const char *ipa_s2n_reqtype2str(enum request_types request_type)
+{
+ switch (request_type) {
+ case REQ_SIMPLE:
+ return "REQ_SIMPLE";
+ case REQ_FULL:
+ return "REQ_FULL";
+ case REQ_FULL_WITH_MEMBERS:
+ return "REQ_FULL_WITH_MEMBERS";
+ default:
+ break;
+ }
+
+ return "Unknown request type";
+}
+
struct ipa_s2n_get_list_state {
struct tevent_context *ev;
struct ipa_id_ctx *ipa_ctx;