diff options
author | Simo Sorce <ssorce@redhat.com> | 2010-11-26 13:59:32 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-12-07 17:09:19 -0500 |
commit | 85abff7f43e8006de2c2fa35612884d377b9a036 (patch) | |
tree | 84e36f7e4d1eb807c4bc2d77b74cd755275d7973 /src/providers/ldap/sdap.h | |
parent | 1d9eec9e868fbc2d996f1030a43675be9a840133 (diff) | |
download | sssd-85abff7f43e8006de2c2fa35612884d377b9a036.tar.gz sssd-85abff7f43e8006de2c2fa35612884d377b9a036.tar.xz sssd-85abff7f43e8006de2c2fa35612884d377b9a036.zip |
ldap: Use USN entries if available.
Otherwise fallback to the default modifyTimestamp indicator
Diffstat (limited to 'src/providers/ldap/sdap.h')
-rw-r--r-- | src/providers/ldap/sdap.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/providers/ldap/sdap.h b/src/providers/ldap/sdap.h index 68242f1a6..83bfd21b4 100644 --- a/src/providers/ldap/sdap.h +++ b/src/providers/ldap/sdap.h @@ -218,6 +218,7 @@ enum sdap_user_attrs { SDAP_AT_USER_MEMBEROF, SDAP_AT_USER_UUID, SDAP_AT_USER_MODSTAMP, + SDAP_AT_USER_USN, SDAP_AT_SP_LSTCHG, SDAP_AT_SP_MIN, SDAP_AT_SP_MAX, @@ -244,6 +245,7 @@ enum sdap_group_attrs { SDAP_AT_GROUP_MEMBER, SDAP_AT_GROUP_UUID, SDAP_AT_GROUP_MODSTAMP, + SDAP_AT_GROUP_USN, SDAP_OPTS_GROUP /* attrs counter */ }; @@ -292,6 +294,8 @@ struct sdap_server_opts { char *max_group_value; }; +struct sdap_id_ctx; + int sdap_get_map(TALLOC_CTX *memctx, struct confdb_ctx *cdb, const char *conf_path, @@ -333,6 +337,7 @@ bool sdap_check_sup_list(struct sup_list *l, const char *val); int build_attrs_from_map(TALLOC_CTX *memctx, struct sdap_attr_map *map, size_t size, const char ***_attrs); +int append_attrs_to_array(const char **attrs, size_t size, const char *attr); int sdap_control_create(struct sdap_handle *sh, const char *oid, int iscritical, struct berval *value, int dupval, LDAPControl **ctrlp); @@ -345,4 +350,6 @@ int sdap_get_server_opts_from_rootdse(TALLOC_CTX *memctx, struct sysdb_attrs *rootdse, struct sdap_options *opts, struct sdap_server_opts **srv_opts); +void sdap_steal_server_opts(struct sdap_id_ctx *id_ctx, + struct sdap_server_opts **srv_opts); #endif /* _SDAP_H_ */ |