diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2010-12-08 14:35:35 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-12-20 07:41:59 -0500 |
commit | 84bb9ec1bba8e60d1d87febd48749edd18e16787 (patch) | |
tree | 342bd67a6f9df94674eb183fcb593f605ad733e1 /src/db/sysdb.h | |
parent | 6c4661b78edafbd5b44e0c6319243e6671260bd0 (diff) | |
download | sssd-84bb9ec1bba8e60d1d87febd48749edd18e16787.tar.gz sssd-84bb9ec1bba8e60d1d87febd48749edd18e16787.tar.xz sssd-84bb9ec1bba8e60d1d87febd48749edd18e16787.zip |
Add sysdb_has_enumerated and sysdb_set_enumerated helper functions
Includes a unit test
Diffstat (limited to 'src/db/sysdb.h')
-rw-r--r-- | src/db/sysdb.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/db/sysdb.h b/src/db/sysdb.h index ed100b699..b5eed49b4 100644 --- a/src/db/sysdb.h +++ b/src/db/sysdb.h @@ -122,6 +122,8 @@ #define SYSDB_NETGR_FILTER "(&("SYSDB_NC")("SYSDB_NAME"=%s))" #define SYSDB_NETGR_TRIPLES_FILTER "(|("SYSDB_NAME"=%s)("SYSDB_MEMBEROF"=%s))" +#define SYSDB_HAS_ENUMERATED "has_enumerated" + #define SYSDB_DEFAULT_ATTRS SYSDB_LAST_UPDATE, \ SYSDB_CACHE_EXPIRE, \ SYSDB_INITGR_EXPIRE, \ @@ -700,4 +702,12 @@ errno_t sysdb_netgr_to_entries(TALLOC_CTX *mem_ctx, errno_t sysdb_dn_sanitize(void *mem_ctx, const char *input, char **sanitized); +errno_t sysdb_has_enumerated(struct sysdb_ctx *ctx, + struct sss_domain_info *dom, + bool *has_enumerated); + +errno_t sysdb_set_enumerated(struct sysdb_ctx *ctx, + struct sss_domain_info *dom, + bool enumerated); + #endif /* __SYS_DB_H__ */ |