From 206329d3901738036352f2ac1e8d7804f728861d Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Thu, 11 Apr 2013 18:23:27 +0200 Subject: 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. --- src/providers/data_provider.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/providers/data_provider.h') diff --git a/src/providers/data_provider.h b/src/providers/data_provider.h index 256e6089..31368144 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 { \ -- cgit