pacsrv_cmd.c revision 459f7de99ec65626be5ea6517d9d953c8714c327
/*
SSSD
PAC Responder
Copyright (C) Sumit Bose <sbose@redhat.com> 2012, 2016
Jan Zeleny <jzeleny@redhat.com> 2012
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "responder/common/responder_cache_req.h"
{
int ret;
/* async processing, just return here */
return EOK;
}
return ret;
}
return EOK;
}
struct pac_req_ctx {
const char *domain_name;
struct sss_domain_info *dom;
struct PAC_LOGON_INFO *logon_info;
char *user_sid_str;
char *user_dom_sid_str;
};
{
int ret;
struct pac_req_ctx *pr_ctx;
struct tevent_req *req;
enum idmap_error_code err;
return ENOMEM;
}
return EINVAL;
}
&pr_ctx->logon_info);
goto done;
}
goto done;
}
if (err != IDMAP_SUCCESS) {
goto done;
}
goto done;
}
} else {
}
goto done;
goto done;
}
done:
}
}
{
struct pac_req_ctx);
int ret;
goto done;
}
goto done;
}
done:
}
}
{
int ret;
struct tevent_req *req;
const char *pw_attrs[] = SYSDB_PW_ATTRS;
pw_attrs);
return ENOMEM;
}
return ret;
}
{
struct pac_req_ctx);
struct sss_domain_info *dom;
struct ldb_result *res;
struct sysdb_attrs *user_attrs;
return;
}
"Expected only 1 result for SID lookup, got [%ud].\n",
goto done;
}
if (user_attrs == NULL) {
goto done;
}
goto done;
}
goto done;
}
goto done;
}
done:
return;
}
struct cli_protocol_version *register_cli_protocol_version(void)
{
static struct cli_protocol_version pac_cli_protocol_version[] = {
{1, "2011-04-12", "initial version"},
};
return pac_cli_protocol_version;
}
static struct sss_cmd_table pac_cmds[] = {
{SSS_CLI_NULL, NULL}
};
struct sss_cmd_table *get_pac_cmds(void) {
return pac_cmds;
}