negcache.h revision 0d19785f9ffd9c66df5b30d208ec7b0216a9555b
/*
SSSD
NSS Responder
Copyright (C) Simo Sorce <ssorce@redhat.com> 2008
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _NSS_NEG_CACHE_H_
#define _NSS_NEG_CACHE_H_
struct sss_nc_ctx;
/* init the in memory negative cache */
/* check if the user is expired according to the passed in time to live */
struct sss_domain_info *dom,
const char *name,
const char *proto);
struct sss_domain_info *dom,
const char *proto);
/* add a new neg-cache entry setting the timestamp to "now" unless
* "permanent" is set to true, in which case the timestamps is set to 0
* and the negative cache never expires (used to permanently filter out
* users and groups) */
struct sss_domain_info *dom,
struct sss_domain_info *dom,
struct resp_ctx;
/* Set up the negative cache with values from filter_users and
* filter_groups in the sssd.conf
*/
struct confdb_ctx *cdb,
/* Flush the negcache and then repopulate */
struct sss_nc_ctx *ncache);
#endif /* _NSS_NEG_CACHE_H_ */