summaryrefslogtreecommitdiffstats
path: root/server/db/sysdb.h
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2009-06-13 12:16:00 -0400
committerSimo Sorce <ssorce@redhat.com>2009-07-08 19:28:38 -0400
commit9f6eb36a630cec8cd172bf35e115262422960de5 (patch)
tree79185e2642c962262d74cb0dbddce4fed419f7cf /server/db/sysdb.h
parent4553ee7011317554974a3cb8142c748f820f6e6b (diff)
downloadsssd-9f6eb36a630cec8cd172bf35e115262422960de5.tar.gz
sssd-9f6eb36a630cec8cd172bf35e115262422960de5.tar.xz
sssd-9f6eb36a630cec8cd172bf35e115262422960de5.zip
Add async helper functions
These functions use the tevent_req async model, where a pair of _send/_recv functions pilot requests, with additional helpers like _done functions, and where needed multiple stage helpers.
Diffstat (limited to 'server/db/sysdb.h')
-rw-r--r--server/db/sysdb.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/server/db/sysdb.h b/server/db/sysdb.h
index 35a17dddf..aa1aaf4cd 100644
--- a/server/db/sysdb.h
+++ b/server/db/sysdb.h
@@ -65,6 +65,10 @@
#define SYSDB_CACHEDPWD "cachedPassword"
+#define SYSDB_ORIG_DN "originalDN"
+#define SYSDB_UUID "uniqueID"
+#define SYSDB_UPN "UserPrincipalName"
+
#define SYSDB_NEXTID_FILTER "("SYSDB_NEXTID"=*)"
#define SYSDB_UC "objectclass="SYSDB_USER_CLASS
@@ -139,6 +143,8 @@ struct sysdb_attrs {
/* sysdb_attrs helper functions */
struct sysdb_attrs *sysdb_new_attrs(TALLOC_CTX *memctx);
+
+/* values are copied in the structure, allocated on "attrs" */
int sysdb_attrs_add_val(struct sysdb_attrs *attrs,
const char *name, const struct ldb_val *val);
int sysdb_attrs_add_string(struct sysdb_attrs *attrs,
@@ -269,6 +275,7 @@ struct tevent_req *sysdb_search_entry_send(TALLOC_CTX *mem_ctx,
struct tevent_context *ev,
struct sysdb_handle *handle,
struct ldb_dn *base_dn,
+ int scope,
const char *filter,
const char **attrs);
int sysdb_search_entry_recv(struct tevent_req *req,