/*
SSSD
Authors:
Stephen Gallagher <sgallagh@redhat.com>
Copyright (C) 2011 Red Hat
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/>.
*/
#include "src/responder/pam/pam_helpers.h"
struct pam_initgr_table_ctx {
char *name;
};
struct tevent_timer *te,
void *pvt);
char *name,
long timeout)
{
int hret;
goto done;
}
/* The value isn't relevant, since we're using
* a timer to remove the entry.
*/
if (hret != HASH_SUCCESS) {
"Could not update initgr cache for [%s]: [%s]\n",
goto done;
} else {
"[%s] added to PAM initgroup cache\n",
name);
}
/* Create a timer event to remove the entry from the cache */
if (!te) {
goto done;
}
done:
}
return ret;
}
struct tevent_timer *te,
void *pvt)
{
int hret;
if (hret != HASH_SUCCESS
&& hret != HASH_ERROR_KEY_NOT_FOUND) {
"Could not clear [%s] from initgr cache: [%s]\n",
} else {
"[%s] removed from PAM initgroup cache\n",
}
}
char *name)
{
int hret;
if (hret != HASH_SUCCESS
&& hret != HASH_ERROR_KEY_NOT_FOUND) {
name);
return EIO;
} else if (hret == HASH_ERROR_KEY_NOT_FOUND) {
return ENOENT;
}
/* If there's a value here, then the cache
* entry is still valid.
*/
return EOK;
}