diff options
author | Simo Sorce <ssorce@redhat.com> | 2009-11-04 15:33:45 -0500 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2009-11-06 17:26:08 -0500 |
commit | eda1d66399659430f372c342fbcbd10e34a3d75c (patch) | |
tree | 2f5f02b7ec91fea2be01671f3ef11a6e52af753e /server/db/sysdb.h | |
parent | 9d56215d973676130fede91e39ee34d56ca19fb6 (diff) | |
download | sssd-eda1d66399659430f372c342fbcbd10e34a3d75c.tar.gz sssd-eda1d66399659430f372c342fbcbd10e34a3d75c.tar.bz2 sssd-eda1d66399659430f372c342fbcbd10e34a3d75c.zip |
Make available method to quickly retrive string
sysdb_attrs has a lot of methods to add them but very little to get information
out. Start adding a way to retrieve a single valued attribute as a string.
Diffstat (limited to 'server/db/sysdb.h')
-rw-r--r-- | server/db/sysdb.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/db/sysdb.h b/server/db/sysdb.h index 0b474221..394b524e 100644 --- a/server/db/sysdb.h +++ b/server/db/sysdb.h @@ -74,6 +74,7 @@ #define SYSDB_ORIG_DN "originalDN" #define SYSDB_ORIG_MODSTAMP "originalModifyTimestamp" +#define SYSDB_ORIG_MEMBEROF "originalMemberOf" #define SYSDB_USN "entryUSN" #define SYSDB_HIGH_USN "highestUSN" @@ -173,6 +174,8 @@ int sysdb_attrs_get_el(struct sysdb_attrs *attrs, const char *name, struct ldb_message_element **el); int sysdb_attrs_steal_string(struct sysdb_attrs *attrs, const char *name, char *str); +int sysdb_attrs_get_string(struct sysdb_attrs *attrs, const char *name, + const char **string); int sysdb_attrs_replace_name(struct sysdb_attrs *attrs, const char *oldname, const char *newname); |