d844aab866ae237844360cea70e2dccdc90c783dStephen Gallagher/*
d844aab866ae237844360cea70e2dccdc90c783dStephen Gallagher SSSD
d844aab866ae237844360cea70e2dccdc90c783dStephen Gallagher
d844aab866ae237844360cea70e2dccdc90c783dStephen Gallagher Authors:
d844aab866ae237844360cea70e2dccdc90c783dStephen Gallagher Stephen Gallagher <sgallagh@redhat.com>
d844aab866ae237844360cea70e2dccdc90c783dStephen Gallagher
d844aab866ae237844360cea70e2dccdc90c783dStephen Gallagher Copyright (C) 2011 Red Hat
d844aab866ae237844360cea70e2dccdc90c783dStephen Gallagher
d844aab866ae237844360cea70e2dccdc90c783dStephen Gallagher This program is free software; you can redistribute it and/or modify
d844aab866ae237844360cea70e2dccdc90c783dStephen Gallagher it under the terms of the GNU General Public License as published by
d844aab866ae237844360cea70e2dccdc90c783dStephen Gallagher the Free Software Foundation; either version 3 of the License, or
d844aab866ae237844360cea70e2dccdc90c783dStephen Gallagher (at your option) any later version.
d844aab866ae237844360cea70e2dccdc90c783dStephen Gallagher
d844aab866ae237844360cea70e2dccdc90c783dStephen Gallagher This program is distributed in the hope that it will be useful,
d844aab866ae237844360cea70e2dccdc90c783dStephen Gallagher but WITHOUT ANY WARRANTY; without even the implied warranty of
d844aab866ae237844360cea70e2dccdc90c783dStephen Gallagher MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
d844aab866ae237844360cea70e2dccdc90c783dStephen Gallagher GNU General Public License for more details.
d844aab866ae237844360cea70e2dccdc90c783dStephen Gallagher
d844aab866ae237844360cea70e2dccdc90c783dStephen Gallagher You should have received a copy of the GNU General Public License
d844aab866ae237844360cea70e2dccdc90c783dStephen Gallagher along with this program. If not, see <http://www.gnu.org/licenses/>.
d844aab866ae237844360cea70e2dccdc90c783dStephen Gallagher*/
d844aab866ae237844360cea70e2dccdc90c783dStephen Gallagher
d844aab866ae237844360cea70e2dccdc90c783dStephen Gallagher#ifndef PAM_HELPERS_H_
d844aab866ae237844360cea70e2dccdc90c783dStephen Gallagher#define PAM_HELPERS_H_
d844aab866ae237844360cea70e2dccdc90c783dStephen Gallagher
6aff93510b36799c1773d368cc218cd533c43161Pavel Reichl#include "util/util.h"
6aff93510b36799c1773d368cc218cd533c43161Pavel Reichl
d844aab866ae237844360cea70e2dccdc90c783dStephen Gallaghererrno_t pam_initgr_cache_set(struct tevent_context *ev,
d844aab866ae237844360cea70e2dccdc90c783dStephen Gallagher hash_table_t *id_table,
d844aab866ae237844360cea70e2dccdc90c783dStephen Gallagher char *name,
d844aab866ae237844360cea70e2dccdc90c783dStephen Gallagher long timeout);
d844aab866ae237844360cea70e2dccdc90c783dStephen Gallagher
d844aab866ae237844360cea70e2dccdc90c783dStephen Gallagher/* Returns EOK if the cache is still valid
d844aab866ae237844360cea70e2dccdc90c783dStephen Gallagher * Returns ENOENT if the user is not found or is expired
d844aab866ae237844360cea70e2dccdc90c783dStephen Gallagher * May report other errors if the hash lookup fails.
d844aab866ae237844360cea70e2dccdc90c783dStephen Gallagher */
d844aab866ae237844360cea70e2dccdc90c783dStephen Gallaghererrno_t pam_initgr_check_timeout(hash_table_t *id_table,
6aff93510b36799c1773d368cc218cd533c43161Pavel Reichl char *name);
d844aab866ae237844360cea70e2dccdc90c783dStephen Gallagher
d844aab866ae237844360cea70e2dccdc90c783dStephen Gallagher#endif /* PAM_HELPERS_H_ */