summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap/sdap.h
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2010-11-25 17:10:11 -0500
committerStephen Gallagher <sgallagh@redhat.com>2010-12-07 17:09:19 -0500
commit1d9eec9e868fbc2d996f1030a43675be9a840133 (patch)
treeece59445d486d2c123597298d6499e19f2654bea /src/providers/ldap/sdap.h
parent19a6d8f94b99684ab1a2f6d9b580ad0040dd31fe (diff)
downloadsssd-1d9eec9e868fbc2d996f1030a43675be9a840133.tar.gz
sssd-1d9eec9e868fbc2d996f1030a43675be9a840133.tar.xz
sssd-1d9eec9e868fbc2d996f1030a43675be9a840133.zip
ldap: add checks to determine if USN features are available.
Diffstat (limited to 'src/providers/ldap/sdap.h')
-rw-r--r--src/providers/ldap/sdap.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/providers/ldap/sdap.h b/src/providers/ldap/sdap.h
index 5c4f4a548..68242f1a6 100644
--- a/src/providers/ldap/sdap.h
+++ b/src/providers/ldap/sdap.h
@@ -130,6 +130,11 @@ struct sdap_ppolicy_data {
#define SDAP_ROOTDSE_ATTR_NAMING_CONTEXTS "namingContexts"
#define SDAP_ROOTDSE_ATTR_DEFAULT_NAMING_CONTEXT "defaultNamingContext"
+#define SDAP_IPA_USN "entryUSN"
+#define SDAP_IPA_LAST_USN "lastUSN"
+#define SDAP_AD_USN "uSNChanged"
+#define SDAP_AD_LAST_USN "highestCommittedUSN"
+
enum sdap_result {
SDAP_SUCCESS,
SDAP_NOT_FOUND,
@@ -280,6 +285,13 @@ struct sdap_options {
struct ldb_dn *groups_base;
};
+struct sdap_server_opts {
+ char *server_id;
+ bool supports_usn;
+ char *max_user_value;
+ char *max_group_value;
+};
+
int sdap_get_map(TALLOC_CTX *memctx,
struct confdb_ctx *cdb,
const char *conf_path,
@@ -328,4 +340,9 @@ int sdap_control_create(struct sdap_handle *sh, const char *oid, int iscritical,
errno_t sdap_set_config_options_with_rootdse(struct sysdb_attrs *rootdse,
struct sdap_handle *sh,
struct sdap_options *opts);
+int sdap_get_server_opts_from_rootdse(TALLOC_CTX *memctx,
+ const char *server,
+ struct sysdb_attrs *rootdse,
+ struct sdap_options *opts,
+ struct sdap_server_opts **srv_opts);
#endif /* _SDAP_H_ */