summaryrefslogtreecommitdiffstats
path: root/src/providers/data_provider.h
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2015-05-04 12:34:32 +0200
committerJakub Hrozek <jhrozek@redhat.com>2015-07-15 17:32:20 +0200
commitcdc44abdf944b0de541fe93ecd77df4d09c856b1 (patch)
tree481d664e6a0fc7f82358ed6ad86c29f9ac2f2c1d /src/providers/data_provider.h
parent696c17580b49d6817f1dd33915e0e209dcfe4225 (diff)
downloadsssd-cdc44abdf944b0de541fe93ecd77df4d09c856b1.tar.gz
sssd-cdc44abdf944b0de541fe93ecd77df4d09c856b1.tar.xz
sssd-cdc44abdf944b0de541fe93ecd77df4d09c856b1.zip
DP: Add DP_WILDCARD and SSS_DP_WILDCARD_USER/SSS_DP_WILDCARD_GROUP
Related: https://fedorahosted.org/sssd/ticket/2553 Extends the Data Provider interface and the responder<->Data provider interface with wildcard lookups. The patch uses a new "wildcard" prefix rather than reusing the existing user/group prefixes. Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'src/providers/data_provider.h')
-rw-r--r--src/providers/data_provider.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/providers/data_provider.h b/src/providers/data_provider.h
index 13a700308..510c63ce4 100644
--- a/src/providers/data_provider.h
+++ b/src/providers/data_provider.h
@@ -129,6 +129,7 @@
#define BE_FILTER_SECID 4
#define BE_FILTER_UUID 5
#define BE_FILTER_CERT 6
+#define BE_FILTER_WILDCARD 7
#define BE_REQ_USER 0x0001
#define BE_REQ_GROUP 0x0002
@@ -153,6 +154,9 @@
#define DP_SEC_ID_LEN (sizeof(DP_SEC_ID) - 1)
#define DP_CERT_LEN (sizeof(DP_CERT) - 1)
+#define DP_WILDCARD "wildcard"
+#define DP_WILDCARD_LEN (sizeof(DP_WILDCARD) - 1)
+
#define EXTRA_NAME_IS_UPN "U"
#define EXTRA_INPUT_MAYBE_WITH_VIEW "V"