summaryrefslogtreecommitdiffstats
path: root/src/responder/sudo/sudosrv_cmd.c
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2012-11-13 15:42:48 +0100
committerJakub Hrozek <jhrozek@redhat.com>2012-11-14 17:33:48 +0100
commit9a27d5d673dc89cc8b99268ebbc5534b96343d69 (patch)
tree4b59b0bfc39f1a219cda73a3d1fe233ddcc5f8fb /src/responder/sudo/sudosrv_cmd.c
parent7e315b08152b1340511d4f6211d524482107e481 (diff)
downloadsssd-9a27d5d673dc89cc8b99268ebbc5534b96343d69.tar.gz
sssd-9a27d5d673dc89cc8b99268ebbc5534b96343d69.tar.xz
sssd-9a27d5d673dc89cc8b99268ebbc5534b96343d69.zip
sudo: do not send domain name with username
This caused troubles with subdomain users and it is not really necessary. This patch does not change the protocol itself, that should be done on the earliest possible occasion. Part of https://fedorahosted.org/sssd/ticket/1616
Diffstat (limited to 'src/responder/sudo/sudosrv_cmd.c')
-rw-r--r--src/responder/sudo/sudosrv_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/responder/sudo/sudosrv_cmd.c b/src/responder/sudo/sudosrv_cmd.c
index d0c578157..0aed691b2 100644
--- a/src/responder/sudo/sudosrv_cmd.c
+++ b/src/responder/sudo/sudosrv_cmd.c
@@ -84,7 +84,7 @@ static errno_t sudosrv_cmd_send_error(TALLOC_CTX *mem_ctx,
return EFAULT;
}
- ret = sudosrv_build_response(mem_ctx, error, NULL, 0, NULL,
+ ret = sudosrv_build_response(mem_ctx, error, 0, NULL,
&response_body, &response_len);
if (ret != EOK) {
return ret;
@@ -117,7 +117,7 @@ errno_t sudosrv_cmd_done(struct sudo_cmd_ctx *cmd_ctx, int ret)
/* send result */
ret = sudosrv_build_response(cmd_ctx, SSS_SUDO_ERROR_OK,
- cmd_ctx->domain->name, num_rules, rules,
+ num_rules, rules,
&response_body, &response_len);
if (ret != EOK) {
return EFAULT;