c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek Pavel Březina <pbrezina@redhat.com>
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek Copyright (C) 2013 Red Hat
054900ab42a8b865a2257f94c66484e0a022a90cLukas Slebodnik This program is free software; you can redistribute it and/or modify
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek it under the terms of the GNU General Public License as published by
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek the Free Software Foundation; either version 3 of the License, or
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek (at your option) any later version.
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek This program is distributed in the hope that it will be useful,
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek but WITHOUT ANY WARRANTY; without even the implied warranty of
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek GNU General Public License for more details.
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek You should have received a copy of the GNU General Public License
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek along with this program. If not, see <http://www.gnu.org/licenses/>.
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozekstatic errno_t be_refresh_get_values_ex(TALLOC_CTX *mem_ctx,
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek const char *attr,
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek filter = talloc_asprintf(tmp_ctx, "(&(%s<=%lld))",
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek ret = sysdb_search_entry(tmp_ctx, domain->sysdb, base_dn,
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek ret = sysdb_msg2attrs(tmp_ctx, count, msgs, &records);
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek "Could not convert ldb message to sysdb_attrs\n");
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek ret = sysdb_attrs_to_list(tmp_ctx, records, count, attr, &values);
return ret;
char ***_values)
switch (type) {
case BE_REFRESH_TYPE_USERS:
case BE_REFRESH_TYPE_GROUPS:
case BE_REFRESH_TYPE_SENTINEL:
return ERR_INTERNAL;
return ENOMEM;
return ret;
return NULL;
return ctx;
void *pvt)
return EINVAL;
return EEXIST;
return EOK;
void *pvt)
struct be_refresh_state);
return NULL;
goto immediately;
goto immediately;
goto immediately;
return req;
return req;
goto done;
goto done;
goto done;
goto done;
done:
return ret;
goto done;
done:
return EOK;