diff options
author | Simo Sorce <ssorce@redhat.com> | 2009-08-26 16:52:18 -0400 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2009-08-27 13:55:23 -0400 |
commit | dd6bf2b53c0f01cf5d0e748ae090cefa0557990c (patch) | |
tree | 7832a9bb972482d7027acfbf0e74bf7ef27f6748 /server/providers/ldap/sdap.h | |
parent | 61684e3e684855a72555c11a6de980b132676067 (diff) | |
download | sssd-dd6bf2b53c0f01cf5d0e748ae090cefa0557990c.tar.gz sssd-dd6bf2b53c0f01cf5d0e748ae090cefa0557990c.tar.bz2 sssd-dd6bf2b53c0f01cf5d0e748ae090cefa0557990c.zip |
Make enumeration an independent task
Always immediately return to DP, and update users/groups in the background.
Also implements an optimization to retrieve only changed/new users/groups
by filtering using the modifyTimestamp after the first query.
Diffstat (limited to 'server/providers/ldap/sdap.h')
-rw-r--r-- | server/providers/ldap/sdap.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/server/providers/ldap/sdap.h b/server/providers/ldap/sdap.h index 50fc3d10..42af68f5 100644 --- a/server/providers/ldap/sdap.h +++ b/server/providers/ldap/sdap.h @@ -85,8 +85,9 @@ enum sdap_result { #define SDAP_SCHEMA 13 #define SDAP_OFFLINE_TIMEOUT 14 #define SDAP_FORCE_UPPER_CASE_REALM 15 +#define SDAP_ENUM_REFRESH_TIMEOUT 16 -#define SDAP_OPTS_BASIC 16 /* opts counter */ +#define SDAP_OPTS_BASIC 17 /* opts counter */ /* the objectclass must be the first attribute. * Functions depend on this */ @@ -102,8 +103,9 @@ enum sdap_result { #define SDAP_AT_USER_PRINC 9 #define SDAP_AT_USER_FULLNAME 10 #define SDAP_AT_USER_MEMBEROF 11 +#define SDAP_AT_USER_MODSTAMP 12 -#define SDAP_OPTS_USER 12 /* attrs counter */ +#define SDAP_OPTS_USER 13 /* attrs counter */ /* the objectclass must be the first attribute. * Functions depend on this */ @@ -113,8 +115,9 @@ enum sdap_result { #define SDAP_AT_GROUP_GID 3 #define SDAP_AT_GROUP_MEMBER 4 #define SDAP_AT_GROUP_UUID 5 +#define SDAP_AT_GROUP_MODSTAMP 6 -#define SDAP_OPTS_GROUP 6 /* attrs counter */ +#define SDAP_OPTS_GROUP 7 /* attrs counter */ struct sdap_gen_opts { const char *opt_name; @@ -140,6 +143,7 @@ struct sdap_options { int network_timeout; int opt_timeout; int offline_timeout; + int enum_refresh_timeout; bool force_upper_case_realm; /* supported schema types */ |