summaryrefslogtreecommitdiffstats
path: root/src/responder
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-10-01 11:30:44 +0200
committerStephen Gallagher <sgallagh@redhat.com>2010-10-13 09:49:37 -0400
commit36fc83f3f64bb16db7bef3e1cebe829424edacd1 (patch)
tree562368dab0ce034d0b06061c273cc82cb8771afb /src/responder
parentc640ae818270b1e8d57190516587d06c007d3938 (diff)
downloadsssd-36fc83f3f64bb16db7bef3e1cebe829424edacd1.tar.gz
sssd-36fc83f3f64bb16db7bef3e1cebe829424edacd1.tar.xz
sssd-36fc83f3f64bb16db7bef3e1cebe829424edacd1.zip
Add handling of nested netgroups to nss client
Diffstat (limited to 'src/responder')
-rw-r--r--src/responder/nss/nsssrv_netgroup.c5
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 {