summaryrefslogtreecommitdiff
path: root/src/responder/sudo/sudosrv_cmd.c
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2012-02-22 16:41:45 +0100
committerStephen Gallagher <sgallagh@redhat.com>2012-02-23 20:53:46 -0500
commit278284224aa10805d58c978977e43b1d1126f9b1 (patch)
treef3f55699f37ef2bb95b006c81e74921f00f57635 /src/responder/sudo/sudosrv_cmd.c
parentb4adc08bcc1cc225133146163989301b607c79b5 (diff)
downloadsssd-278284224aa10805d58c978977e43b1d1126f9b1.tar.gz
sssd-278284224aa10805d58c978977e43b1d1126f9b1.tar.bz2
sssd-278284224aa10805d58c978977e43b1d1126f9b1.zip
Honor case_sensitive option in sudo responder
https://fedorahosted.org/sssd/ticket/1205
Diffstat (limited to 'src/responder/sudo/sudosrv_cmd.c')
-rw-r--r--src/responder/sudo/sudosrv_cmd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/responder/sudo/sudosrv_cmd.c b/src/responder/sudo/sudosrv_cmd.c
index 52023bec..8920ca28 100644
--- a/src/responder/sudo/sudosrv_cmd.c
+++ b/src/responder/sudo/sudosrv_cmd.c
@@ -185,6 +185,8 @@ static int sudosrv_cmd_get_sudorules(struct cli_ctx *cli_ctx)
goto done;
}
dctx->cmd_ctx = cmd_ctx;
+ dctx->orig_username = NULL;
+ dctx->cased_username = NULL;
/* get query */
sss_packet_get_body(cli_ctx->creq->in, &query_body, &query_len);
@@ -284,6 +286,8 @@ static int sudosrv_cmd_get_defaults(struct cli_ctx *cli_ctx)
goto done;
}
dctx->cmd_ctx = cmd_ctx;
+ dctx->orig_username = NULL;
+ dctx->cased_username = NULL;
DEBUG(SSSDBG_FUNC_DATA, ("Requesting cn=defaults\n"));