summaryrefslogtreecommitdiffstats
path: root/src/db/sysdb.h
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2011-03-16 12:34:26 -0400
committerStephen Gallagher <sgallagh@redhat.com>2011-03-23 04:58:49 -0400
commit9c5f876a31ac48c670ae184d452cf5c8f3abbd9d (patch)
tree6752e7290761e7d40dc244ab7eb2b27a519d2546 /src/db/sysdb.h
parent7655e45f846070f103e8e148bd7b5714bd8f176a (diff)
downloadsssd-9c5f876a31ac48c670ae184d452cf5c8f3abbd9d.tar.gz
sssd-9c5f876a31ac48c670ae184d452cf5c8f3abbd9d.tar.xz
sssd-9c5f876a31ac48c670ae184d452cf5c8f3abbd9d.zip
Create sysdb_get_rdn() function
This function takes a DN formatted string and returns the RDN value from it.
Diffstat (limited to 'src/db/sysdb.h')
-rw-r--r--src/db/sysdb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/db/sysdb.h b/src/db/sysdb.h
index ae0b33ce1..caef6163e 100644
--- a/src/db/sysdb.h
+++ b/src/db/sysdb.h
@@ -220,6 +220,8 @@ int sysdb_attrs_users_from_ldb_vals(struct sysdb_attrs *attrs,
int sysdb_error_to_errno(int ldberr);
/* DNs related helper functions */
+errno_t sysdb_get_rdn(struct sysdb_ctx *ctx, void *memctx,
+ const char *_dn, char **_name, char **_val);
struct ldb_dn *sysdb_user_dn(struct sysdb_ctx *ctx, void *memctx,
const char *domain, const char *name);
struct ldb_dn *sysdb_group_dn(struct sysdb_ctx *ctx, void *memctx,