diff options
author | Pavel Březina <pbrezina@redhat.com> | 2013-07-29 11:33:19 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-07-31 11:00:55 +0200 |
commit | b410c7a9a80b0e44e3740f17d36574d3421626b7 (patch) | |
tree | 524f9c46db20107dcf8c1d65abad3ed2626d0e5f /src/responder | |
parent | 1933ff17513da1d979dd22776a03478341ef5e6b (diff) | |
download | sssd-b410c7a9a80b0e44e3740f17d36574d3421626b7.tar.gz sssd-b410c7a9a80b0e44e3740f17d36574d3421626b7.tar.bz2 sssd-b410c7a9a80b0e44e3740f17d36574d3421626b7.zip |
Fix netgroup lookup when using fully qualified name
Diffstat (limited to 'src/responder')
-rw-r--r-- | src/responder/nss/nsssrv_netgroup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/responder/nss/nsssrv_netgroup.c b/src/responder/nss/nsssrv_netgroup.c index 773e5ecb..18cd0da4 100644 --- a/src/responder/nss/nsssrv_netgroup.c +++ b/src/responder/nss/nsssrv_netgroup.c @@ -216,7 +216,7 @@ static struct tevent_req *setnetgrent_send(TALLOC_CTX *mem_ctx, } /* Save the netgroup name for getnetgrent */ - client->netgr_name = talloc_strdup(client, rawname); + client->netgr_name = talloc_strdup(client, state->netgr_shortname); if (!client->netgr_name) { ret = ENOMEM; goto error; @@ -227,7 +227,7 @@ static struct tevent_req *setnetgrent_send(TALLOC_CTX *mem_ctx, cmdctx->check_next = true; /* Save the netgroup name for getnetgrent */ - client->netgr_name = talloc_strdup(client, state->netgr_shortname); + client->netgr_name = talloc_strdup(client, rawname); if (!client->netgr_name) { ret = ENOMEM; goto error; |