diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2010-06-16 15:33:57 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-06-17 15:40:13 -0400 |
commit | a56cdc811fec8d2c0e69fce3970a1032d1e3d2a8 (patch) | |
tree | ac06e8944c9bed459b6ec2198c8eb4d4a18e22d0 /src/responder/common/negcache.h | |
parent | ae5716d87c7b126ab01b0d4fcacd4f519585e5fb (diff) | |
download | sssd-a56cdc811fec8d2c0e69fce3970a1032d1e3d2a8.tar.gz sssd-a56cdc811fec8d2c0e69fce3970a1032d1e3d2a8.tar.xz sssd-a56cdc811fec8d2c0e69fce3970a1032d1e3d2a8.zip |
Move setup of filter_users and filter_groups to negcache.c
Creates a new function - sss_ncache_prepopulate() - that can be
shared with other responders, such as PAM.
Diffstat (limited to 'src/responder/common/negcache.h')
-rw-r--r-- | src/responder/common/negcache.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/responder/common/negcache.h b/src/responder/common/negcache.h index d310c9e3d..68be9f02e 100644 --- a/src/responder/common/negcache.h +++ b/src/responder/common/negcache.h @@ -48,4 +48,12 @@ int sss_ncache_set_gid(struct sss_nc_ctx *ctx, bool permanent, gid_t gid); int sss_ncache_reset_permament(struct sss_nc_ctx *ctx); +/* Set up the negative cache with values from filter_users and + * filter_groups in the sssd.conf + */ +errno_t sss_ncache_prepopulate(struct sss_nc_ctx *ncache, + struct confdb_ctx *cdb, + struct sss_names_ctx *names_ctx, + struct sss_domain_info *domain_list); + #endif /* _NSS_NEG_CACHE_H_ */ |