diff options
author | Sumit Bose <sbose@redhat.com> | 2015-07-22 14:21:52 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-07-27 22:03:42 +0200 |
commit | e1aed98d7c195f844ac8e85050d04f3ca5f899b3 (patch) | |
tree | e19c121790c2af8c4f08df741c5be6f89f6e00a7 /src/responder/common/negcache.h | |
parent | 7c18b65dbdeb584a946c055f2db3814544b17232 (diff) | |
download | sssd-e1aed98d7c195f844ac8e85050d04f3ca5f899b3.tar.gz sssd-e1aed98d7c195f844ac8e85050d04f3ca5f899b3.tar.xz sssd-e1aed98d7c195f844ac8e85050d04f3ca5f899b3.zip |
negcache: allow domain name for UID and GID
Related to https://fedorahosted.org/sssd/ticket/2731
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/responder/common/negcache.h')
-rw-r--r-- | src/responder/common/negcache.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/responder/common/negcache.h b/src/responder/common/negcache.h index e7cbfe114..46e66d503 100644 --- a/src/responder/common/negcache.h +++ b/src/responder/common/negcache.h @@ -34,8 +34,10 @@ int sss_ncache_check_group(struct sss_nc_ctx *ctx, int ttl, struct sss_domain_info *dom, const char *name); int sss_ncache_check_netgr(struct sss_nc_ctx *ctx, int ttl, struct sss_domain_info *dom, 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_uid(struct sss_nc_ctx *ctx, int ttl, + struct sss_domain_info *dom, uid_t uid); +int sss_ncache_check_gid(struct sss_nc_ctx *ctx, int ttl, + struct sss_domain_info *dom, gid_t gid); int sss_ncache_check_sid(struct sss_nc_ctx *ctx, int ttl, const char *sid); int sss_ncache_check_cert(struct sss_nc_ctx *ctx, int ttl, const char *cert); @@ -58,8 +60,10 @@ int sss_ncache_set_group(struct sss_nc_ctx *ctx, bool permanent, struct sss_domain_info *dom, const char *name); 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_uid(struct sss_nc_ctx *ctx, bool permanent, + struct sss_domain_info *dom, uid_t uid); +int sss_ncache_set_gid(struct sss_nc_ctx *ctx, bool permanent, + struct sss_domain_info *dom, gid_t gid); int sss_ncache_set_sid(struct sss_nc_ctx *ctx, bool permanent, const char *sid); int sss_ncache_set_cert(struct sss_nc_ctx *ctx, bool permanent, const char *cert); |