/*
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/be_ptask.h"
#include "providers/ldap/sdap_sudo.h"
#include "providers/ldap/sdap_sudo_shared.h"
#include "db/sysdb_sudo.h"
struct sdap_sudo_full_refresh_state {
int dp_error;
};
struct sdap_sudo_ctx *sudo_ctx)
{
int ret;
return NULL;
}
/* Download all rules from LDAP */
if (search_filter == NULL) {
goto immediately;
}
/* Remove all rules from cache */
if (delete_filter == NULL) {
goto immediately;
}
goto immediately;
}
return req;
} else {
}
return req;
}
{
int ret;
goto done;
}
/* save the time in the sysdb */
"a successful full refresh\n");
/* this is only a minor error that does not affect the functionality,
* therefore there is no need to report it with tevent_req_error()
* which would cause problems in the consumers */
}
done:
return;
}
}
int *dp_error)
{
return EOK;
}
struct sdap_sudo_smart_refresh_state {
int dp_error;
};
struct sdap_sudo_ctx *sudo_ctx)
{
const char *usn;
int ret;
return NULL;
}
/* Download all rules from LDAP that are newer than usn */
usn = "0";
} else {
}
if (search_filter == NULL) {
goto immediately;
}
/* Do not remove any rules that are already in the sysdb
* sysdb_filter = NULL; */
"(USN >= %s)\n", usn);
goto immediately;
}
return req;
} else {
}
return req;
}
{
int ret;
goto done;
}
done:
return;
}
}
int *dp_error)
{
return EOK;
}
struct sdap_sudo_rules_refresh_state {
int dp_error;
bool deleted;
};
struct sdap_sudo_ctx *sudo_ctx,
char **rules)
{
int ret;
int i;
return NULL;
}
return NULL;
}
return NULL;
}
/* Download only selected rules from LDAP */
/* Remove all selected rules from cache */
goto immediately;
}
if (search_filter == NULL) {
goto immediately;
}
if (delete_filter == NULL) {
goto immediately;
}
}
if (search_filter == NULL) {
goto immediately;
}
if (delete_filter == NULL) {
goto immediately;
}
goto immediately;
}
}
return req;
}
{
int ret;
goto done;
}
done:
return;
}
}
int *dp_error,
bool *deleted)
{
return EOK;
}
static struct tevent_req *
struct tevent_context *ev,
void *pvt)
{
}
static errno_t
{
int dp_error;
}
static struct tevent_req *
struct tevent_context *ev,
void *pvt)
{
}
static errno_t
{
int dp_error;
}
{
sudo_ctx);
}