From b5afbc39c09baaef57b5300b636307e277c59d66 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Mon, 22 Apr 2013 16:26:56 +0200 Subject: Add sss_ncache_set_sid() and sss_ncache_check_sid() Two new calls are added to allow to add SID based lookups to the negative cache. --- src/responder/common/negcache.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/responder/common/negcache.h') diff --git a/src/responder/common/negcache.h b/src/responder/common/negcache.h index b2e6a7a9..0b7e00b0 100644 --- a/src/responder/common/negcache.h +++ b/src/responder/common/negcache.h @@ -36,6 +36,7 @@ int sss_ncache_check_netgr(struct sss_nc_ctx *ctx, int ttl, const char *domain, const char *name); int sss_ncache_check_uid(struct sss_nc_ctx *ctx, int ttl, uid_t uid); int sss_ncache_check_gid(struct sss_nc_ctx *ctx, int ttl, gid_t gid); +int sss_ncache_check_sid(struct sss_nc_ctx *ctx, int ttl, const char *sid); int sss_ncache_check_service(struct sss_nc_ctx *ctx, int ttl, struct sss_domain_info *dom, @@ -58,6 +59,7 @@ int sss_ncache_set_netgr(struct sss_nc_ctx *ctx, bool permanent, struct sss_domain_info *dom, const char *name); int sss_ncache_set_uid(struct sss_nc_ctx *ctx, bool permanent, uid_t uid); int sss_ncache_set_gid(struct sss_nc_ctx *ctx, bool permanent, gid_t gid); +int sss_ncache_set_sid(struct sss_nc_ctx *ctx, bool permanent, const char *sid); int sss_ncache_set_service_name(struct sss_nc_ctx *ctx, bool permanent, struct sss_domain_info *dom, const char *name, const char *proto); -- cgit