a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainen LDAP Identity Cleanup Functions
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen Simo Sorce <ssorce@redhat.com>
bd63b5b860658b01b1f46f26d406e1e4a9dc019aTimo Sirainen Copyright (C) 2009 Red Hat
5666a3d6a7ea89362b8d9e8b39b15424cd9d6388Timo Sirainen This program is free software; you can redistribute it and/or modify
5666a3d6a7ea89362b8d9e8b39b15424cd9d6388Timo Sirainen it under the terms of the GNU General Public License as published by
cb433472848dddf0a42aa7252eda6721559a7c72Timo Sirainen the Free Software Foundation; either version 3 of the License, or
ea9d9d99948cff5f9b881f79b28fa3b80da0f2a7Timo Sirainen (at your option) any later version.
539977f9257bd8985be5a8093658da266ae9cd19Timo Sirainen This program is distributed in the hope that it will be useful,
5666a3d6a7ea89362b8d9e8b39b15424cd9d6388Timo Sirainen but WITHOUT ANY WARRANTY; without even the implied warranty of
0df9428baed48afaff90b4d4f03792d2fd756a43Timo Sirainen MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5666a3d6a7ea89362b8d9e8b39b15424cd9d6388Timo Sirainen GNU General Public License for more details.
5666a3d6a7ea89362b8d9e8b39b15424cd9d6388Timo Sirainen You should have received a copy of the GNU General Public License
7fb70daba4e571eab5b64f496d20b9e37e31141bTimo Sirainen along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "util/find_uid.h"
#include "providers/ldap/ldap_common.h"
#include "providers/ldap/sdap_async.h"
void *pvt)
if (period == 0) {
goto done;
goto done;
return ENOMEM;
goto done;
done:
return ret;
return ENOMEM;
goto done;
in_transaction = true;
goto done;
if (ret) {
goto done;
goto done;
in_transaction = false;
done:
if (in_transaction) {
return ret;
if (!tmpctx) {
return ENOMEM;
if (account_cache_expiration > 0) {
(long) now,
(long) now,
if (!subfilter) {
goto done;
count = 0;
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;
goto done;
done:
return ret;
return ENOMEM;
goto done;
goto done;
done:
return ret;
SYSDB_UIDNUM, 0);
if (!uid) {
return ENOENT;
return EOK;
return ENOENT;
return EIO;
if (!tmpctx) {
return ENOMEM;
if (!subfilter) {
goto done;
count = 0;
goto done;
if (count == 0) {
goto done;
for (i = 0; i < count; i++) {
if (!dn) {
goto done;
goto done;
if (!subfilter) {
goto done;
goto done;
if (!name) {
goto done;
if (ret) {
goto done;
goto done;
done:
return ret;