summaryrefslogtreecommitdiff
path: root/server/db
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2009-06-19 19:50:25 -0400
committerSimo Sorce <ssorce@redhat.com>2009-07-08 19:28:38 -0400
commit4553ee7011317554974a3cb8142c748f820f6e6b (patch)
tree5803aeec0d0f58c2a959d47f3f5ed63a783063b5 /server/db
parentb5fe3053461e2f3c48f9353a420e97ef21cf039e (diff)
downloadsssd-4553ee7011317554974a3cb8142c748f820f6e6b.tar.gz
sssd-4553ee7011317554974a3cb8142c748f820f6e6b.tar.bz2
sssd-4553ee7011317554974a3cb8142c748f820f6e6b.zip
Expose sysdb function to parse sysdb_attrs
Diffstat (limited to 'server/db')
-rw-r--r--server/db/sysdb.c4
-rw-r--r--server/db/sysdb.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/server/db/sysdb.c b/server/db/sysdb.c
index bb39c064..1951a9b3 100644
--- a/server/db/sysdb.c
+++ b/server/db/sysdb.c
@@ -52,8 +52,8 @@ struct sysdb_attrs *sysdb_new_attrs(TALLOC_CTX *memctx)
return talloc_zero(memctx, struct sysdb_attrs);
}
-static int sysdb_attrs_get_el(struct sysdb_attrs *attrs, const char *name,
- struct ldb_message_element **el)
+int sysdb_attrs_get_el(struct sysdb_attrs *attrs, const char *name,
+ struct ldb_message_element **el)
{
struct ldb_message_element *e = NULL;
int i;
diff --git a/server/db/sysdb.h b/server/db/sysdb.h
index 2696dfaf..35a17ddd 100644
--- a/server/db/sysdb.h
+++ b/server/db/sysdb.h
@@ -149,6 +149,8 @@ int sysdb_attrs_add_uint32(struct sysdb_attrs *attrs,
const char *name, uint32_t value);
int sysdb_attrs_add_time_t(struct sysdb_attrs *attrs,
const char *name, time_t value);
+int sysdb_attrs_get_el(struct sysdb_attrs *attrs, const char *name,
+ struct ldb_message_element **el);
/* convert an ldb error into an errno error */
int sysdb_error_to_errno(int ldberr);