test_responder_cache_req.c revision 50c9d542e8bf641412debaa82a4dcf67ddb72258
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Pavel Březina <pbrezina@redhat.com>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Copyright (C) 2014 Red Hat
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin This program is free software; you can redistribute it and/or modify
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin it under the terms of the GNU General Public License as published by
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin the Free Software Foundation; either version 3 of the License, or
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin (at your option) any later version.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin This program is distributed in the hope that it will be useful,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin but WITHOUT ANY WARRANTY; without even the implied warranty of
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin GNU General Public License for more details.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin You should have received a copy of the GNU General Public License
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin along with this program. If not, see <http://www.gnu.org/licenses/>.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#define TEST_CONF_DB "test_responder_cache_req_conf.ldb"
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin "responder_cache_req_test_b",
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin "responder_cache_req_test_c",
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin "responder_cache_req_test_d",
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinstruct cli_protocol_version *register_cli_protocol_version(void)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin const char *opt_name,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin const char *extra)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin ret = sysdb_store_user(ctx->tctx->dom, TEST_USER_NAME, "pwd",
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin ret = sysdb_store_group(ctx->tctx->dom, TEST_GROUP_NAME,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinstatic void cache_req_user_by_name_test_done(struct tevent_req *req)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin ctx = tevent_req_callback_data(req, struct cache_req_test_ctx);
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin ctx->tctx->error = cache_req_user_by_name_recv(ctx, req,
SYSDB_UIDNUM, 0);
SYSDB_UIDNUM, 0);
SYSDB_UIDNUM, 0);
SYSDB_UIDNUM, 0);
SYSDB_UIDNUM, 0);
SYSDB_UIDNUM, 0);
SYSDB_GIDNUM, 0);
SYSDB_GIDNUM, 0);
SYSDB_GIDNUM, 0);
SYSDB_GIDNUM, 0);
SYSDB_GIDNUM, 0);
SYSDB_GIDNUM, 0);
int opt;
switch(opt) {