diff options
author | Sumit Bose <sbose@redhat.com> | 2010-10-01 11:30:44 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-10-13 09:49:37 -0400 |
commit | 36fc83f3f64bb16db7bef3e1cebe829424edacd1 (patch) | |
tree | 562368dab0ce034d0b06061c273cc82cb8771afb /src/responder/nss | |
parent | c640ae818270b1e8d57190516587d06c007d3938 (diff) | |
download | sssd-36fc83f3f64bb16db7bef3e1cebe829424edacd1.tar.gz sssd-36fc83f3f64bb16db7bef3e1cebe829424edacd1.tar.xz sssd-36fc83f3f64bb16db7bef3e1cebe829424edacd1.zip |
Add handling of nested netgroups to nss client
Diffstat (limited to 'src/responder/nss')
-rw-r--r-- | src/responder/nss/nsssrv_netgroup.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/responder/nss/nsssrv_netgroup.c b/src/responder/nss/nsssrv_netgroup.c index 8c6de84cd..706a660c9 100644 --- a/src/responder/nss/nsssrv_netgroup.c +++ b/src/responder/nss/nsssrv_netgroup.c @@ -797,13 +797,16 @@ static errno_t nss_cmd_retnetgrent(struct cli_ctx *client, domainlen += strlen(triples[client->netgrent_cur]->domainname); } - len = hostlen + userlen + domainlen; + len = 1 + hostlen + userlen + domainlen; ret = sss_packet_grow(packet, len); if (ret != EOK) { return ret; } sss_packet_get_body(packet, &body, &blen); + body[rp] = SSS_NETGR_REP_TRIPLE; + rp++; + if (hostlen == 1) { body[rp] = '\0'; } else { |