summaryrefslogtreecommitdiffstats
path: root/server/db/sysdb.h
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2009-11-04 15:33:45 -0500
committerSimo Sorce <ssorce@redhat.com>2009-11-06 17:26:08 -0500
commiteda1d66399659430f372c342fbcbd10e34a3d75c (patch)
tree2f5f02b7ec91fea2be01671f3ef11a6e52af753e /server/db/sysdb.h
parent9d56215d973676130fede91e39ee34d56ca19fb6 (diff)
downloadsssd-eda1d66399659430f372c342fbcbd10e34a3d75c.tar.gz
sssd-eda1d66399659430f372c342fbcbd10e34a3d75c.tar.xz
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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/db/sysdb.h b/server/db/sysdb.h
index 0b4742211..394b524ef 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);