summaryrefslogtreecommitdiff
path: root/src/responder/sudo
diff options
context:
space:
mode:
authorJan Zeleny <jzeleny@redhat.com>2012-03-28 07:54:26 -0400
committerStephen Gallagher <sgallagh@redhat.com>2012-04-24 09:19:42 -0400
commit6fdde3913a11cd6148627696fa8717c34e8460fc (patch)
tree43ef914846cb2c9b2c2854e08d6ece5d3bc17c91 /src/responder/sudo
parentc0f9698cd951b7223f251ff2511c4b22a6e4ba60 (diff)
downloadsssd-6fdde3913a11cd6148627696fa8717c34e8460fc.tar.gz
sssd-6fdde3913a11cd6148627696fa8717c34e8460fc.tar.bz2
sssd-6fdde3913a11cd6148627696fa8717c34e8460fc.zip
Modified responder_get_domain()
Now it checks for subdomains as well as for the domain itself
Diffstat (limited to 'src/responder/sudo')
-rw-r--r--src/responder/sudo/sudosrv_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/responder/sudo/sudosrv_cmd.c b/src/responder/sudo/sudosrv_cmd.c
index e3dd3842..0f31df15 100644
--- a/src/responder/sudo/sudosrv_cmd.c
+++ b/src/responder/sudo/sudosrv_cmd.c
@@ -226,7 +226,7 @@ static int sudosrv_cmd_get_sudorules(struct cli_ctx *cli_ctx)
cmd_ctx->username, domname ? domname : "<ALL>"));
if (domname) {
- dctx->domain = responder_get_domain(cli_ctx->rctx->domains, domname);
+ dctx->domain = responder_get_domain(dctx, cli_ctx->rctx, domname);
if (!dctx->domain) {
ret = ENOENT;
goto done;