diff options
author | Pavel Březina <pbrezina@redhat.com> | 2012-11-13 15:42:48 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-11-14 17:11:15 +0100 |
commit | 7379170a0860790f2739e07fffe3d6ec85264566 (patch) | |
tree | cf14c7a9939ad4ad856d604b6855ebf0d3c545bd /src/responder/sudo/sudosrv_query.c | |
parent | d38ffc9c92daeb62de7d28c409bdaeff98f82775 (diff) | |
download | sssd-7379170a0860790f2739e07fffe3d6ec85264566.tar.gz sssd-7379170a0860790f2739e07fffe3d6ec85264566.tar.bz2 sssd-7379170a0860790f2739e07fffe3d6ec85264566.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_query.c')
-rw-r--r-- | src/responder/sudo/sudosrv_query.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/responder/sudo/sudosrv_query.c b/src/responder/sudo/sudosrv_query.c index d76ecbb9..998b6023 100644 --- a/src/responder/sudo/sudosrv_query.c +++ b/src/responder/sudo/sudosrv_query.c @@ -188,7 +188,6 @@ done: */ errno_t sudosrv_build_response(TALLOC_CTX *mem_ctx, uint32_t error, - const char *domain, int rules_num, struct sysdb_attrs **rules, uint8_t **_response_body, @@ -217,8 +216,9 @@ errno_t sudosrv_build_response(TALLOC_CTX *mem_ctx, goto done; } - /* domain name */ - ret = sudosrv_response_append_string(tmp_ctx, domain, strlen(domain) + 1, + /* domain name - deprecated + * TODO: when possible change the protocol */ + ret = sudosrv_response_append_string(tmp_ctx, "\0", 1, &response_body, &response_len); if (ret != EOK) { goto fail; |