ldap_id_cleanup.c revision 044868b388b4e47499f12a9105310b247bbe1ce2
4726N/A along with this program. If not, see <http://www.gnu.org/licenses/>.
4726N/A#include "util/find_uid.h"
4726N/A#include "providers/ldap/ldap_common.h"
6027N/A#include "providers/ldap/sdap_async.h"
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;
bool in_transaction = false;
goto fail;
in_transaction = true;
goto fail;
if (ret) {
goto fail;
goto fail;
in_transaction = false;
return req;
fail:
if (in_transaction) {
return req;
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 ENOENT;
return EOK;
return ENOENT;
return EIO;
char *subfilter;
const char *dn;
int ret;
const char *posix;
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;
goto done;
const char *name;
if (!name) {
goto done;
if (ret) {
goto done;
goto done;
done:
return ret;