summaryrefslogtreecommitdiffstats
path: root/src/db
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2014-10-09 15:13:55 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-10-14 18:29:01 +0200
commit229c292143dcd4120acb022682b5b7d0aca622dd (patch)
tree98b85b3f54003042c8c7fb603a8faf164eb65f06 /src/db
parentabee3216261e3378430e472f0c992470b33976f0 (diff)
downloadsssd-229c292143dcd4120acb022682b5b7d0aca622dd.tar.gz
sssd-229c292143dcd4120acb022682b5b7d0aca622dd.tar.xz
sssd-229c292143dcd4120acb022682b5b7d0aca622dd.zip
nss: add SSS_NSS_GETORIGBYNAME request
This patch adds a new request to the nss responder which follows the same flow as a SSS_NSSGETSIDBYNAME request but returns more data than just the SID. The data is returned as pairs of \0-terminated strings where the first string is the sysdb attribute name and the second the corresponding value. The main use case is on the FreeIPA server to make additional user and group data available to the extdom plugin which then send this data to SSSD running on FreeIPA clients. Reviewed-by: Pavel Březina <pbrezina@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'src/db')
-rw-r--r--src/db/sysdb.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/db/sysdb.h b/src/db/sysdb.h
index 03aac1524..c93119cf1 100644
--- a/src/db/sysdb.h
+++ b/src/db/sysdb.h
@@ -138,6 +138,13 @@
#define SYSDB_DOMAIN_ID "domainID"
#define SYSDB_ID_RANGE_TYPE "idRangeType"
+#define ORIGINALAD_PREFIX "originalAD"
+#define OVERRIDE_PREFIX "override"
+#define SYSDB_DEFAULT_OVERRIDE_NAME "defaultOverrideName"
+
+#define SYSDB_AD_ACCOUNT_EXPIRES "adAccountExpires"
+#define SYSDB_AD_USER_ACCOUNT_CONTROL "adUserAccountControl"
+
#define SYSDB_NEXTID_FILTER "("SYSDB_NEXTID"=*)"
#define SYSDB_UC "objectclass="SYSDB_USER_CLASS