diff options
author | Sumit Bose <sbose@redhat.com> | 2013-04-11 18:23:27 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-05-02 19:33:56 +0200 |
commit | 206329d3901738036352f2ac1e8d7804f728861d (patch) | |
tree | 199e9c2e2675e69fa9b10af9de9ae05f56a62a5d /src/providers/data_provider.h | |
parent | 1ae6d34788fd6ac2278be52b60d77c77073d98f3 (diff) | |
download | sssd-206329d3901738036352f2ac1e8d7804f728861d.tar.gz sssd-206329d3901738036352f2ac1e8d7804f728861d.tar.xz sssd-206329d3901738036352f2ac1e8d7804f728861d.zip |
Add secid filter to responder-dp protocol
This patch add a new filter type to the data-provider interface which
can be used for SID-based lookups.
Diffstat (limited to 'src/providers/data_provider.h')
-rw-r--r-- | src/providers/data_provider.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/providers/data_provider.h b/src/providers/data_provider.h index 256e6089e..313681448 100644 --- a/src/providers/data_provider.h +++ b/src/providers/data_provider.h @@ -140,6 +140,7 @@ #define BE_FILTER_NAME 1 #define BE_FILTER_IDNUM 2 #define BE_FILTER_ENUM 3 +#define BE_FILTER_SECID 4 #define BE_REQ_USER 0x0001 #define BE_REQ_GROUP 0x0002 @@ -153,6 +154,11 @@ #define BE_REQ_TYPE_MASK 0x00FF #define BE_REQ_FAST 0x1000 +#define DP_SEC_ID "secid" +/* sizeof() counts the trailing \0 so we must substract 1 for the string + * length */ +#define DP_SEC_ID_LEN (sizeof(DP_SEC_ID) - 1) + /* AUTH related common data and functions */ #define DEBUG_PAM_DATA(level, pd) do { \ |