getent netgroup ng@DOMAIN does not work because rawname is copied
instead of parsed name.
From 8327d160238348dee2a108abb09fcc1244ff77dc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <pbrez...@redhat.com>
Date: Mon, 29 Jul 2013 11:33:19 +0200
Subject: [PATCH] Fix netgroup lookup when using fully qualified name
---
src/responder/nss/nsssrv_netgroup.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/responder/nss/nsssrv_netgroup.c b/src/responder/nss/nsssrv_netgroup.c
index 12be52bf832cc5315f29b8faac22d4b6c44b3b22..d979900a616bbef524db87611434cd9354b06964 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;
--
1.7.11.7
_______________________________________________
sssd-devel mailing list
sssd-devel@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/sssd-devel