ldap_id_cleanup.c revision 476b2f491e248b182c0f6c3461028b61a8a87ab7
dc0d8d65d35787d30a275895ccad8d8e1b58a5ednd LDAP Identity Cleanup Functions
594b4dd7639cd01b2200bd0774bc50952ceffcbegryzor Simo Sorce <ssorce@redhat.com>
594b4dd7639cd01b2200bd0774bc50952ceffcbegryzor Copyright (C) 2009 Red Hat
along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <errno.h>
#include <time.h>
#include "util/find_uid.h"
#include "providers/ldap/ldap_common.h"
#include "providers/ldap/sdap_async.h"
int delay;
if (!req) {
struct sdap_id_ctx);
int delay;
struct sdap_id_ctx);
int delay;
if (!cleanup_task) {
return EFAULT;
return EOK;
struct global_cleanup_state {
int ret;
goto fail;
if (ret) {
goto fail;
return req;
fail:
return req;
const char *name;
int ret;
if (!tmpctx) {
return ENOMEM;
if (account_cache_expiration > 0) {
(long) now,
(long) now,
if (!subfilter) {
goto done;
if (ret) {
goto done;
if (count == 0) {
goto done;
goto done;
for (i = 0; i < count; i++) {
if (!name) {
goto done;
if (uid_table) {
goto done;
if (ret) {
goto done;
done:
return ret;
int ret;
SYSDB_UIDNUM, 0);
if (!uid) {
return EFAULT;
return EOK;
return ENOENT;
return EIO;
char *subfilter;
const char *dn;
int ret;
if (!tmpctx) {
return ENOMEM;
if (!subfilter) {
goto done;
if (ret) {
goto done;
if (count == 0) {
goto done;
for (i = 0; i < count; i++) {
if (!dn) {
goto done;
if (!subfilter) {
goto done;
const char *name;
if (!name) {
goto done;
if (ret) {
goto done;
goto done;
done:
return ret;