ipa_sudo_refresh.c revision a641a13889d617aca6bd998025e9087e822ff7f0
/*
Authors:
Pavel Březina <pbrezina@redhat.com>
Copyright (C) 2015 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 <errno.h>
#include <talloc.h>
#include <tevent.h>
#include "providers/dp_ptask.h"
#include "providers/ipa/ipa_sudo.h"
#include "providers/ldap/sdap_sudo_shared.h"
#include "db/sysdb_sudo.h"
struct ipa_sudo_full_refresh_state {
struct ipa_sudo_ctx *sudo_ctx;
struct sss_domain_info *domain;
int dp_error;
};
struct tevent_req *
struct tevent_context *ev,
struct ipa_sudo_ctx *sudo_ctx)
{
struct ipa_sudo_full_refresh_state *state;
struct tevent_req *subreq;
struct tevent_req *req;
char *delete_filter;
int ret;
struct ipa_sudo_full_refresh_state);
return NULL;
}
sudo_ctx->full_refresh_in_progress = true;
/* Remove all rules from cache */
if (delete_filter == NULL) {
goto immediately;
}
goto immediately;
}
return req;
} else {
}
return req;
}
static void
{
struct ipa_sudo_full_refresh_state *state;
struct tevent_req *req;
int ret;
goto done;
}
"a successful full refresh\n");
}
done:
return;
}
}
int
int *dp_error)
{
struct ipa_sudo_full_refresh_state *state;
return EOK;
}
static struct tevent_req *
struct tevent_context *ev,
void *pvt)
{
struct ipa_sudo_ctx *sudo_ctx;
}
static errno_t
{
int dp_error;
}
static struct tevent_req *
struct tevent_context *ev,
void *pvt)
{
struct ipa_sudo_ctx *sudo_ctx;
}
static errno_t
{
int dp_error;
}
{
sudo_ctx);
}