summaryrefslogtreecommitdiffstats
path: root/src/providers/data_provider.h
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2014-07-07 13:40:07 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-09-01 13:56:57 +0200
commit25a387c2e90c74b27a26ea207503df8e4b6a1a76 (patch)
tree1fc57876c605c43ed5f8fffee3a8350c545b8369 /src/providers/data_provider.h
parent84d50b69d286f041aa96a948b008d311d8755075 (diff)
downloadsssd-25a387c2e90c74b27a26ea207503df8e4b6a1a76.tar.gz
sssd-25a387c2e90c74b27a26ea207503df8e4b6a1a76.tar.xz
sssd-25a387c2e90c74b27a26ea207503df8e4b6a1a76.zip
LDAP: If extra_value is 'U' do a UPN search
Besides the name the responders always send an extra string attribute to the backends which is so far mostly empty. Since the only difference in the processing of a request for a user name or a user principal name is a different search attribute in the LDAP provider this extra value can be used to indicate the type of the name. Providers which do not support UPN lookup can just ignore this attribute. Related to https://fedorahosted.org/sssd/ticket/1749
Diffstat (limited to 'src/providers/data_provider.h')
-rw-r--r--src/providers/data_provider.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/providers/data_provider.h b/src/providers/data_provider.h
index ebb4fadfa..9af13627c 100644
--- a/src/providers/data_provider.h
+++ b/src/providers/data_provider.h
@@ -147,6 +147,8 @@
* length */
#define DP_SEC_ID_LEN (sizeof(DP_SEC_ID) - 1)
+#define EXTRA_NAME_IS_UPN "U"
+
/* AUTH related common data and functions */
#define DEBUG_PAM_DATA(level, pd) do { \