diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2011-03-22 17:42:55 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-03-23 06:48:40 -0400 |
commit | 3f9b8dd5f63fe362f7b9231369949261364c061b (patch) | |
tree | 36f0c2b1a5d91437e47dc744d5e890098ceed7f0 /src/db/sysdb.h | |
parent | 851e91d2f5959db4d1001c80d46bab349de4ffa2 (diff) | |
download | sssd-3f9b8dd5f63fe362f7b9231369949261364c061b.tar.gz sssd-3f9b8dd5f63fe362f7b9231369949261364c061b.tar.xz sssd-3f9b8dd5f63fe362f7b9231369949261364c061b.zip |
Add sysdb_attrs_primary_name_list() routine
This routine will replace the use of sysdb_attrs_to_list() for any
case where we're trying to get the name of the entry. It's a
necessary precaution in case the name is multi-valued.
Diffstat (limited to 'src/db/sysdb.h')
-rw-r--r-- | src/db/sysdb.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/db/sysdb.h b/src/db/sysdb.h index 971a35f99..b7256911a 100644 --- a/src/db/sysdb.h +++ b/src/db/sysdb.h @@ -219,6 +219,12 @@ errno_t sysdb_attrs_primary_name(struct sysdb_ctx *sysdb, struct sysdb_attrs *attrs, const char *ldap_attr, const char **_primary); +errno_t sysdb_attrs_primary_name_list(struct sysdb_ctx *sysdb, + TALLOC_CTX *mem_ctx, + struct sysdb_attrs **attr_list, + size_t attr_count, + const char *ldap_attr, + char ***name_list); /* convert an ldb error into an errno error */ int sysdb_error_to_errno(int ldberr); |