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:51 -0400 |
commit | fb5c63ebd1d4ce8d560c0e964b1f1b3dc56913e5 (patch) | |
tree | 0df42c4ba5d3cd2677b1663a1a38633dabca88af /src/responder/common/negcache.h | |
parent | 232cd14eb47510c030c855f567168b9924a618fd (diff) | |
download | sssd-fb5c63ebd1d4ce8d560c0e964b1f1b3dc56913e5.tar.gz sssd-fb5c63ebd1d4ce8d560c0e964b1f1b3dc56913e5.tar.xz sssd-fb5c63ebd1d4ce8d560c0e964b1f1b3dc56913e5.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_ */ |